CN107272874B - Method and system for adjusting state of storage driver of server - Google Patents

Method and system for adjusting state of storage driver of server Download PDF

Info

Publication number
CN107272874B
CN107272874B CN201710469872.6A CN201710469872A CN107272874B CN 107272874 B CN107272874 B CN 107272874B CN 201710469872 A CN201710469872 A CN 201710469872A CN 107272874 B CN107272874 B CN 107272874B
Authority
CN
China
Prior art keywords
module
state
storage driver
energy
saving state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710469872.6A
Other languages
Chinese (zh)
Other versions
CN107272874A (en
Inventor
王月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710469872.6A priority Critical patent/CN107272874B/en
Publication of CN107272874A publication Critical patent/CN107272874A/en
Application granted granted Critical
Publication of CN107272874B publication Critical patent/CN107272874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3275Power saving in memory, e.g. RAM, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method and a system for adjusting the state of a server storage driver, wherein the method comprises the following steps: monitoring the input/output IO throughput of the file system of the server; when the IO throughput lasts for a first preset duration and is lower than a first preset threshold, adjusting the storage driver to enter a preset energy-saving state; the preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state. By the technical scheme of the invention, the state of the storage driver is automatically adjusted, automatic energy saving is realized, and the power consumption of the server is reduced.

Description

Method and system for adjusting state of storage driver of server
Technical Field
The present invention relates to server technologies, and in particular, to a method and system for adjusting the state of a server storage drive.
Background
Server power consumption is one of the first issues that must be considered in designing servers, removing refrigeration equipment consumption in data centers, with approximately 30% of the power being contributed by server storage drives. At present, the energy-saving technology of the storage driver mostly adopts the power consumption limitation of the storage driver by manually configuring the storage controller, or improves the cache utilization rate and reduces the reading and writing of the storage controller so as to achieve the purpose of reducing the power consumption. The existing method can not dynamically adjust the energy-saving state of the storage driver and can only reach the advanced setting according to the application prediction of the storage. In addition, the utilization rate of the cache is improved, the reading and writing of the storage controller are reduced, the cost is greatly improved, the cache distribution needs to be preprocessed in advance, and the additional power consumption expense is increased. Therefore, existing memory power saving techniques do not support automatic memory power saving control.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a system for adjusting the state of a server storage driver, which can automatically adjust the state of the server storage driver and realize automatic energy saving.
To achieve the object of the present invention, the present invention provides a method for adjusting the state of a server storage drive, comprising:
monitoring the input/output IO throughput of the file system of the server;
when the IO throughput lasts for a first preset duration and is lower than a first preset threshold, adjusting the storage driver to enter a preset energy-saving state; the preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state.
Further, when the IO throughput lasts for a second preset duration and is higher than a preset second threshold, the method further includes:
and adjusting the storage driver to enter an operating state.
Further, the method further comprises:
monitoring a health state of the storage drive or a health state of the server operating system;
and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, adjusting the storage driver state to enter a working state.
Further, the monitoring of the file system input/output IO throughput of the server specifically includes:
and when the user selects the automatic adjusting mode, starting to monitor the IO throughput of the file system of the server.
To achieve the object of the present invention, the present invention also provides a system for adjusting the state of a server storage drive, comprising:
the monitoring unit is used for monitoring the input/output IO throughput of the file system of the server;
the adjusting unit is used for adjusting the storage driver to enter a preset energy-saving state when the IO throughput lasts for a first preset duration and is lower than a first preset threshold; (ii) a The preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state.
Further, when the IO throughput lasts for a second preset time period and is higher than a preset second threshold, the adjusting unit is further configured to adjust the storage driver to enter a working state.
Further, the monitoring unit is further configured to monitor a health status of the storage driver or a health status of the server operating system;
and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, the adjusting unit is further configured to adjust the storage driver state to enter a working state.
Further, the system also comprises an operating system interface module; the monitoring unit specifically comprises: the monitoring module, the data statistics module and the state analysis module;
the monitoring module is connected with the operating system interface module and used for collecting the file system IO throughput of the server;
the data statistics module is connected with the monitoring module and used for carrying out statistics on IO throughput and duration according to the IO throughput of the file system collected by the monitoring module;
the state analysis module is connected with the data statistics module and is used for comparing the IO throughput and the duration counted by the data statistics module with a first preset threshold and the first preset time, or a second preset threshold and the second preset time, when the IO throughput lasts for the first preset time and is lower than the first preset threshold, the storage driver is judged to need to enter a preset energy-saving state, and a first notification message for adjusting the storage driver to enter the preset energy-saving state is sent to the adjusting unit; or when the IO throughput is continuously higher than the second preset threshold value for the second preset time, judging that the storage driver needs to enter the working state, and sending a second notification message for adjusting the storage driver to enter the working state to an adjusting unit.
Further, the adjusting unit specifically includes: an instruction scheduling module, a storage driver instruction execution module and a storage driver interface module,
the instruction scheduling module is connected with the state analysis module and the storage driver instruction execution module, and calls the storage driver instruction execution module to send a first interface instruction for adjusting the storage driver to enter a preset energy-saving state or send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module according to the received first notification message or the received second notification message;
the storage driver interface module is used for executing the first interface instruction, and the storage driver enters a preset energy-saving state; or for executing the second interface instruction, the storage drive enters a working state.
Further, the monitoring module is connected to the storage driver interface module and the operating system interface module, and is configured to acquire whether the storage driver is in a preset energy saving state, and further configured to acquire a health state of the storage driver and a health state of the server operating system;
the system also comprises a console module which is connected with the monitoring module and the instruction scheduling module,
the monitoring module is used for sending the health state of the storage driver and the state of whether the storage driver is in a preset energy-saving state to the console module;
the console module is used for calling the memory instruction execution module through the instruction scheduling module to send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module when the storage driver is in a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy; and the storage driver interface module executes the second interface instruction, and the storage driver enters a working state.
Further, the system also includes a console module,
and the console module is connected with the monitoring module and used for informing the monitoring module to start monitoring the IO throughput of the file system of the server after the user selects the automatic adjustment mode.
Further, the console module comprises a wireless networking function module or a Bluetooth function module, supports a remote ssh protocol or a Telnet protocol, and is used for receiving a message sent by a user from a remote place and used for selecting the automatic adjustment mode.
Further, the console module is provided with a visual window for sensing the action of switching the automatic adjustment mode or the manual adjustment mode by the user through the visual window.
Compared with the prior art, the invention provides a method and a system for adjusting the state of a server storage drive, wherein the method comprises the following steps: monitoring the input/output IO throughput of the file system of the server; when the IO throughput lasts for a first preset duration and is lower than a first preset threshold, adjusting the storage driver to enter a preset energy-saving state; the preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state. By the technical scheme of the invention, the state of the storage driver of the server can be automatically adjusted, automatic energy saving is realized, and the power consumption of the server is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart illustrating a method for adjusting server storage drive status according to an embodiment of the present invention;
FIG. 2 is a system diagram of adjusting server storage drive states according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a system for regulating server storage drive states in accordance with an embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be described in more detail with reference to the accompanying drawings and examples.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
Fig. 1 is a flowchart illustrating a method for adjusting a state of a server storage drive according to an embodiment of the present invention, as shown in fig. 1, where the method includes:
monitoring the input/output IO throughput of the file system of the server;
when the IO throughput lasts for a first preset duration and is lower than a first preset threshold, adjusting the storage driver to enter a preset energy-saving state; the preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state.
The energy saving levels of the preset energy saving state include the following four categories:
1) a second light energy-saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is full speed in the state;
2) a light-weight and energy-saving state: by reducing electrons;
3) energy-saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is reduced in the state;
4) deep energy-saving state: this is achieved by head unloading, which is a state where the spindle speed is zero.
And the storage driver sequentially enters the four energy-saving levels according to the IO throughput and the duration of the file system. For example, when the IO throughput is lower than 10KB/S and lasts for 30 minutes, the storage driver is regulated to enter a sub-lightweight energy-saving state; when the IO throughput continues to be lower than 10KB/S and lasts for 30 minutes, regulating the storage driver to enter a light weight energy-saving state from a sub-light weight energy-saving state; when the IO throughput continues to be lower than 10KB/S and lasts for 30 minutes, regulating the storage driver to enter the energy-saving state from the light energy-saving state; when the IO throughput continues to be below 10KB/S for 30 minutes, the storage drive is conditioned to enter a deep power save state from a power save state.
Further, when the IO throughput lasts for a second preset duration and is higher than a preset second threshold, the method further includes: and adjusting the storage driver to enter an operating state.
And no matter which energy-saving level the storage driver is at, the storage driver is regulated to enter the working state as long as the IO throughput lasts for a certain time and is higher than a second preset threshold. For example, when the storage drive is in a sub-lightweight power saving state, or a deep power saving state, the storage drive is adjusted to enter an operational state as long as the IO throughput is greater than 10MB/S and lasts for 30 minutes.
The first threshold, the second threshold, the first preset time and the second preset time can be dynamically adjusted and configured according to the system operation condition.
Further, the method further comprises:
monitoring a health state of the storage drive or a health state of the server operating system;
and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, adjusting the storage driver state to enter a working state.
When the storage drive state is in the preset energy-saving state, unhealthy storage drives occur, such as bad tracks exist in a hard disk, high IO delay, high temperature, or unhealthy server operating systems occur, for example, log information that an I/O error occurs and a disk is not in place is recorded in a system log, which indicates that the unhealthy storage drives may be caused by energy saving, and therefore, the storage drive state is adjusted to enter the working state again, and the cause of the unhealthy storage drives is further identified and confirmed.
Further, the monitoring of the file system input/output IO throughput of the server specifically includes:
and when the user selects the automatic adjusting mode, starting to monitor the IO throughput of the file system of the server.
The adjustment of the state of the server storage driver can be in a manual adjustment mode or an automatic adjustment mode; the user can freely select, and when the automatic adjustment mode is selected, the system automatically starts to execute the steps of the method for adjusting the storage driver state of the server provided by the invention.
The technical scheme provided by the invention can automatically adjust the state of the storage driver of the server, realize automatic energy saving and reduce the power consumption of the server.
Fig. 2 is a schematic structural diagram of a system for adjusting a state of a server storage drive according to an embodiment of the present invention, and as shown in fig. 2, the system includes:
the monitoring unit is used for monitoring the input/output IO throughput of the file system of the server;
the adjusting unit is used for adjusting the storage driver to enter a preset energy-saving state when the IO throughput lasts for a first preset duration and is lower than a first preset threshold; (ii) a The preset energy-saving state comprises one of the following states: a sub-light energy-saving state, a light energy-saving state, an energy-saving state and a deep energy-saving state.
Further, when the IO throughput lasts for a second preset time period and is higher than a preset second threshold, the adjusting unit is further configured to adjust the storage driver to enter a working state.
Further, the monitoring unit is further configured to monitor a health status of the storage driver or a health status of the server operating system;
and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, the adjusting unit is further configured to adjust the storage driver state to enter a working state.
Further, the system also comprises an operating system interface module; the monitoring unit specifically comprises: the monitoring module, the data statistics module and the state analysis module;
the monitoring module is connected with the operating system interface module and used for collecting the file system IO throughput of the server;
the data statistics module is connected with the monitoring module and used for carrying out statistics on IO throughput and duration according to the IO throughput of the file system collected by the monitoring module;
the state analysis module is connected with the data statistics module and is used for comparing the IO throughput and the duration counted by the data statistics module with a first preset threshold and the first preset time, or a second preset threshold and the second preset time, when the IO throughput lasts for the first preset time and is lower than the first preset threshold, the storage driver is judged to need to enter a preset energy-saving state, and a first notification message for adjusting the storage driver to enter the preset energy-saving state is sent to the adjusting unit; or when the IO throughput is continuously higher than the second preset threshold value for the second preset time, judging that the storage driver needs to enter the working state, and sending a second notification message for adjusting the storage driver to enter the working state to an adjusting unit.
Further, the adjusting unit specifically includes: an instruction scheduling module, a storage driver instruction execution module and a storage driver interface module,
the instruction scheduling module is connected with the state analysis module and the storage driver instruction execution module, and calls the storage driver instruction execution module to send a first interface instruction for adjusting the storage driver to enter a preset energy-saving state or send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module according to the received first notification message or the received second notification message;
the storage driver interface module is used for executing the first interface instruction, and the storage driver enters a preset energy-saving state; or for executing the second interface instruction, the storage drive enters a working state.
Further, the monitoring module is connected to the storage driver interface module and the operating system interface module, and is configured to acquire whether the storage driver is in a preset energy saving state, and further configured to acquire a health state of the storage driver and a health state of the server operating system;
the system also comprises a console module which is connected with the monitoring module and the instruction scheduling module,
the monitoring module is used for sending the health state of the storage driver and the state of whether the storage driver is in a preset energy-saving state to the console module;
the console module is used for calling the memory instruction execution module through the instruction scheduling module to send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module when the storage driver is in a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy; and the storage driver interface module executes the second interface instruction, and the storage driver enters a working state.
Further, the system also includes a console module,
and the console module is connected with the monitoring module and used for informing the monitoring module to start monitoring the IO throughput of the file system of the server after the user selects the automatic adjustment mode.
Further, the console module comprises a wireless networking function module or a Bluetooth function module, supports a remote ssh protocol or a Telnet protocol, and is used for receiving a message sent by a user from a remote place and used for selecting the automatic adjustment mode.
Further, the console module is provided with a visual window for sensing the action of switching the automatic adjustment mode or the manual adjustment mode by the user through the visual window.
An interface instruction set, which may be a general-purpose instruction set such as a small Computer System interface (scsi) instruction set, may be previously stored in the memory instruction execution module.
The technical scheme provided by the invention can automatically adjust the state of the storage driver of the server, realize automatic energy saving and reduce the power consumption of the server.
Example one
Fig. 3 is a schematic diagram of a system for regulating server storage drive states according to an embodiment of the present invention, as shown in fig. 3,
the system comprises an operating system interface module (1), an instruction scheduling module (2), a data statistics module (3), a state analysis module (4), a monitoring module (5), a console module (6), a storage driver instruction execution module (7) and a storage driver interface module (8). The first communication module port of the operating system interface module (1) is connected with the first communication port of the monitoring module (5), the second communication port of the operating system interface module (1) is connected with the first communication port of the instruction scheduling module (2), the third communication port of the operating system interface module (1) is connected with the first communication port of the storage driver interface module (8), and the fourth communication port of the operating system interface module (1) is connected with the first communication port of the console module (6). The second communication port of the instruction scheduling port (2) is connected with the first communication port of the storage driver instruction execution module (7), and the third communication port of the instruction scheduling port (2) is connected with the second communication port of the console module (6). The fourth communication port of the instruction scheduling module (2) is connected with the first communication port of the state analysis module (4). The first communication port of the data statistics module (3) is connected with the second communication port of the state analysis module (4). The second communication port of the data statistics module (3) is connected with the second communication port of the monitoring module (5). The state analysis module (4) is connected with the third communication port of the console module (6). The third communication port of the monitoring module (5) is connected with the first communication port of the storage driver interface module (8), and the fourth communication port of the monitoring module (5) is connected with the third communication port of the console module (6). The second communication port of the storage drive instruction execution module (7) is connected with the second communication port of the storage drive interface module (8).
The system adopts the IO throughput of the dynamic monitoring file system (EXT2, EXT4, NFS and NTFS), and sends an instruction to the storage driver interface according to the dynamic monitoring result to enable the storage driver to enter a working or energy-saving state. The system always monitors the IO throughput of the file system in the whole dynamic monitoring process, and when the IO throughput of the file system is lower than a certain threshold value and lasts for a certain time, the storage driver instruction execution module automatically sends an instruction to enable the storage driver to enter an energy-saving state. Awakening the storage driver to enter a working state, wherein the storage driver has an IO request in a certain period of time, and the instruction execution module automatically sends an instruction to enable the storage driver to enter the working state; the system console is connected with the monitoring module, the data statistics module and the state analysis module, can dynamically monitor the IO throughput of the file, and automatically selects the energy-saving state level of the storage driver according to data provided by the data statistics module and the state analysis module.
The device comprises a monitoring module (5), an operating system interface module (1) and a storage driver interface module (8), wherein the three modules are interconnected, and real-time detection items are as follows:
1) IO throughput of a file system
2) Health status of storage drives
3) Health status of the system
4) Power saving state level for storage drives
And the data statistics module sends the IO throughput and the duration of the statistics file system to the analysis module, and the state analysis module determines that the storage controller enters an energy-saving state according to the IO throughput of the file system.
The analysis module sends a request for entering an energy-saving state and an energy-saving level to the instruction scheduling module, wherein the energy-saving threshold set by the analysis module is that the calculated IO throughput of the file system is lower than certain set thresholds and lasts for a certain time.
The energy saving levels defined by the analysis module include the following four categories:
1) a light-weight and energy-saving state: by reducing electrons
2) A second light energy-saving state: by head unloading, which is at full spindle speed
3) Energy-saving state: by unloading the head, in which the spindle speed is reduced
4) Deep energy-saving state: by unloading the head, in which the spindle speed is zero
The system dispatches the scheduling instructions to the storage drive instruction execution module by the instruction dispatch module. The system storage driver interface module returns the instruction execution result or error report sent by the storage driver instruction execution module.
The console module (6) can comprise a module with a wireless networking function or a Bluetooth function, supports a remote ssh protocol or a Telnet protocol, and can remotely adjust the energy-saving state of the hard disk.
The console module (6) may have a visualization window that can toggle between automatically adjusting or manually adjusting the storage drive power saving state. The console module (6) may reflect the current power saving state level of the storage drive. The console module (6) will provide the option of a power saving state.
With the system shown in FIG. 3, automatically adjusting the server storage drive power saving state and displaying it to the user may be accomplished by performing the following steps.
1. The user starts the console module (6);
2. the user selects an automatic adjusting mode through the console module (6);
3. the monitoring module (5) collects IO throughput of the file system;
4. the data statistics module (3) analyzes the IO throughput of the file system, and counts the IO throughput and the maintenance time;
5. the state analysis module (4) receives results of the system monitoring module (5) and the data statistics module (3), compares the results with a preset threshold value and a certain time interval, and analyzes the energy-saving state level;
6. the instruction scheduling module (2) calls the storage driver instruction execution module to send an interface instruction of a corresponding energy-saving state to the storage driver interface module for execution according to the energy-saving state level data analyzed by the state analysis module (4);
7. the monitoring module (5) returns the execution result or the error information of the storage driver interface module to the console module (6);
8. the user acquires whether the storage driver is in an energy-saving state through the console module (6);
by the technical scheme for adjusting the energy-saving state of the server storage driver, the energy-saving state of the server storage driver can be automatically adjusted, and the power consumption of the server is reduced.
In addition, the technical scheme for adjusting the state of the storage drive is not only used for the server containing the storage drive, but also used for other computer systems containing the storage drive.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method of adjusting server storage drive status, comprising:
monitoring the input/output IO throughput of the file system of the server;
when the IO throughput lasts for a first preset time length and is lower than a first preset threshold value, sequentially entering a sub-lightweight energy-saving state, a lightweight energy-saving state, an energy-saving state and a deep energy-saving state in preset energy-saving states according to the IO throughput and the lasting time length of the file system;
wherein, the second light weight energy saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is full speed in the state; a light-weight and energy-saving state: by reducing electrons; energy-saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is reduced in the state; deep energy-saving state: the unloading is realized by the magnetic head, and the rotating shaft speed is zero in the state;
monitoring a health state of the storage drive or a health state of the server operating system; and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, adjusting the storage driver state to enter a working state.
2. The method of claim 1, wherein when the IO throughput persists for a second preset duration above a preset second threshold, the method further comprises:
and adjusting the storage driver to enter an operating state.
3. The method of claim 1, wherein the monitoring of the file system Input Output (IO) throughput of the server specifically comprises:
and when the user selects the automatic adjusting mode, starting to monitor the IO throughput of the file system of the server.
4. A system for regulating server storage drive status, comprising:
the monitoring unit is used for monitoring the input/output IO throughput of the file system of the server;
the adjusting unit is used for sequentially entering a sub-light weight energy-saving state, a light weight energy-saving state, an energy-saving state and a deep energy-saving state in preset energy-saving states according to the IO throughput and the duration of the file system when the IO throughput lasts for a first preset duration and is lower than a first preset threshold;
wherein, the second light weight energy saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is full speed in the state; a light-weight and energy-saving state: by reducing electrons; energy-saving state: the unloading of the magnetic head is realized, and the speed of the rotating shaft is reduced in the state; deep energy-saving state: the unloading is realized by the magnetic head, and the rotating shaft speed is zero in the state;
the monitoring unit is further used for monitoring the health state of the storage driver or the health state of the server operating system; and when the storage driver state is a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy, the adjusting unit is further configured to adjust the storage driver state to enter a working state.
5. The system of claim 4, wherein the adjustment unit is further configured to adjust the storage drive to enter an operational state when the IO throughput continues for a second predetermined duration above a second predetermined threshold.
6. The system of claim 4, wherein the system further comprises an operating system interface module; the monitoring unit specifically comprises: the monitoring module, the data statistics module and the state analysis module;
the monitoring module is connected with the operating system interface module and used for collecting the file system IO throughput of the server;
the data statistics module is connected with the monitoring module and used for carrying out statistics on IO throughput and duration according to the IO throughput of the file system collected by the monitoring module;
the state analysis module is connected with the data statistics module and is used for comparing the IO throughput and the duration counted by the data statistics module with a first preset threshold and the first preset time or a second preset threshold and a second preset time, when the IO throughput lasts for the first preset time and is lower than the first preset threshold, the storage driver is judged to need to enter a preset energy-saving state, and a first notification message for adjusting the storage driver to enter the preset energy-saving state is sent to the adjusting unit; or when the IO throughput is continuously higher than the second preset threshold value for the second preset time, judging that the storage driver needs to enter the working state, and sending a second notification message for adjusting the storage driver to enter the working state to an adjusting unit.
7. The system of claim 6, wherein the adjustment unit specifically comprises: an instruction scheduling module, a storage driver instruction execution module and a storage driver interface module,
the instruction scheduling module is connected with the state analysis module and the storage driver instruction execution module, and calls the storage driver instruction execution module to send a first interface instruction for adjusting the storage driver to enter a preset energy-saving state or send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module according to the received first notification message or the received second notification message;
the storage driver interface module is used for executing the first interface instruction, and the storage driver enters a preset energy-saving state; or for executing the second interface instruction, the storage drive enters a working state.
8. The system of claim 7, wherein the monitor module is interconnected with the storage drive interface module and the operating system interface module, and is configured to obtain whether the storage drive is in a preset power-saving state, and further configured to obtain a health status of the storage drive and a health status of the server operating system;
the system also comprises a console module which is connected with the monitoring module and the instruction scheduling module,
the monitoring module is used for sending the health state of the storage driver and the state of whether the storage driver is in a preset energy-saving state to the console module;
the console module is used for calling the storage driver instruction execution module through the instruction scheduling module to send a second interface instruction for adjusting the storage driver to enter a working state to the storage driver interface module when the storage driver is in a preset energy-saving state and the storage driver is unhealthy or the server operating system is unhealthy; and the storage driver interface module executes the second interface instruction, and the storage driver enters a working state.
9. The system of claim 4, further comprising a console module,
and the console module is connected with the monitoring module and used for informing the monitoring module to start monitoring the IO throughput of the file system of the server after the user selects the automatic adjustment mode.
10. The system of claim 9, wherein the console module comprises a wireless networking enabled module or a bluetooth enabled module, supports a remote ssh protocol or a Telnet protocol, and is further configured to receive a message from a user remotely sent selecting the auto-adjustment mode.
11. The system of claim 9 or 10, wherein the console module has a visualization window for sensing an action of a user to switch the automatic adjustment mode or the manual adjustment mode through the visualization window.
CN201710469872.6A 2017-06-20 2017-06-20 Method and system for adjusting state of storage driver of server Active CN107272874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710469872.6A CN107272874B (en) 2017-06-20 2017-06-20 Method and system for adjusting state of storage driver of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710469872.6A CN107272874B (en) 2017-06-20 2017-06-20 Method and system for adjusting state of storage driver of server

Publications (2)

Publication Number Publication Date
CN107272874A CN107272874A (en) 2017-10-20
CN107272874B true CN107272874B (en) 2020-05-15

Family

ID=60067956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710469872.6A Active CN107272874B (en) 2017-06-20 2017-06-20 Method and system for adjusting state of storage driver of server

Country Status (1)

Country Link
CN (1) CN107272874B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021134413A1 (en) * 2019-12-31 2021-07-08 Arris Enterprises Llc Modem energy management system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441507A (en) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 Energy-saving method and apparatus for hard disk equipment
CN102053697A (en) * 2009-11-06 2011-05-11 联想(北京)有限公司 Hard disk control method, device and computer
CN102968175A (en) * 2012-11-27 2013-03-13 华为技术有限公司 Method, device, controller and system for controlling memory
JP2015082276A (en) * 2013-10-24 2015-04-27 富士通株式会社 Information processing method, program, information processing apparatus, and computer system
CN106455022A (en) * 2016-10-20 2017-02-22 广东欧珀移动通信有限公司 Power saving mode switching method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441507A (en) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 Energy-saving method and apparatus for hard disk equipment
CN102053697A (en) * 2009-11-06 2011-05-11 联想(北京)有限公司 Hard disk control method, device and computer
CN102968175A (en) * 2012-11-27 2013-03-13 华为技术有限公司 Method, device, controller and system for controlling memory
JP2015082276A (en) * 2013-10-24 2015-04-27 富士通株式会社 Information processing method, program, information processing apparatus, and computer system
CN106455022A (en) * 2016-10-20 2017-02-22 广东欧珀移动通信有限公司 Power saving mode switching method and device

Also Published As

Publication number Publication date
CN107272874A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
US8635475B2 (en) Application-specific power management
CN108345524B (en) Application program monitoring method and application program monitoring device
EP1536569B1 (en) Power management in a transmitter
WO2016041468A1 (en) Wakeup method, device and terminal
US9740272B2 (en) Hard drive energy-saving control method and apparatus, and central processing unit
CN1894989A (en) Communication unit energy conservation apparatus and method
US9106662B2 (en) Method and apparatus for controlling load allocation in cluster system
US10763671B2 (en) Power management apparatus, power management system, power management method, and non-transitory storage medium
CN111625080B (en) Server energy saving method and device, electronic equipment and storage medium
CN110360721B (en) Power consumption control method and device of air conditioner, storage medium and air conditioner
US9727104B2 (en) Various PSUs adaptive server and method
CN107272874B (en) Method and system for adjusting state of storage driver of server
WO2010083677A1 (en) Method, device and system of energy consumption controlling for chip
US9395736B2 (en) System and method for collecting appliance standby electricity-saving information
CN111128247B (en) Data recording method, device, computing equipment and storage medium
CN102130772A (en) Energy-saving method of service single board, main control board, service single board and access equipment
JP7506667B2 (en) Power supply sleep method, sleep determination method, and electronic device
CN111163505A (en) Power consumption control method, system, device and medium for WiFi device
CN115225685B (en) Method and device for controlling equipment power consumption
CN103019119A (en) Method and system automatically switching standby modes
CN113992687B (en) Intelligent service cluster scheduling method and device, electronic equipment and storage medium
CN110046143B (en) Integrated architecture optimization system and optimization method of integrated data platform
CN114327023A (en) Energy-saving method and system for Kubernetes cluster, computer medium and electronic equipment
CN212772081U (en) Gate monitoring device and gate system
CN103196549A (en) Vibration monitoring system and power management method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200420

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant