CN115981447A - Control method of power saving mode - Google Patents
Control method of power saving mode Download PDFInfo
- Publication number
- CN115981447A CN115981447A CN202111196228.9A CN202111196228A CN115981447A CN 115981447 A CN115981447 A CN 115981447A CN 202111196228 A CN202111196228 A CN 202111196228A CN 115981447 A CN115981447 A CN 115981447A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- power
- expander
- output
- control unit
- 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.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
A method for controlling a power saving mode includes: when a storage system is changed from a normal mode to a power-saving mode, a server host outputs a sleep command to a hard disk expander; when the hard disk expander receives the sleep command, the hard disk expander outputs a buffer value and an interrupt signal in a normal state and a power-saving state respectively; controlling a hard disk to enter the power saving state and controlling a power supply unit not to output a main power supply by a control unit according to the register value and the interrupt signal, so that the hard disk expander and the control unit use a standby power supply output by the power supply unit as a power supply for operation; and a control method of a power saving mode with more power saving is realized.
Description
Technical Field
The present invention relates to a control method, and more particularly, to a control method for a power saving mode of a storage device.
Background
Conventional SAS (Serial Attached SCSI) storage systems operate between a normal mode and a power saving mode, and include a SAS Expander (Expander), a Complex Programmable Logic Device (CPLD), a power supply unit, and a SAS hard disk. The SAS expander is suitable for being electrically connected with a server host, the complex programmable logic device is electrically connected with the server host and the SAS hard disk, and the power supply unit is electrically connected with the SAS expander, the complex programmable logic device and the SAS hard disk so as to provide power supply required by operation.
When the SAS storage system operates in the normal mode, the SAS hard disk can normally operate to be accessed by the server host. When the SAS storage system operates in the power saving mode, the SAS expander receives a sleep command from the server host to inform the complex programmable logic device to control the SAS hard disk to enter a power saving state and cannot access data. In the prior art, the complex programmable logic device controls the SAS hard disk to enter a normal state or the power saving state by transmitting a signal through a 3 rd Pin (Pin) of a flat cable connected with the SAS hard disk, or controls the SAS hard disk by conducting or not conducting a power loop provided to the SAS hard disk from the power unit through an e-fuse circuit. However, there is room for improvement in conventional SAS or other storage systems for other more power efficient modes of operation and methods of controlling the same.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for controlling a power saving mode with more power saving.
To solve the above technical problems, the present invention provides a method for controlling a power saving mode, which is suitable for a server host and a storage system. The storage system comprises a power supply unit, a hard disk, a control unit and a hard disk Expander (Expander). The method for controlling the power saving mode includes the steps (A) to (C).
In step (a), when the storage system is to be changed from a normal mode to a power saving mode, the server host outputs a sleep command to the hard disk expander.
In step (B), when the hard disk expander receives the sleep command, the hard disk expander outputs a predetermined buffer value in a normal state, enters a power saving state when the timing reaches a predetermined time interval, and outputs an interrupt signal.
In step (C), the control unit determines whether the register value and the interrupt signal are received.
In step (D), when the control unit receives the register value and the interrupt signal, the hard disk is controlled to enter the power saving state and the power supply unit is controlled not to output a main power supply, so that the hard disk expander and the control unit use a standby power supply output by the power supply unit as a power supply for operation.
Preferably, in step (B), when the hard disk expander receives the sleep command, the hard disk expander writes the predetermined buffer value into a buffer (register) of the control unit.
Preferably, the control method of the power saving mode is further adapted to a power switch, which receives the main power source and the standby power source to output an output power source as a power source required by the operations of the hard disk expander and the control unit. The power saving mode control method further includes a step (E) in which the power switch detects the main power source and the backup power source, and when it is determined that the power unit has the main power source, the power switch selects to output the main power source as the output power source, and when it is determined that the power unit has only the backup power source, the power switch selects to output the backup power source as the output power source. In step (D), the hard disk expander and the control unit receive the output power from the power switch to obtain the standby power as an operating power.
Preferably, the hard disk expander includes a timer, wherein in step (B), when the hard disk expander receives the sleep command, the hard disk expander controls the timer to start timing, and when the timer reaches the predetermined time interval, the hard disk expander enters the power saving state.
Preferably, in step (D), when the control unit determines that the received buffer value matches a predetermined value and the interrupt signal is received, the control unit controls the hard disk to enter the power saving state first, and then controls the power supply unit not to output the main power supply.
Preferably, the hard disk expander is an SAS expander, wherein in step (B), when the hard disk expander operates in the power saving state, one of a plurality of SAS channels (channels) of the hard disk expander is turned on, and the rest of the SAS channels are turned off.
Preferably, the method for controlling the power saving mode further comprises steps (F), (G), (H), (I), and J). In step (F), when the storage system is to be changed from the power saving mode to the normal mode, the server host outputs a wake-up command to the hard disk expander.
In step (G), the hard disk expander determines whether the wake-up command is received.
In step (H), when the hard disk extender receives the wake-up command, the hard disk extender notifies the control unit to control the power supply unit to output the main power supply. When the voltage of the main power supply output by the power supply unit reaches a normal output range, a main power supply normal signal is generated.
And (I) judging whether the main power supply normal signal is received or not by the hard disk expander.
In step (J), when the hard disk expander receives the main power normal signal, the hard disk expander changes to operate in the normal state, and the control unit controls the hard disk to enter the normal state according to the main power normal signal.
Preferably, the hard disk expander is an SAS expander, wherein in step (I), after the hard disk expander receives the wake-up command from the server host and receives the main power normal signal, each SAS Channel of the hard disk expander is activated to enter the normal state.
Preferably, in step (H), when the hard disk expander receives the wake-up command, the interrupt signal is output in the power saving state. When the control unit receives the interrupt signal, the power supply unit is controlled to output the main power supply. In step (J), when the control unit determines that the main power source normal signal is received, the hard disk is controlled to enter the normal state.
Preferably, the control unit is a Complex Programmable Logic Device (CPLD) or a Microcontroller (MCU).
Compared with the prior art, the hard disk control system controls the hard disk to enter the power saving state and controls the power supply unit not to output the main power supply by the control unit according to the register value output by the hard disk expander in the normal state and the interrupt signal output by the hard disk expander in the power saving state, so that the expander and the control unit use the standby power supply as a running power supply, the storage system can save more power in the power saving mode compared with the prior art, and the control method of the power saving mode with more power saving is further realized.
[ description of the drawings ]
FIG. 1 is a block diagram of a storage system and a server host to which the power saving mode control method of the present invention is applied; and
FIG. 2 is a flowchart illustrating a method for controlling the power saving mode according to an embodiment of the present invention.
[ detailed description ] embodiments
Before the present invention is described in detail, it should be noted that in the following description, similar components are denoted by the same reference numerals.
Referring to fig. 1, the method for controlling the power saving mode of the present invention is applicable to a server host 9 and a storage system 100, where the storage system 100 includes a power unit 3, a hard disk 5, a power switch 4, a control unit 2, and a hard disk Expander (Expander) 1. The storage system 100 operates between a normal mode and a power saving mode, and when the storage system 100 operates in the normal mode, the hard disk expander 1 and the hard disk 5 operate in a normal state, so that the server host 9 can access data to the hard disk 5. When the storage system 100 operates in the power saving mode, the hard disk expander 1 and the hard disk 5 operate in a power saving state to consume less power than the normal state, and at this time, the hard disk 5 cannot be accessed by the server host 9. In addition, the control unit 2 operates in an operating state corresponding to the normal state regardless of whether the storage system 100 operates in the normal mode or the power saving mode.
The control unit 2 is, for example, a Complex Programmable Logic Device (CPLD) or a Microcontroller (MCU), but not limited thereto. The control unit 2 is electrically connected to the hard disk expander 1, the power supply unit 3, the power switch 4 and the hard disk 5. The hard disk expander 1 is electrically connected to the server host 9, the hard disk 5, the power switch 4, and the power unit 3. The hard disk 5 is electrically connected to the power supply unit 3. The power switch 4 is electrically connected to the power unit 3 and is, for example, a hot plug controller (hot plug controller).
In this embodiment, the hard disk 5 is an SAS hard disk, the hard disk expander 1 includes a timer 11 and is an SAS (Serial Attached SCSI) expander, and the hard disk expander 1 and the hard disk 5 support, for example, a Wake on SAS function of a third generation SAS protocol or a fourth generation SAS protocol. In other embodiments, the hard disk 5 may also be a SATA hard disk, an SSD hard disk, or other types of hard disk devices, and the hard disk expander 1 is an expander corresponding to the type of the hard disk 5. In addition, the storage system 100 may include a plurality of the control units 2 or the hard disks 5.
The power supply unit 3 is, for example, a power supply. When the power unit 3 receives an input power (e.g. commercial power), it outputs a backup power V2. When the power supply unit 3 receives the input power and a start switch of the power supply unit 3 is set to be turned on (i.e., the storage system 100 is turned on), the power supply unit 3 outputs a main power supply V1. More precisely, the power supply unit 3 is also controlled by the control unit 2 to determine whether to output the main power supply V1 when the input power supply is received and the start switch is set to be turned on. In addition, when the voltage of the main power V1 outputted by the power unit 3 reaches a normal output range, a main power normal signal S21 is generated. For example, the voltages of the main power source V1 and the backup power source V2 are, for example, 12 volts and 5 volts, respectively, and the normal output range is, for example, between 12 × 90% volts and 12 × 110% volts.
The control method of the power saving mode includes steps S1 to S11.
In step S1, when the storage system 100 is to change from the normal mode to the power saving mode, the server host 9 outputs a sleep command to the hard disk expander 1. Next, step S2 is performed.
In step S2, when the hard disk expander 1 receives the sleep command, the hard disk expander 1 outputs a buffer value and an interrupt signal to the control unit 2 in the normal state and the power saving state, respectively. More specifically, the hard disk expander 1 outputs the buffer value equal to a predetermined value to the control unit 2 in the normal state when receiving the sleep command, controls the timer 11 to start timing when receiving the sleep command, enters the power saving state when the timer 11 reaches a predetermined time interval, and outputs the interrupt signal to the control unit 2. The register value is transmitted, for example, through an interface of an Integrated Circuit (I2C), the interrupt signal is, for example, a pulse signal and is transmitted through a pin of a General-purpose input/output (GPIO), and the predetermined time interval is, for example, 3 seconds, but is not limited thereto. Subsequently, step S3 is executed.
It should be additionally noted that: when the hard disk expander 1 is an SAS expander and is operated in the power saving state, only one of the SAS channels (channels) of the hard disk expander 1 is turned on, and the rest of the SAS channels are turned off, so as to reduce power consumption. It should be noted that the channel opened when the hard disk expander 1 operates in the power saving state is used for receiving a wake-up command, so that the hard disk expander 1 can return to the normal state again.
In step S3, the control unit 2 determines whether the register value and the interrupt signal are received. When the control unit 2 determines that the register value and the interrupt signal are received, step S4 is executed.
In step S4, the control unit 2 controls the hard disk 5 to enter the power saving state according to the register value and the interrupt signal. Next, step S5 is performed.
In step S5, the control unit 2 further controls the power supply unit 3 not to output the main power supply V1, so that the hard disk expander 1 and the control unit 2 use the backup power supply V2 output by the power supply unit 3 as an operating power supply. More specifically, the hard disk expander 1 and the control unit 2 receive an output power V3 outputted from the power switch 4, and obtain the main power V1 or the standby power V2 outputted from the power unit 3 as the operating power.
When the control unit 2 determines that the received buffer value matches the predetermined value and the interrupt signal is received, the hard disk 5 is controlled to enter the power saving state, and then a control signal S22 is transmitted to the power unit 3 to control the power unit 3 not to output the main power V1. That is, the control unit 2 controls the hard disk 5 to enter the power saving state after performing double confirmation according to the register value and the interrupt signal, so as to avoid the malfunction of a single signal.
It should be additionally noted that: the control signal S22 is transmitted, for example, through a pin of a general purpose input/output (GPIO). In addition, as in the prior art, the control unit 2 controls the hard disk 5 to enter the power saving state (or the normal state) by, for example, transmitting a signal through a 3 rd Pin (Pin) of a flat cable connected to the hard disk 5, or by turning off (or turning on) a power loop provided from the power unit 3 to the hard disk 5 through an e-fuse circuit to control the hard disk 5 to enter the power saving state (or the normal state).
In step S6, the power switch 4 receives the main power V1 and the backup power V2 from the power unit 3, and detects the main power V1 and the backup power V2, and when it is detected that the power unit 3 outputs the main power V1, the power switch 4 selects to output the main power V1 as the output power V3. When it is detected that the power unit 3 only outputs the standby power V2, the power switch 4 selects to output the standby power V2 as the output power V3.
It should be additionally noted that: the hard disk expander 1, the control unit 2, and the power switch 4 are generally called an Input/Output module (IOM), and the power switch 4 can provide protection for the Output power V3, i.e. the power unit 3 provides protection at the power Input end of the IOM. In addition, in other embodiments, the storage system 100 may also include a plurality of corresponding hard disk expanders 1, a plurality of corresponding control units 2, and a plurality of corresponding power switches 4, that is, a plurality of input/output modules (IOMs).
In step S7, when the storage system 100 is to be changed from the power saving mode to the normal mode, the server host 9 outputs the wake-up command to the hard disk expander 1. Subsequently, step S8 is executed.
In step S8, the hard disk expander 1 determines whether the wake-up command is received. When the hard disk expander 1 determines that the wake-up command is received, step S9 is executed.
In step S9, the hard disk expander 1 outputs the interrupt signal to the control unit 2 in the power-saving state. When the control unit 2 receives the interrupt signal, it first transmits the control signal S22 to the power unit 3 to control the power unit 3 to output the main power V1. When the voltage of the main power V1 outputted by the power supply unit 3 reaches the normal output range, the main power normal signal S21 is generated to the hard disk expander 1 and the control unit 2. Next, step S10 is executed.
In step S10, the hard disk expander 1 determines whether the main power source normal signal S21 is received. When the hard disk expander 1 determines that the main power supply normal signal S21 is received, step S11 is executed.
In step S11, the hard disk expander 1 is changed to operate in the normal state, and when the control unit 2 determines that the main power source normal signal S21 is received (or the logic value of the main power source normal signal S21 indicates that the voltage of the main power source V1 reaches the normal output range), the hard disk 5 is controlled to enter the normal state.
In addition, in this embodiment, after the hard disk expander 1 receives the wake-up command, and when the hard disk expander 1 receives the main power source normal signal S21 (or when the logic value of the main power source normal signal S21 indicates that the voltage of the main power source V1 reaches the normal output range), each SAS Channel (Channel) of the hard disk expander 1 is started to operate in the normal state instead.
In summary, the hard disk expander 1 outputs the register value in the normal state and then outputs the interrupt signal in the power saving state, so that the control unit 2 controls the hard disk 5 to enter the power saving state and controls the power supply unit 3 not to output the main power supply V1, and further the hard disk expander 1 and the control unit 2 use the standby power supply V2 as a power supply for operation. Therefore, the control method of the power saving mode can save more power compared with the prior art when in the power saving mode, thereby really achieving the purpose of the invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A control method of power saving mode is suitable for a server host and a storage system, the storage system includes a power unit, a hard disk, a control unit, and a hard disk expander, characterized in that, the control method of power saving mode includes:
(A) When the storage system is changed from a normal mode to a power-saving mode, the server host outputs a sleep command to the hard disk expander;
(B) When the hard disk expander receives the sleep instruction, the hard disk expander outputs a preset buffer value in a normal state, enters a power-saving state when timing reaches a preset time interval, and then outputs an interrupt signal; and
(C) Judging whether the register value and the interrupt signal are received by the control unit; and
(D) When the control unit receives the buffer value and the interrupt signal, the hard disk is controlled to enter the power-saving state and the power supply unit is controlled not to output a main power supply, so that the hard disk expander and the control unit use a standby power supply output by the power supply unit as a power supply for operation.
2. The method as claimed in claim 1, wherein in step (B), the hard disk expander writes the predetermined buffer value into a buffer of the control unit when receiving the sleep command.
3. The method as claimed in claim 1, further comprising a power switch for receiving the main power source and the backup power source to output an output power source as a power source required by the operation of the hard disk expander and the control unit, wherein the method further comprises a step (E) of detecting the main power source and the backup power source by the power switch, and selecting the main power source to be output as the output power source by the power switch when the main power source is determined to be output by the power unit, and selecting the backup power source to be output as the output power source by the power switch when only the backup power source is determined to be output by the power unit, wherein in the step (D), the hard disk expander and the control unit receive the output power source from the power switch to obtain the backup power source as the operating power source.
4. The method as claimed in claim 3, wherein the hard disk expander comprises a timer, and the step (B) is performed by controlling the timer to start timing when the hard disk expander receives the sleep command, and entering the power saving state when the timer reaches the predetermined time interval.
5. The method as claimed in claim 4, wherein in step (D), when the control unit determines that the received register value matches a predetermined value and the interrupt signal is received, the hard disk is controlled to enter the power saving state, and then the power supply unit is controlled not to output the main power.
6. The method as claimed in claim 5, wherein the hard disk expander is an SAS expander, and wherein in step (B), when the hard disk expander is operating in the power saving state, one of the SAS channels of the hard disk expander is turned on and the rest of the SAS channels are turned off.
7. The method as claimed in claim 5, further comprising steps (F), (G), (H), (I), (J),
in step (F), when the storage system is to be changed from the power saving mode to the normal mode, the server host outputs a wake-up command to the hard disk expander,
in step (G), determining whether the wake-up command is received by the hard disk expander;
in step (H), when the hard disk extender receives the wake-up command, the hard disk extender notifies the control unit to control the power supply unit to output the main power supply, and when the voltage of the main power supply output by the power supply unit reaches a normal output range, a main power supply normal signal is generated,
in step (I), judging whether the main power supply normal signal is received or not by the hard disk expander;
in step (J), when the hard disk expander receives the main power normal signal, the hard disk expander operates in the normal state, and the control unit controls the hard disk to enter the normal state according to the main power normal signal.
8. The method as claimed in claim 7, wherein the hard disk expander is an SAS expander, and in step (J), when the hard disk expander receives the wake-up command from the server host and receives the main power normal signal, each SAS channel of the hard disk expander is activated to enter the normal state.
9. The method as claimed in claim 7, wherein in step (H), when the hard disk expander receives the wake-up command, the interrupt signal is outputted in the power saving state, when the control unit receives the interrupt signal, the power unit is controlled to output the main power, and in step (J), when the control unit determines that the main power is received normally, the hard disk is controlled to enter the normal state.
10. The method of claim 9, wherein the control unit is a complex programmable logic device or a microcontroller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111196228.9A CN115981447A (en) | 2021-10-14 | 2021-10-14 | Control method of power saving mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111196228.9A CN115981447A (en) | 2021-10-14 | 2021-10-14 | Control method of power saving mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115981447A true CN115981447A (en) | 2023-04-18 |
Family
ID=85974554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111196228.9A Pending CN115981447A (en) | 2021-10-14 | 2021-10-14 | Control method of power saving mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115981447A (en) |
-
2021
- 2021-10-14 CN CN202111196228.9A patent/CN115981447A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7783905B2 (en) | Method for reducing power consumption of a computer system in the working state | |
US5664203A (en) | Peripheral device input-initiated resume system for combined hibernation system and back-up power supply for computer | |
US6274949B1 (en) | Back-up power accessory for a computer | |
US9557802B2 (en) | Method of controlling SDIO device and related SDIO system and SDIO device | |
US20020026595A1 (en) | Power supply control system and power supply control method capable of reducing electric power consumption | |
US20150106644A1 (en) | Redundant array of independent disks storage device, server system, and power management method thereof | |
CN104272388A (en) | Ultra-deep power-down mode for memory devices | |
US20060250875A1 (en) | Voltage detection circuit control device, memory control device with the same, and memory card with the same | |
CN111741518A (en) | WiFi chip circuit and WiFi device | |
CN105446916A (en) | USB bus state switching method and apparatus | |
US8738936B2 (en) | Storage apparatus | |
TWI726550B (en) | Method of providing power in standby phase | |
US20180329476A1 (en) | Method for performing destination power management with aid of source data statistics in storage system, and associated apparatus | |
CN117055822B (en) | NVME SSD Raid card board power-carrying system and control method | |
CN115981447A (en) | Control method of power saving mode | |
TWI795919B (en) | Control method of power saving mode | |
CN201548953U (en) | Startup and shutdown time sequence control device of disk array storage system | |
US20120185713A1 (en) | Server, storage medium, and method for controlling sleep and wakeup function of the server | |
JP2912349B1 (en) | Disk array control method and disk array device | |
JP2023107757A (en) | Method for controlling operation state of computer system and corresponding computer system | |
CN110908673A (en) | Digital power supply chip burning method | |
JP2001337789A (en) | Disk subsystem | |
KR102244643B1 (en) | Switching mode power supply built-in standby power cut-off apparatus and method | |
US10921875B2 (en) | Computer system, operational method for a microcontroller, and computer program product | |
CN221927078U (en) | Dual-control storage device and electronic device |
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 |