WO2013170575A1 - 一种硬盘节能控制方法、装置及中央处理器 - Google Patents

一种硬盘节能控制方法、装置及中央处理器 Download PDF

Info

Publication number
WO2013170575A1
WO2013170575A1 PCT/CN2012/082703 CN2012082703W WO2013170575A1 WO 2013170575 A1 WO2013170575 A1 WO 2013170575A1 CN 2012082703 W CN2012082703 W CN 2012082703W WO 2013170575 A1 WO2013170575 A1 WO 2013170575A1
Authority
WO
WIPO (PCT)
Prior art keywords
hard disk
time period
state
working state
energy
Prior art date
Application number
PCT/CN2012/082703
Other languages
English (en)
French (fr)
Inventor
方庆银
邱朝平
夏强志
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013170575A1 publication Critical patent/WO2013170575A1/zh
Priority to US14/090,731 priority Critical patent/US9740272B2/en

Links

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/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3268Power saving in hard disk drive
    • 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
    • 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
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a hard disk energy-saving control method, device, and central processor. Background technique
  • advanced power management technology which is a host power management scheme based on a BIOS (Basi c input/output System).
  • BIOS Basic c input/output System
  • the different devices connected to the host passively accept a unified power saving management mode, for example, unified acceptance of suspension (ie, the display automatically powers off); or unified acceptance of suspension Memory (that is, the system stores the current information in the memory); or accepts the suspension to the hard disk (that is, the computer automatically shuts down, the current data is stored on the hard disk before shutting down).
  • the embodiment of the invention provides a hard disk energy-saving control method, device and a central processing unit, so as to implement real-time power consumption dynamic matching service access traffic of the hard disk and improve the energy saving effect of the hard disk.
  • the first aspect provides a hard disk energy saving control method, where the method includes:
  • each preset time period is Less than one preset time period in a statistical period
  • the hard disk is energy-savingly controlled according to the working state of the hard disk for the next time period.
  • the historical working state is a historical working state of each preset time period in a statistical period
  • the predicting the working state of the next time period of the current time period of the hard disk according to the historical working state of the hard disk includes:
  • the working state is an idle state, so that the hard disk enters an idle mode; if not, it predicts that the working state of the next time period of the current time period of the hard disk is a busy state, and the hard disk enters the standby mode;
  • the energy-saving control level of the hard disk is selected according to the working state of the next time period of the hard disk.
  • the specific energy-saving policy level is selected to perform energy-saving control on the hard disk entering the idle mode or the standby mode.
  • the historical working state is a historical working state of each preset time period in multiple statistical periods
  • the predicting the working state of the next time period of the current time period of the hard disk according to the historical working state of the hard disk includes:
  • the hard disk is in an idle state and in a busy state in the next time period corresponding to the time period corresponding to the previous time period;
  • the probability that the hard disk is in an idle state in the next time period of the time period corresponding to the previous time period is greater than the probability of being in the busy state, predicting that the working state of the next time period of the current time period of the hard disk is an idle state, Putting the hard disk into the idle mode; otherwise, predicting that the working state of the next time period of the current time period of the hard disk is a busy state, so that the hard disk enters the standby mode;
  • the method further includes: abstracting the hard disk according to the historical working state in the statistics Historical work curve during the cycle;
  • the working state of the next time period of the current time period of the hard disk is predicted according to the historical working state of the hard disk, and the working state of the next time period of the current time period of the hard disk is predicted according to the historical working curve of the hard disk.
  • the historical working curve of the abstract hard disk according to the historical working state specifically includes:
  • the historical working state of each preset time period is analyzed, and the historical working state of the hard disk for each preset time period in the statistical period is an idle state or a busy state;
  • the historical working curve of the hard disk is drawn according to the idle or busy state of the hard disk for each preset time period in the statistical period.
  • the method further includes:
  • the hard disk When the hard disk enters the standby mode and switches from the standby mode to the normal state, if there is burst data access to the hard disk, the burst data is buffered by the cache.
  • the method further includes:
  • the hard disk When the historical working state of each preset time period of the hard disk is insufficient, or the hard disk has no historical working state, the hard disk has a read/write operation at a predetermined time interval in the current time period;
  • the recorded hard disk is in a busy state during the current time period; otherwise, the recorded hard disk is in an idle state during the current time period;
  • the hard disk of the current time period is energy-savingly controlled according to the obtained energy-saving policy level according to the working state of the current time period of the hard disk.
  • the second aspect provides a hard disk energy saving control device, where the device includes:
  • the obtaining module is configured to obtain a historical working state of each preset time period of the hard disk, where each preset time period is each preset time period in at least one statistical period;
  • a prediction module configured to predict an operating state of a next time period of the current time period of the hard disk according to a historical working state of the hard disk
  • the energy-saving control module is configured to perform energy-saving control on the hard disk according to the working state of the hard disk in the next time period.
  • the prediction module includes:
  • the first judging module is configured to determine whether the hard disk in the next time period of the time period corresponding to the current time period in each preset time period in the one statistical period is in an idle state;
  • a first determining module configured to predict, when the working status of the next time period of the current time period of the hard disk is an idle state, predicting an operating state of a next time period of the current time period of the hard disk In the idle state, the hard disk is put into the idle mode; otherwise, the working state of the next time period of the current time period of the hard disk is predicted to be busy, and the hard disk is determined to enter the standby mode;
  • the energy-saving control module is specifically configured to select a corresponding energy-saving policy level, and determine, by the first determining module, that the hard disk enters an idle mode or a standby mode to perform energy-saving control.
  • the prediction module when the historical working state is a historical working state of each preset time period in multiple statistical periods, includes:
  • the statistics module is configured to collect the historical working status of the hard disk in the next time period of the time period corresponding to the current time period in each statistical period, and obtain a statistical result;
  • a calculation module configured to calculate, according to the statistics, a probability that the hard disk is in an idle state and is in a busy state in a next time period of a time period corresponding to the previous time period;
  • a second judging module configured to determine whether the probability that the hard disk is in an idle state in a next time period of a time period corresponding to the previous time period is greater than a probability of being in a busy state
  • a second determining module configured to predict a current time period of the hard disk when the second determining module determines that the probability that the hard disk is in an idle state in a next time period corresponding to a time period corresponding to the previous time period is greater than a probability of being in a busy state
  • the control module is specifically configured to select a corresponding energy saving policy level, and determine, by the second determining module, that the hard disk enters an idle mode or a standby mode to perform energy saving control.
  • the method further includes:
  • An abstract module configured to abstract a historical working curve of the hard disk in the statistical period according to the historical working state acquired by the obtaining module
  • the prediction module is specifically configured to predict an operating state of a next time period of the current time period of the hard disk according to a historical working curve of the hard disk.
  • the abstracting module includes:
  • the analysis module is configured to analyze the historical working state of each preset time period in the obtaining period of the obtaining module, and obtain the historical working state of the hard disk for each preset time period in the statistical period is idle state or busy state. ;
  • a drawing module configured to draw a historical working curve of the hard disk according to an idle or busy state of the hard disk in each of the preset time periods in the statistical period obtained by the analyzing module.
  • the method further includes:
  • a cache module configured to cache the burst if the first determining module or the second determining module determines that the hard disk enters the standby mode and switches from the standby mode to the normal state, if there is burst data access to the hard disk data.
  • the method further includes:
  • a detecting module configured to: when the obtaining module acquires a historical working state of each preset time period of the hard disk is insufficient, or when the hard disk has no historical working state, detecting whether the hard disk is read or written once every predetermined time in the current time period Operation
  • a recording module configured to: when the detecting module detects that the hard disk has a read/write operation, record the hard disk in a busy state during the current time period; and record the hard disk in the current time period when the detecting module detects that the single hard disk has no read/write operation In an idle state;
  • the energy-saving control module is further configured to perform energy-saving control on a next time period of the current time period of the hard disk according to whether the current time period of the hard disk is in a busy state or an idle state and select a corresponding energy-saving policy level.
  • the third aspect provides a central processing unit, including: an energy saving policy configuration device and a hard disk energy saving control device, wherein
  • the energy saving policy configuration device is configured to configure a hard disk energy saving policy level, and send the hard disk energy saving policy level to the hard disk energy saving control device;
  • the hard disk energy-saving control device is configured to acquire a historical working state of each preset time period of the hard disk, and an operating state of the current time segment of the hard disk, where each preset time period is each preset time in at least one statistical period
  • the working state of the next time period of the current time period of the hard disk is predicted according to the historical working state of the hard disk; and the power saving policy level is selected according to the working state of the next time period of the hard disk to perform energy saving control on the hard disk.
  • the hard disk energy-saving control device is the hard disk energy-saving control device.
  • the hard disk by monitoring the user's access operation to the hard disk, and combining the actual history of the hard disk history access, the hard disk accesses the future working state and controls the hard disk to enter the corresponding energy saving mode. That is, the embodiment of the present invention determines the working mode of the hard disk entering (ie, the idle mode or the standby mode) according to the historical hard disk access operation data, and then the energy saving policy corresponding to the selected one performs energy-saving control on the hard disk, thereby realizing dynamic matching of the real-time power consumption of the hard disk. Business access traffic, reducing useless data without data access, thereby improving the energy saving effect of the hard disk.
  • FIG. 1 is a flowchart of a method for controlling energy saving of a hard disk according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a hard disk energy-saving control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a second structure of a hard disk energy-saving control device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a third structure of a hard disk energy-saving control device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a fourth structure of a hard disk energy-saving control device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a central processing unit according to an embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a method for controlling energy saving of a hard disk according to an embodiment of the present invention; the method includes:
  • Step 101 Obtain a historical working state of each preset time period of the hard disk, where each preset time period is each preset time period in at least one statistical period;
  • the working state of each time period before the current time period of the hard disk is collected by the callback interface of the user management software registration hard disk operation (herein referred to as a historical working state), that is, the operation data of the hard disk is accessed, and the working state includes Idle state and busy state, etc.
  • a historical working state the working state of the current time period of the hard disk, that is, whether the current hard disk is in a busy state or in an idle state.
  • Pij is the idle state of the hard disk in the jth time period of week i, and the hard disk is busy in the rest of the time.
  • the historical working curve of each abstract hard disk is shown in Fig. 2.
  • the abscissa is the divided N time periods, and the ordinate is the hard disk access rate.
  • Step 102 predict an operating state of a next time period of the current time period of the hard disk according to a historical working state of the hard disk;
  • the historical working state of each preset time period is first analyzed to obtain a hard disk for each time period.
  • the historical working state is an idle state or a busy state; of course, in this embodiment, the historical working curve of the hard disk may also be drawn according to the idle state or the busy state of the hard disk for each preset time period, but is not limited thereto. It is a historical work curve.
  • the idle state or the busy state of the hard disk may be recorded in the preset hard disk state record table for subsequent use, which is not limited in this embodiment.
  • the working state of the hard disk may be counted according to historical statistics, or the historical working curve of the drawing may be used to determine the working mode of the hard disk during the period; specifically:
  • the hard disk Determining whether the hard disk is in an idle state in the next time period of the time period corresponding to the current time segment on the historical working curve, and if yes, predicting that the working state of the next time period of the current time segment of the hard disk is an idle state, The hard disk enters the idle mode; otherwise, it predicts that the working state of the current time period of the hard disk is busy, and the hard disk enters the standby mode.
  • the hard disk is predicted to be in an idle state for the next time period, and the hard disk enters the idle mode. Otherwise, the hard disk is predicted to be in a busy state for the next time period, and the hard disk enters the standby mode.
  • Step 103 Select a corresponding energy saving policy level according to the working state of the hard disk in the next time period to perform energy saving control on the hard disk.
  • the corresponding energy-saving policy level is selected, and the power-saving control is performed on the hard disk that enters the idle mode or the standby mode.
  • the hard disk entering the idle mode or the standby mode is energy-savingly controlled according to the selected energy saving policy level.
  • the selected energy-saving policy level may be obtained in advance, or the energy-saving policy level may be obtained when the energy-saving control is required, which is not limited in this embodiment.
  • the energy saving policy level is an energy saving measure taken by the hard disk according to the working state of the hard disk, the energy consumption state, the working mode used, and the normal mode time. For example, if the hard disk enters the idle mode, the energy saving policy level may be selected to be 0 level. In addition, in this power saving mode, defragmentation or duplicate file management operations can be performed.
  • Table 1 The energy-saving strategy levels adopted by its various modes are shown in Table 1:
  • Dl PI idle 0 The energy saving policy level is level 0; idle idle disk is idle, you can enter this power saving mode; in this mode, you can defragment or repeat file management operations
  • D2 P2 is less than 1ms.
  • the energy saving policy level is 1, 2, and 3; the standb hard disk can enter this power saving mode in idle state; y can be used for defragmentation or duplicate file management operations in this mode.
  • the hard disk by monitoring the user's access operation to the hard disk, combined with the actual history of the hard disk history access, the hard disk accesses the future working state of the hard disk to control the hard disk to enter the corresponding energy saving mode. That is, the embodiment of the present invention abstracts the historical working state of the hard disk according to the historical hard disk access operation data, and determines the working mode (ie, idle or standby mode) that the hard disk enters according to the historical working state, and then, the energy saving corresponding to the selected one.
  • the strategy controls the hard disk to save energy, realizes the real-time power consumption of the hard disk, dynamically matches the service access traffic, and reduces the useless power when no data is accessed, thereby improving the energy saving effect of the hard disk.
  • the predicting the current time period of the hard disk according to the historical working state of the hard disk includes: determining whether the hard disk in the next time period of the time period corresponding to the current time period in each preset time period in the one statistical period is in an idle state, and if yes, predicting the The working state of the next time period of the current time period of the hard disk is an idle state, so that the hard disk enters an idle mode; if not, the working state of the next time period of the current time period of the hard disk is predicted to be a busy state, so that the hard disk enters Into standby mode;
  • the energy-saving control level of the hard disk is selected according to the working state of the next time period of the hard disk.
  • the specific energy-saving policy level is selected to perform energy-saving control on the hard disk entering the idle mode or the standby mode.
  • the historical working state is a historical working state of each preset time period in multiple statistical periods
  • the predicting the working status of the next time period of the current time period of the hard disk according to the historical working state of the hard disk includes: counting the hard disks in the next time period of the time period corresponding to the current time period in each statistical period The historical working state, the statistical result is obtained; according to the statistics, the probability that the hard disk is in an idle state and in a busy state in the next time period corresponding to the time period corresponding to the previous time period is calculated; if the hard disk is in the previous time The probability that the idle state is greater in the next time period of the time segment corresponding to the segment is greater than the probability of being in the busy state, and the working state of the next time period of the current time period of the hard disk is predicted to be idle, so that the hard disk enters the idle mode; , predicting that the working state of the next time period of the current time period of the hard disk is a busy state, and the hard disk enters the standby mode;
  • the energy-saving control level of the hard disk is selected according to the working state of the next time period of the hard disk.
  • the specific energy-saving policy level is selected to perform energy-saving control on the hard disk entering the idle mode or the standby mode.
  • the historical working state in the embodiment of the present invention may be a historical working state of each preset time period in a statistical period, or may be a historical working state of each preset time period in multiple statistical periods, and the present invention No restrictions.
  • the method may further include: abstracting, according to the historical working state, a historical working curve of the hard disk in the statistical period;
  • the working state of the next time period of the current time period of the hard disk is predicted according to the historical working state of the hard disk, and the working state of the next time period of the current time period of the hard disk is predicted according to the historical working curve of the hard disk.
  • the historical working curve of the abstract hard disk according to the historical working state specifically includes: analyzing the historical working state of each preset time period, and obtaining a historical working state of the hard disk for each preset time period in the statistical period. It is an idle state or a busy state; draws a historical working curve of the hard disk according to the idle or busy state of the hard disk for each preset time period in the statistical period.
  • the method may further include: when the hard disk enters the standby mode, and when switching from the standby mode to the normal state, if there is burst data accessing the hard disk, The burst data is then buffered by a cache.
  • the method may further include: when the historical working state of acquiring the preset time period of the hard disk is insufficient, or the hard disk has no historical working state, for example, when the first time is used, During the current time period, the hard disk is detected for read/write operation at a predetermined time interval; if there is a read/write operation, the recorded hard disk is in a busy state during the current time period; otherwise, the recorded hard disk is in an idle state during the current time period; The working state of the current time period performs energy saving control on the hard disk of the current time period according to the obtained energy saving policy level.
  • the method may further include: when the historical working state of each preset time period of the hard disk is insufficient, or when the hard disk has no historical working state, If the read/write operation is performed, the hard disk is in a busy state during the current time period; otherwise, the recorded hard disk is idle in the current time period; The working status of the current time period of the hard disk is energy-saving controlled according to the obtained energy saving policy level for the hard disk of the current time period.
  • the embodiment may also access the operation data of the hard disk by counting the current time period. , to predict the operation of the hard disk in the next time period of the current time period, specifically:
  • Pij is initialized to 0; if there is no previous access to the hard disk, directly perform the following steps:
  • the hard disk entering the idle mode or the standby mode is energy-saving controlled according to the selected energy-saving policy level.
  • the embodiment of the present invention further provides a hard disk energy-saving control device, which is shown in FIG. 3, and the device includes: an obtaining module 31, a prediction module 32, and an energy-saving control module 33, where The obtaining module 31 is configured to obtain a historical working state of each preset time period of the hard disk, where each preset time period is each preset time period in at least one statistical period; this example takes an example of collecting hard disk access operation data as an example.
  • the specific collection process is as described above, and is not described here.
  • the prediction module 32 is configured to predict the working state of the next time period of the current time period of the hard disk according to the historical working state of the hard disk; the energy saving control module 33 And selecting, according to the working state of the next time period of the hard disk, selecting a corresponding energy saving policy level to perform energy saving control on the hard disk. That is to say, in which working mode the hard disk enters, the corresponding energy saving policy level in the mode is selected for energy saving control, thereby improving the energy saving efficiency of the hard disk.
  • the prediction module 32 includes: a first determining module 321 and a first determining module 322, and corresponding structure diagrams thereof As shown in FIG. 4, FIG. 4 is a schematic diagram of a second structure of a hard disk energy-saving control device according to an embodiment of the present invention.
  • the first determining module 321 is configured to determine whether the hard disk is in an idle state in the next time period of the time period corresponding to the current time segment in each preset time period in the one statistical period; the first determining The module 322 is configured to: when the working status of the next time period of the current time period of the hard disk is determined to be an idle state, predict the working state of the next time period of the current time period of the hard disk as In the idle state, the hard disk is put into the idle mode; otherwise, the working state of the next time period of the current time period of the hard disk is predicted to be busy, and the hard disk is determined to enter the standby mode; the energy saving control module 33 is specifically configured to select the corresponding energy saving The policy level determines that the first determining module determines that the hard disk enters an idle mode or a standby mode for energy saving control.
  • the prediction module 32 includes: a statistics module 323, a calculating module 324, a second determining module 325, and a second The corresponding module 326 is shown in FIG. 5.
  • FIG. 5 is a schematic diagram of a third structure of the hard disk energy-saving control device according to an embodiment of the present invention.
  • the statistic module 323 is configured to collect a historical working state of the hard disk in the next time period of the time period corresponding to the current time period in each statistical period, and obtain a statistical result; If the statistics of the hard disk are in an idle state and in a busy state in the next time period of the time period corresponding to the previous time period, the second determining module 325 is configured to determine the hard disk in the previous time period.
  • the second determining module 326 configured to determine, in the second determining module, the time period corresponding to the previous time period of the hard disk
  • the probability of being in the idle state in the next time period is greater than the probability of being in the busy state
  • the hard disk is put into the idle mode; otherwise, the prediction is performed.
  • Control module 33 for selecting a particular level corresponding to the energy saving policy, determines the hard disk enters the idle mode or standby mode for energy-saving control of the second determining module.
  • the apparatus may further include: an abstracting module 61, configured to abstract a historical working curve of the hard disk in the statistical period according to the historical working state acquired by the obtaining module 31; That is, in the historical working state, which time the hard disk is in an idle state, and which time period is in a busy state, recorded and drawn as a working curve; the prediction module is specifically configured to predict the historical working curve according to the hard disk The working status of the next time period of the current time period of the hard disk.
  • an abstracting module 61 configured to abstract a historical working curve of the hard disk in the statistical period according to the historical working state acquired by the obtaining module 31; That is, in the historical working state, which time the hard disk is in an idle state, and which time period is in a busy state, recorded and drawn as a working curve
  • the prediction module is specifically configured to predict the historical working curve according to the hard disk The working status of the next time period of the current time period of the hard disk.
  • the abstracting module 61 includes: an analyzing module 611 and a drawing module 612, wherein the analyzing module 611 is configured to analyze, by the obtaining module 31, the historical working state of each preset time period in the statistical period, Obtaining, in the statistical period, the historical working state of the hard disk in each of the preset time periods is an idle state or a busy state; the drawing module 612 is configured to use the hard disk for each preset time period according to the statistical period analyzed by the analyzing module. The idle or busy state, draws the historical working curve of the hard disk.
  • FIG. 6 is a schematic diagram of a fourth structure of a hard disk energy-saving control device according to an embodiment of the present invention.
  • the device may further include: a cache module, configured to: when the first determining module or the second determining module determines that the hard disk enters the standby mode, and switches from the standby mode to the normal state, if there is a sudden When the data is accessed to the hard disk, the burst data is buffered.
  • a cache module configured to: when the first determining module or the second determining module determines that the hard disk enters the standby mode, and switches from the standby mode to the normal state, if there is a sudden When the data is accessed to the hard disk, the burst data is buffered.
  • the device may further include: a detecting module and a recording module, where the detecting module is configured to obtain, in the obtaining module, that the historical working state of each preset time period of the hard disk is insufficient, Or when the hard disk has no historical working state, detecting whether the hard disk has read and write operations every predetermined time interval in the current time period;
  • the recording module is configured to: when the detecting module detects that the hard disk has a read/write operation, record the hard disk in a busy state during the current time period; and when the detecting module detects that the single hard disk has no read/write operation, record the hard disk The current time period is in an idle state;
  • the energy-saving control module is further configured to perform energy-saving control on a next time period of the current time period according to the busy state or the idle state of the current time period of the hard disk, and selecting a corresponding energy-saving policy level.
  • the abstraction module and the prediction module may be integrated, or may be deployed in the network in a single step, which is not limited in this embodiment.
  • the device may be integrated in a central processing unit (CPU), or may be deployed in a single step, which is not limited in this embodiment.
  • CPU central processing unit
  • the embodiment of the present invention further provides a central processing unit, which is shown in FIG. 7 and includes: an energy saving policy configuration device 71 and a hard disk energy saving control device 72, wherein
  • the energy saving policy configuration device 71 is configured to configure a hard disk energy saving policy level, and send the hard disk energy saving policy level to the hard disk energy saving control device 72;
  • the hard disk energy-saving control device 72 is configured to acquire a historical working state of each preset time period of the hard disk, and an operating state of the current time segment of the hard disk, where each preset time period is each preset in at least one statistical period.
  • the working state of the next time period of the current time period of the hard disk is predicted according to the historical working state of the hard disk; and the energy saving policy level is selected according to the working state of the next time period of the hard disk to perform energy saving control on the hard disk.
  • the hard disk energy saving control device 72 may include: an obtaining module 721, a predicting module 722, and an energy saving control module 723, and functions and functions of the respective modules are as shown above, and details are not described herein again. However, it is not limited thereto, and other modules mentioned above may also be included, and details are not described herein again.
  • the energy saving policy configuration device configures the hard disk energy saving policy level according to the actual situation of the user application, and sends the hard disk energy saving policy level to the energy saving control module;
  • the acquiring module first registers the hard disk operation callback interface with the user management software, and then collects the working state of each time period of the hard disk through the callback interface; after that, the obtaining module uses the callback function to obtain the working state of each time period of the hard disk as follows: a is sent to the prediction module as data for analysis, abstracts the working curve of the hard disk, etc.; b calls the energy-saving control module 423 to wake up/hibernate the hard disk; the prediction module analyzes the working state of the received hard disk at each time period, and obtains the hard disk of each time period.
  • the idle state or the busy state that is, the historical working state, predicts the working state of the next time period of the hard disk according to the historical working state of the hard disk, and the energy saving control module selects a corresponding energy saving strategy according to the working state of the hard disk next time period.
  • the level controls the hard disk for energy saving.
  • the current hard disk can be re-collected through the prediction module.
  • the operation data is accessed, and the current hard disk access operation is abstracted to obtain the current working state, and then the hard disk access operation of the next time period is predicted according to the current working state.
  • the specific process is detailed above, and will not be described here.
  • the hard disk by monitoring the user's access operation to the hard disk, combined with the actual history of the hard disk history access, the hard disk accesses the future working state of the hard disk to control the hard disk to enter the corresponding energy saving mode. That is, the embodiment of the present invention abstracts the historical working state of the hard disk according to the historical hard disk access operation data, and determines the working mode (ie, idle or standby mode) that the hard disk enters according to the historical working state, and then, the energy saving corresponding to the selected one.
  • the strategy controls the hard disk to save energy, realizes the real-time power consumption of the hard disk, dynamically matches the service access traffic, and reduces the useless power when no data is accessed, thereby improving the energy saving effect of the hard disk.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

一种硬盘节能控制方法、装置及中央处理器。所述方法包括:获取硬盘各个预设时间段的历史工作状态,其中,所述各个预设时间段为至少一个统计周期内的各个预设时间段;根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的工作状态;根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节能控制。本发明实施例解决了现有技术中硬盘能耗不能结合实际业务的访问流量,无法实现最优节能的技术问题,本发明实施例提高了硬盘的节能效果。

Description

一种硬盘节能控制方法、 装置及中央处理器 技术领域
本发明涉及计算机技术领域, 特别涉及一种硬盘节能控制方法、 装置及中央 处理器。 背景技术
随着日益增长的数据量和存储需求, 通常需要在接入存储系统中不断添置新 的硬盘; 但随着接入存储系统中硬盘数量的增加, 其用电量也在不断攀升, 能耗 也越来越高, 所以, 如何降低存储系统的能耗 (即计算机能耗), 是目前业界关 注的问题。
目前, 通过高级电源管理技术来降低存储系统的能耗问题, 所述高级电源管 理技术是一种基于基本输入输出系统 (BIOS , Basi c input/output System) 的 主机电源管理方案, 在该方案中, 可以降低接入主机的设备能耗, 即通过判断接 入主机的设备的工作情况, 并将该设备转换到低能耗的状态。 但是, 在现有的高 级电源管理技术中,接入主机的不同设备中,被动接受统一的电源节能管理方式, 比如, 统一接受挂起 (即显示屏自动断电); 或者统一接受挂起到内存 (即系统 把当前信息储存在内存中); 或者统一接受挂起到硬盘(即计算机自动关机, 关机 前将当前数据存储在硬盘上)等。
在对现有技术的研究和实践过程中, 本发明的发明人发现, 现有的实现方式 中, 接入主机的不同硬盘进入节能状态是由 BIOS 统一指示, 从而导致接入主机 的各个硬盘能耗不能很好匹配实际业务的访问流量, 导致整体节能效果不理想。 发明内容
本发明实施例提供一种硬盘节能控制方法、 装置及中央处理器, 以实现硬 盘实时功耗动态匹配业务访问流量, 提高硬盘节能效果。
为了解决上述技术问题, 本发明实施例公开了如下技术方案:
第一方面提供了一种硬盘节能控制方法, 所述方法包括:
获取硬盘各个预设时间段的历史工作状态, 其中, 所述各个预设时间段为至 少一个统计周期内的各个预设时间段;
根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态;
根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进 行节能控制。
在第一方面的第一种可能的实现方式中, 所述历史工作状态为一个统计周期 内各个预设时间段的历史工作状态;
所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态, 具体包括:
判断所述一个统计周期内的各个预设时间段中与当前时间段对应的时间段的下 一时间段硬盘是否处于空闲状态, 如果是, 则预测所述硬盘当前时间段的下一个时间 段的工作状态为空闲状态, 令硬盘进入空闲模式; 如果否, 则预测所述硬盘当前时间 段的下一个时间段的工作状态为忙碌状态, 令硬盘进入备用模式;
所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节 能控制具体为: 选择对应的节能策略等级,对进入空闲模式或备用模式的硬盘进行节 能控制。
结合第一方面或第一方面第一种可能的实现方式, 在第二种可能的实现方式中, 所述历史工作状态为多个统计周期内各个预设时间段的历史工作状态;
所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态, 具体包括:
统计各个统计周期内与当前时间段对应的时间段的下一时间段内硬盘的历史工 作状态, 得到统计结果;
根据所述统计如果,计算出所述硬盘在前时间段对应的时间段的下一时间段内处 于空闲状态和处于忙碌状态的概率;
如果所述硬盘在前时间段对应的时间段的下一时间段内处于空闲状态的概率大 于处于忙碌状态的概率,则预测所述硬盘当前时间段的下一个时间段的工作状态为空 闲状态, 令硬盘进入空闲模式; 否则, 则预测所述硬盘当前时间段的下一个时间段的 工作状态为忙碌状态, 令硬盘进入备用模式;
所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节 能控制具体为: 选择对应的节能策略等级,对进入空闲模式或备用模式的硬盘进行节 能控制。 结合第一方面或第一方面第一种或第二种可能的实现方式,在第三种可能的实现 方式中,所述方法还包括: 根据所述历史工作状态抽象所述硬盘在所述统计周期内的 历史工作曲线;
所述根据硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的工作 状态具体为:根据所述硬盘的历史工作曲线预测所述硬盘当前时间段的下一个时间段 的工作状态。
结合第一方面或第一方面第一种或第二种或第三种可能的实现方式,在第四种可 能的实现方式中, 根据所述历史工作状态抽象硬盘的历史工作曲线具体包括:
对每个预设时间段的所述历史工作状态进行分析,得到所述统计周期内每个预设 时间段硬盘的历史工作状态是空闲状态或忙碌状态;
根据所述统计周期内每个预设时间段硬盘的空闲或忙碌状态,绘制硬盘的历史工 作曲线。
结合第一方面或第一方面第一种或第二种可能的实现方式,在第五种可能的实现 方式中, 所述方法还包括:
当硬盘进入备用模式后, 从备用模式切换到正常状态时, 如果有突发数据访问硬 盘, 则通过高速缓冲存储器缓冲所述突发数据。
结合第一方面或第一方面第一种或第二种或第三种或第四种或第五种可能的实 现方式, 在第六种可能的实现方式中, 所述方法还包括:
在获取硬盘各个预设时间段的历史工作状态不充分,或所述硬盘没有历史工作状 态时, 在当前时间段内每间隔预定时间检测一次硬盘有无读写操作;
如果有读写操作, 则记录硬盘在当前时间段处于忙碌状态; 否则, 记录硬盘在当 前时间段处于空闲状态;
根据所述硬盘当前时间段的工作状态按照获得的节能策略等级对当前时间段的 下一时间段的硬盘进行节能控制。
第二方面提供了一种硬盘节能控制装置, 所述装置包括:
获取模块, 用于获取硬盘各个预设时间段的历史工作状态, 其中, 所述各个 预设时间段为至少一个统计周期内的各个预设时间段;
预测模块, 用于根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下 一个时间段的工作状态;
节能控制模块, 用于根据所述硬盘下一个时间段的工作状态选择对应的节能 策略等级对所述硬盘进行节能控制。 在第二方面的第一种可能的实现方式中,在所述历史工作状态为一个统计周期 内各个预设时间段的历史工作状态时; 所述预测模块包括:
第一判断模块,用于判断所述一个统计周期内的各个预设时间段中与当前时间段 对应的时间段的下一时间段硬盘是否处于空闲状态;
第一确定模块,用于在所述第一判断模块的判断所述硬盘当前时间段的下一个时 间段的工作状态为空闲状态时,预测所述硬盘当前时间段的下一个时间段的工作状态 为空闲状态, 令硬盘进入空闲模式; 否则, 预测所述硬盘当前时间段的下一个时间段 的工作状态为忙碌状态, 确定硬盘进入备用模式;
所述节能控制模块, 具体用于选择对应的节能策略等级, 对所述第一确定模块确 定硬盘进入空闲模式或备用模式进行节能控制。
结合第二方面或第二方面第一种可能的实现方式, 在第二种可能的实现方式中, 在所述历史工作状态为多个统计周期内各个预设时间段的历史工作状态时,所述预测 模块包括:
统计模块,用于统计各个统计周期内与当前时间段对应的时间段的下一时间段内 硬盘的历史工作状态, 得到统计结果;
计算模块, 用于根据所述统计如果, 计算出所述硬盘在前时间段对应的时间段的 下一时间段内处于空闲状态和处于忙碌状态的概率;
第二判断模块,用于判断所述硬盘在前时间段对应的时间段的下一时间段内处于 空闲状态的概率是否大于处于忙碌状态的概率;
第二确定模块,用于在所述第二判断模块判断硬盘在前时间段对应的时间段的下 一时间段内处于空闲状态的概率大于处于忙碌状态的概率时,预测所述硬盘当前时间 段的下一个时间段的工作状态为空闲状态时, 令硬盘进入空闲模式; 否则, 则预测所 述硬盘当前时间段的下一个时间段的工作状态为忙碌状态, 令硬盘进入备用模式; 所述节能控制模块, 具体用于选择对应的节能策略等级, 对所述第二确定模块确 定硬盘进入空闲模式或备用模式进行节能控制。
结合第二方面或第二方面第一种或第二种可能的实现方式,在第三种可能的实现 方式中, 还包括:
抽象模块,用于根据获取模块获取的所述历史工作状态抽象所述硬盘在所述统计 周期内的历史工作曲线;
所述预测模块,具体用于根据所述硬盘的历史工作曲线预测所述硬盘当前时间段 的下一个时间段的工作状态。 结合第二方面或第二方面第一种或第二种或第三种可能的实现方式,在第四种可 能的实现方式中, 所述抽象模块包括:
分析模块,用于对获取模块获取统计周期内每个预设时间段的所述历史工作状态 进行分析,得到所述统计周期内每个预设时间段硬盘的历史工作状态是空闲状态或忙 碌状态;
绘制模块,用于根据所述分析模块得到的统计周期内每个预设时间段硬盘的空闲 或忙碌状态, 绘制硬盘的历史工作曲线。
结合第二方面第一种或第二种可能的实现方式, 在第五种可能的实现方式中, 还 包括:
高速缓冲存储模块,用于在所述第一确定模块或第二确定模块确定硬盘进入备用 模式, 且从备用模式切换到正常状态的时, 如果有突发数据访问硬盘, 则缓存所述突 发数据。
结合第二方面或第二方面第一种或第二种或第三种或第四种或者第五种可能的 实现方式, 在第六种可能的实现方式中, 还包括:
检测模块, 用于在所述获取模块获取硬盘各个预设时间段的历史工作状态不充 分, 或所述硬盘没有历史工作状态时,在当前时间段内每间隔预定时间检测一次硬盘 有无读写操作;
记录模块, 用于在所述检测模块检测到硬盘有读写操作时, 记录硬盘在当前时间 段处于忙碌状态; 以及在所述检测模块检测单硬盘没有读写操作时, 记录硬盘在当前 时间段处于空闲状态;
所述节能控制模块,还用于根据所述硬盘当前时间段处于忙碌状态或空闲状态选 择对应的节能策略等级对所述硬盘当前时间段的下一时间段进行节能控制。
第三方面提供了一种中央处理器, 包括: 节能策略配置装置和硬盘节能控制 装置, 其中,
所述节能策略配置装置, 用于配置硬盘节能策略等级, 并将硬盘节能策略等 级发送给硬盘节能控制装置;
所述硬盘节能控制装置, 用于获取硬盘各个预设时间段的历史工作状态, 以 及硬盘当前时间段的工作状态, 其中, 所述各个预设时间段为至少一个统计周期 内的各个预设时间段; 根据所述硬盘的历史工作状态预测所述硬盘当前时间段的 下一个时间段的工作状态; 根据所述硬盘下一个时间段的工作状态选择对应的节 能策略等级对硬盘进行节能控制。 在第三方面的第一种可能的实现方式中,所述硬盘节能控制装置上述的硬盘节 能控制装置。
由上述技术方案可知, 本发明实施例中, 通过监测用户对硬盘的访问操作, 结合业务对硬盘历史访问实际情况, 动态预测硬盘访问未来的工作状态, 控制硬 盘进入对应的节能模式。 即, 本发明实施例根据历史硬盘访问操作数据, 确定硬 盘进入的工作模式 (即空闲或备用模式), 然后, 选者对应的节能策略对应该硬 盘进行节能控制, 实现了硬盘实时功耗动态匹配业务访问流量, 减少无数据访问 时无用功, 从而提高了硬盘的节能效果。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前 提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种硬盘节能控制方法的流程图;
图 2为本发明实施例提供的抽象硬盘各个时间段的历史工作曲线图;
图 3为本发明实施例提供一种硬盘节能控制装置的结构示意图;
图 4为本发明实施例提供一种硬盘节能控制装置的第二结构示意图;
图 5为本发明实施例提供一种硬盘节能控制装置的第三结构示意图;
图 6为本发明实施例提供一种硬盘节能控制装置的第四结构示意图;
图 7为本发明实施例提供一种中央处理器的结构示意图。 具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完 整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。
请参阅图 1, 为本发明实施例提供的一种硬盘节能控制方法的流程图; 所述方法 包括:
步骤 101 : 获取硬盘各个预设时间段的历史工作状态, 其中, 所述各个预设时间 段为至少一个统计周期内的各个预设时间段; 在该步骤中,可以通过向用户管理软件注册硬盘操作的回调接口搜集硬盘当前时 间段之前各时间段的工作状态 (本文称为历史工作状态), 即访问硬盘的操作数据, 所述工作状态包括空闲状态和忙碌状态等。当然, 也可以搜集硬盘当前时间段的工作 状态, 即当前硬盘是处于忙碌状态, 还是处于空闲状态。
本实施例中,搜集至少一个统计周期内硬盘各个预设时间段的历史工作状态的方 式有多种, 下面一种搜集方式来说明, 但并不限于此, 具体为:
假设收集一周硬盘访问操作, 可以将一周 7 X 24小时分成 N个时间段, 收集一 周内 N个时间段内每个时间段用户对硬盘的访问操作情况作为历史数据, 并绘制成 历史工作曲线,然后,根据历史工作曲线预测当前下个时间段内用户是否有硬盘访问 操作。
预设的统计周期: 一周
把一周的统计分为 7个样本集合
周一的统计
周二的统计
周三的统计
周四的统计
周五的统计
周六的统计
周日的统计
一天共 24小时, 每 5分钟 (本实施例以 5分钟为例, 还可以根据实际状况任意 确定) 统计一次, 主要统计该时间段硬盘的空闲状态 , 则周一至周日的统计量为:
Figure imgf000009_0001
Χ,=、Ρ,Λ , Ρ, , + .… ,Ρ7, }
其中 Pij为周 i的第 j个时间段硬盘的空闲状态, 其余时间硬盘为忙碌状态。 其抽象硬盘各个时间段的历史工作曲线, 如图 2所示, 在图中, 横坐标为划分的 N个时间段, 纵坐标为硬盘访问率。
步骤 102: 根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间 段的工作状态;
其中,先对每个预设时间段的所述历史工作状态进行分析,得到每个时间段硬盘 的历史工作状态是空闲状态或忙碌状态; 当然, 在该实施例中, 还可以根据所述每个 预设时间段硬盘的空闲状态或忙碌状态, 绘制硬盘的历史工作曲线,但并不限于此是 历史工作曲线, 比如, 也可以将硬盘每个时间段的是空闲状态还是忙碌状态记录到预 设的硬盘状态记录表中, 以便于后续使用, 本实施例不作限制。
也就是说, 在该实施例中, 可以根据历史统计各个时间段硬盘的工作状态, 也可 以会是绘制的历史工作曲线来确定该段时间硬盘的工作模式; 具体为:
判断所述历史工作曲线上与当前时间段对应的时间段的下一时间段硬盘是否处 于空闲状态, 如果是, 则预测所述硬盘当前时间段的下一个时间段的工作状态为空闲 状态, 令硬盘进入空闲 (idle) 模式; 否则, 预测所述硬盘当前时间段的下一个时间 段的工作状态为忙碌状态, 令硬盘进入备用 (Standby) 模式。
也就是说, 无论硬盘当前时间段的工作状态是处于空闲状态, 还是忙碌状态, 只 要判断出所述历史工作曲线上与当前时间段对应的时间段的下一时间段硬盘是处于 空闲状态,则预测所述硬盘下一个时间段处于空闲状态,令硬盘进入空闲模式,否则, 预测所述硬盘下一个时间段处于忙碌状态, 令硬盘进入备用模式。
步骤 103 : 根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级对硬 盘进行节能控制。
具体为,选择对应的节能策略等级,对进入空闲模式或备用模式的硬盘进行节能 控制。
也就是说,在硬盘进入空闲模式或备用模式后, 按照选择的节能策略等级对进入 空闲模式或备用模式的硬盘进行节能控制。
其中, 本发明实施例中, 可以预先获得选择的节能策略等级, 也可以在需要进行 节能控制时获得该节能策略等级,本实施例不作限制。所述节能策略等级是按照硬盘 的工作状态,能耗状态以及使用的工作模式和恢复正常模式时间对硬盘所采取的节能 措施, 比如, 如果硬盘进入空闲模式, 则可以选择节能策略等级为 0级; 另外, 在该 节能模式下可进行碎片整理或是重复文件管理操作。其各种模式采用的节能策略等级 具体如表 1所示:
表 1 工作状 能耗状 模式说 恢复时间 节能措施 态 态 明 DO P0 正 常 0 硬盘正常工作, 无节能措施 Normal
Dl PI 空 闲 0 节能策略等级为 0级; idle 硬盘空闲, 可进入此节能模式; 在此模式下可进行碎片整理或是重复 文件管理操作
D2 P2 备 用 小于 1ms 节能策略等级为 1, 2, 3级; standb 硬盘在空闲状态可进入此节能模式; y 在此模式下可进行碎片整理或是重复 文件管理操作
D3 P3 睡 眠 2. 5S 恢复时间过长, 数据访问存在风险, 暂 sleep 时不用此状态
本发明实施例中,通过监测用户对硬盘的访问操作, 结合业务对硬盘历史访问实 际情况, 动态预测硬盘访问未来的工作状态, 控制硬盘进入对应的节能模式。 也就是 说,本发明实施例根据历史硬盘访问操作数据抽象所述硬盘的历史工作状态, 并按照 历史工作状态, 确定硬盘进入的工作模式 (即空闲或备用模式), 然后, 选者对应的 节能策略对应该硬盘进行节能控制, 实现了硬盘实时功耗动态匹配业务访问流量,减 少无数据访问时无用功, 从而提高了硬盘的节能效果。
可选的,在上述实施例中, 如果所述历史工作状态为一个统计周期内各个预设时 间段的历史工作状态;所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的 下一个时间段的工作状态, 具体包括: 判断所述一个统计周期内的各个预设时间段中 与当前时间段对应的时间段的下一时间段硬盘是否处于空闲状态, 如果是, 则预测所 述硬盘当前时间段的下一个时间段的工作状态为空闲状态,令硬盘进入空闲模式; 如 果否, 则预测所述硬盘当前时间段的下一个时间段的工作状态为忙碌状态,令硬盘进 入备用模式;
所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节 能控制具体为: 选择对应的节能策略等级,对进入空闲模式或备用模式的硬盘进行节 能控制。
可选的,如果所述历史工作状态为多个统计周期内各个预设时间段的历史工作状 态;
所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态, 具体包括: 统计各个统计周期内与当前时间段对应的时间段的下一时间段 内硬盘的历史工作状态, 得到统计结果; 根据所述统计如果, 计算出所述硬盘在前时 间段对应的时间段的下一时间段内处于空闲状态和处于忙碌状态的概率;如果所述硬 盘在前时间段对应的时间段的下一时间段内处于空闲状态的概率大于处于忙碌状态 的概率, 则预测所述硬盘当前时间段的下一个时间段的工作状态为空闲状态,令硬盘 进入空闲模式; 否则, 则预测所述硬盘当前时间段的下一个时间段的工作状态为忙碌 状态, 令硬盘进入备用模式;
所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节 能控制具体为: 选择对应的节能策略等级,对进入空闲模式或备用模式的硬盘进行节 能控制。
也就是说,在本发明实施例中的历史工作状态可以是一个统计周期内各个预设时 间段的历史工作状态, 也可以是多个统计周期内各个预设时间段的历史工作状态,本 发明不作限制。
可选的, 在上述实施例中, 所述方法还可以包括: 根据所述历史工作状态抽象所 述硬盘在所述统计周期内的历史工作曲线;
所述根据硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的工作 状态具体为:根据所述硬盘的历史工作曲线预测所述硬盘当前时间段的下一个时间段 的工作状态。
其中,根据所述历史工作状态抽象硬盘的历史工作曲线具体包括: 对每个预设时 间段的所述历史工作状态进行分析,得到所述统计周期内每个预设时间段硬盘的历史 工作状态是空闲状态或忙碌状态;根据所述统计周期内每个预设时间段硬盘的空闲或 忙碌状态, 绘制硬盘的历史工作曲线。
可选的, 当硬盘进入备用模式,且有突发流量时, 所述方法还可以包括: 当硬盘 进入备用模式时, 并且从备用模式切换到正常状态的时, 如果有突发数据访问硬盘, 则通过高速缓冲存储器缓冲所述突发数据。
也就是说, 当硬盘进入备用模式, 并从备用模式切换回正常 (Normal)模式需要 lms, 这段时间如果有突发数据访问, 可能会面临数据丢失, 通过操作系统 (OS, Operating System) 或者高速缓冲存储器 (Cache) 来缓冲突发数据, 保证数据传输可 靠性。
可选的, 在上述实施例中, 所述方法还可以包括: 在获取硬盘各个预设时间段的 历史工作状态不充分, 或所述硬盘没有历史工作状态时, 比如第一次使用时, 在当前 时间段内每间隔预定时间检测一次硬盘有无读写操作; 如果有读写操作, 则记录硬盘 在当前时间段处于忙碌状态; 否则, 记录硬盘在当前时间段处于空闲状态; 根据所述 硬盘当前时间段的工作状态按照获得的节能策略等级对当前时间段的下一时间段的 硬盘进行节能控制。
当然, 在另一实施例中, 也可以在上述实施例的基础上, 所述方法还可以包括: 在获取硬盘各个预设时间段的历史工作状态不充分, 或所述硬盘没有历史工作状态 时, 在当前时间段内每间隔预定时间检测一次硬盘有无读写操作; 如果有读写操作, 则记录硬盘在当前时间段处于忙碌状态;否则,记录硬盘在当前时间段处于空闲状态; 根据所述硬盘当前时间段的工作状态按照获得的节能策略等级对当前时间段的 下一时间段的硬盘进行节能控制。
也就是说, 在该可选的实施例的中, 如果访问硬盘的历史操作数据不充分, 或者 没有访问硬盘的历史操作数据作参考,本实施例还可以通过统计当前时间段访问硬盘 的操作数据, 来预测当前时间段的下一时间段访问硬盘的操作, 具体为:
如果是之前访问硬盘的历史操作数据不充分,则 Pij初始化为 0; 如果之前没有 访问硬盘的操作, 直接执行下述步骤:
首先, 统计当前时间段访问硬盘的操作数据 Pij, 比如, 在第 i周的第 j个时间 段内每 10毫秒 (本实施以此为例, 可根据实际需要修改) 检测一次硬盘有无读写操 作, 如果有, 则记录硬盘在当前时间段处于忙碌状态,用 Pij=l表示,否则, 记录硬盘 在当前时间段处于空闲状态, 用 Pij=0表示;
然后,根据当前时间段处于忙碌状态或空闲状态预测所述硬盘的当前时间段工作 曲线, 其工作曲线用 Pij表示;
再后,根据当前时间段访问硬盘的工作曲线 Pij+1来确定该段时间硬盘的工作模 式:
如果当前硬盘处于空闲状态,且判断所述当前工作曲线上与当前时间段对应的时 间段的下一时间段硬盘状态 (即 Pij+1 ) 是否处于空闲状态; 如果处于空闲状态, 即 Pij+1=0, 则令硬盘进入空闲模式, 否则, 即 Pij+l=l, 则令硬盘进入备用模式; 如果当前硬盘处于忙碌状态,且判断所述当前工作曲线上与当前时间段对应的时 间段的下一时间段硬盘状态 Pij+1 是否处于空闲状态; 如果处于空闲状态, 即 Pij+1=0, 则令硬盘进入空闲模式, 否则, 即 Pij+l=l, 令硬盘进入备用模式;
最后, 按照选择的节能策略等级,对进入空闲模式或备用模式的硬盘进行节能控 制。
基于上述方法的实现过程,本发明实施例还提供一种硬盘节能控制装置,其结构 示意图详见图 3, 所述装置包括: 获取模块 31, 预测模块 32和节能控制模块 33, 其 中, 所述获取模块 31, 用于获取硬盘各个预设时间段的历史工作状态, 其中, 所述 各个预设时间段为至少一个统计周期内的各个预设时间段;本实例以搜集硬盘访问操 作数据为例, 其具体的搜集过程详见上述, 在此不再赘述; 预测模块 32, 用于根据 所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的工作状态;节能 控制模块 33, 用于根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级 对所述硬盘进行节能控制。 也就是说, 在硬盘进入哪中工作模式, 选用该模式中对应 的节能策略等级进行节能控制, 从而提高了硬盘节能效率。
可选的,在所述历史工作状态为一个统计周期内各个预设时间段的历史工作状态 时; 所述预测模块 32包括: 第一判断模块 321和第一确定模块 322, 其对应的结构 示意图如图 4所示,图 4为本发明实施例提供一种硬盘节能控制装置第二结构示意图。
其中, 所述第一判断模块 321, 用于判断所述一个统计周期内的各个预设时间段 中与当前时间段对应的时间段的下一时间段硬盘是否处于空闲状态;所述第一确定模 块 322, 用于在所述第一判断模块 321的判断所述硬盘当前时间段的下一个时间段的 工作状态为空闲状态时,预测所述硬盘当前时间段的下一个时间段的工作状态为空闲 状态, 令硬盘进入空闲模式; 否则, 预测所述硬盘当前时间段的下一个时间段的工作 状态为忙碌状态, 确定硬盘进入备用模式; 所述节能控制模块 33, 具体用于选择对 应的节能策略等级,对所述第一确定模块确定硬盘进入空闲模式或备用模式进行节能 控制。
可选的,在所述历史工作状态为多个统计周期内各个预设时间段的历史工作状态 时, 所述预测模块 32包括: 统计模块 323, 计算模块 324, 第二判断模块 325和第二 确定模块 326, 其对应的结构示意图如图 5所示, 图 5为本发明实施例提供一种硬盘 节能控制装置第三结构示意图。 其中, 所述统计模块 323, 用于统计各个统计周期内与当前时间段对应的时间段 的下一时间段内硬盘的历史工作状态, 得到统计结果; 所述计算模块 324, 用于根据 所述统计如果,计算出所述硬盘在前时间段对应的时间段的下一时间段内处于空闲状 态和处于忙碌状态的概率; 所述第二判断模块 325, 用于判断所述硬盘在前时间段对 应的时间段的下一时间段内处于空闲状态的概率是否大于处于忙碌状态的概率;所述 第二确定模块 326, 用于在所述第二判断模块判断硬盘在前时间段对应的时间段的下 一时间段内处于空闲状态的概率大于处于忙碌状态的概率时,预测所述硬盘当前时间 段的下一个时间段的工作状态为空闲状态时, 令硬盘进入空闲模式; 否则, 则预测所 述硬盘当前时间段的下一个时间段的工作状态为忙碌状态,令硬盘进入备用模式; 所 述节能控制模块 33, 具体用于选择对应的节能策略等级, 对所述第二确定模块确定 硬盘进入空闲模式或备用模式进行节能控制。
可选的, 在上述实施例中, 所述装置还可以包括: 抽象模块 61, 用于根据获取 模块 31获取的所述历史工作状态抽象所述硬盘在所述统计周期内的历史工作曲线; 也即是说, 在历史工作状态中, 哪个时间硬盘处于空闲状态, 哪个时间段处于忙碌状 态, 记录并绘制成工作曲线; 所述预测模块, 具体用于根据所述硬盘的历史工作曲线 预测所述硬盘当前时间段的下一个时间段的工作状态。
其中, 所述抽象模块 61包括: 分析模块 611和绘制模块 612, 其中, 所述分析 模块 611, 用于对获取模块 31获取统计周期内每个预设时间段的所述历史工作状态 进行分析,得到所述统计周期内每个预设时间段硬盘的历史工作状态是空闲状态或忙 碌状态; 所述绘制模块 612, 用于根据所述分析模块分析得到的统计周期内每个预设 时间段硬盘的空闲或忙碌状态, 绘制硬盘的历史工作曲线。其对应的结构示意图如图 6所示, 图 6为本发明实施例提供一种硬盘节能控制装置第四结构示意图。
可选的, 所述装置还可以包括: 高速缓冲存储模块, 用于在所述第一确定模块或 第二确定模块确定硬盘进入备用模式, 且从备用模式切换到正常状态的时, 如果有突 发数据访问硬盘, 则缓存所述突发数据。
可选的, 上述实施例中, 所述装置还可以包括: 检测模块和记录模块, 其中, 所述检测模块,用于在所述获取模块获取硬盘各个预设时间段的历史工作状态不 充分, 或所述硬盘没有历史工作状态时,在当前时间段内每间隔预定时间检测一次硬 盘有无读写操作;
所述记录模块,用于在所述检测模块检测到硬盘有读写操作时, 记录硬盘在当前 时间段处于忙碌状态; 以及在所述检测模块检测单硬盘没有读写操作时, 记录硬盘在 当前时间段处于空闲状态;
所述节能控制模块,还用于根据所述硬盘当前时间段的处于忙碌状态或空闲状态 选择对应的节能策略等级对当前时间段的下一时间段进行节能控制。
在该实施例中,所述抽象模块与预测模块可以集成在一起, 也可以独步部署在网 络中, 本实施例不作限制。
可选的, 所述装置可以集成在中央处理器 (CPU, Central Processing Unit)中, 也可 以独步部署, 本实施例不作限制。
所述装置中各个模块的功能和作用的实现过程详见上述方法中对应的实现过程, 在此不再赘述。
相应的, 本发明实施例还提供一种中央处理器, 其结构示意图详见图 7, 包括: 节能策略配置装置 71和硬盘节能控制装置 72, 其中,
所述节能策略配置装置 71, 用于配置硬盘节能策略等级, 并将硬盘节能策略等 级发送给硬盘节能控制装置 72;
所述硬盘节能控制装置 72, 用于获取硬盘各个预设时间段的历史工作状态, 以 及硬盘当前时间段的工作状态,其中,所述各个预设时间段为至少一个统计周期内的 各个预设时间段;根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时 间段的工作状态;根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级对 硬盘进行节能控制。
进一步, 所述硬盘节能控制装置 72可以包括: 获取模块 721、 预测模块 722和 节能控制模块 723, 其各个模块的功能和作用如上所示, 在此不再赘述。 但并不限于 此, 还可以包括上述其他模块, 在此不再赘述。
也就是说, 在该实施例中, 节能策略配置装置根据用户应用实际情况, 配置硬盘 节能策略等级, 并将所述硬盘节能策略等级发送给节能控制模块;
所述获取模块先向用户管理软件注册硬盘操作回调接口,然后通过回调接口搜集 硬盘各时间段的工作状态; 之后, 获取模块通过回调函数将获取硬盘各时间段的工作 状态做如下两个处理: a发送到预测模块作为数据进行分析,抽象硬盘的工作曲线等; b调用节能控制模块 423唤醒 /休眠硬盘;预测模块对接收到的硬盘各时间段的工作状 态进行分析, 得到各个时间段硬盘的空闲状态或忙碌状态, 即历史工作状态, 根据所 述硬盘的历史工作状态预测所述硬盘下一个时间段的工作状态,节能控制模块根据所 述硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进行节能控制。
可选的, 当抽象的工作曲线出现不准确时,可以通过预测模块重新搜集当前硬盘 访问操作数据, 并根据当前硬盘访问操作进行抽象, 得到当前工作状态, 然后根据当 前工作状态,预测下一时间段的硬盘访问操作。其具体过程详见上述,在此不再赘述。
本发明实施例中,通过监测用户对硬盘的访问操作, 结合业务对硬盘历史访问实 际情况, 动态预测硬盘访问未来的工作状态, 控制硬盘进入对应的节能模式。 也就是 说,本发明实施例根据历史硬盘访问操作数据抽象所述硬盘的历史工作状态, 并按照 历史工作状态, 确定硬盘进入的工作模式 (即空闲或备用模式), 然后, 选者对应的 节能策略对应该硬盘进行节能控制, 实现了硬盘实时功耗动态匹配业务访问流量,减 少无数据访问时无用功, 从而提高了硬盘的节能效果。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实 体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之 间存在任何这种实际的关系或者顺序。 而且, 术语 "包括" 、 "包含"或者其任何其 他变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、物品或者 设备不仅包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种 过程、 方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由语句 "包括 一个…… " 限定的要素, 并不排除在包括所述要素的过程、 方法、物品或者设备中还 存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助 软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件,但很多情况下前者 是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做 出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备(可以 是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例或者实施例的某些 部分所述的方法。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人 员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润 饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种硬盘节能控制方法, 其特征在于, 包括:
获取硬盘各个预设时间段的历史工作状态, 其中, 所述各个预设时间段为至 少一个统计周期内的各个预设时间段;
根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态;
根据所述硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进 行节能控制。
2、 根据权利要求 1所述的方法, 其特征在于, 所述历史工作状态为一个统 计周期内各个预设时间段的历史工作状态;
所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间 段的工作状态, 具体包括:
判断所述一个统计周期内的各个预设时间段中与当前时间段对应的时间段 的下一时间段硬盘是否处于空闲状态, 如果是, 则预测所述硬盘当前时间段的下 一个时间段的工作状态为空闲状态, 令硬盘进入空闲模式; 如果否, 则预测所述 硬盘当前时间段的下一个时间段的工作状态为忙碌状态, 令硬盘进入备用模式; 所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进 行节能控制具体为: 选择对应的节能策略等级, 对进入空闲模式或备用模式的硬 盘进行节能控制。
3、 根据权利要求 1所述的方法, 其特征在于, 所述历史工作状态为多个统 计周期内各个预设时间段的历史工作状态;
所述根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间 段的工作状态, 具体包括:
统计各个统计周期内与当前时间段对应的时间段的下一时间段内硬盘的历 史工作状态, 得到统计结果;
根据所述统计如果,计算出所述硬盘在前时间段对应的时间段的下一时间段 内处于空闲状态和处于忙碌状态的概率;
如果所述硬盘在前时间段对应的时间段的下一时间段内处于空闲状态的概 率大于处于忙碌状态的概率,则预测所述硬盘当前时间段的下一个时间段的工作 状态为空闲状态, 令硬盘进入空闲模式; 否则, 则预测所述硬盘当前时间段的下 一个时间段的工作状态为忙碌状态, 令硬盘进入备用模式;
所述根据硬盘下一个时间段的工作状态选择对应的节能策略等级对硬盘进 行节能控制具体为: 选择对应的节能策略等级, 对进入空闲模式或备用模式的硬 盘进行节能控制。
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 还包括: 根据所 述历史工作状态抽象所述硬盘在所述统计周期内的历史工作曲线;
所述根据硬盘的历史工作状态预测所述硬盘当前时间段的下一个时间段的 工作状态具体为:根据所述硬盘的历史工作曲线预测所述硬盘当前时间段的下一 个时间段的工作状态。
5、 根据权利要求 4所述的方法, 其特征在于, 根据所述历史工作状态抽象 硬盘的历史工作曲线具体包括:
对每个预设时间段的所述历史工作状态进行分析,得到所述统计周期内每个 预设时间段硬盘的历史工作状态是空闲状态或忙碌状态;
根据所述统计周期内每个预设时间段硬盘的空闲或忙碌状态,绘制硬盘的历 史工作曲线。
6、 根据权利要求 2或 3所述的方法, 其特征在于, 所述方法还包括: 当硬盘进入备用模式后, 从备用模式切换到正常状态时, 如果有突发数据访 问硬盘, 则通过高速缓冲存储器缓冲所述突发数据。
7、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 所述方法还包括: 在获取硬盘各个预设时间段的历史工作状态不充分,或所述硬盘没有历史工 作状态时, 在当前时间段内每间隔预定时间检测一次硬盘有无读写操作;
如果有读写操作, 则记录硬盘在当前时间段处于忙碌状态; 否则, 记录硬盘 在当前时间段处于空闲状态;
根据所述硬盘当前时间段的工作状态按照获得的节能策略等级对当前时间 段的下一时间段的硬盘进行节能控制。
8、 一种硬盘节能控制装置, 其特征在于, 包括:
获取模块, 用于获取硬盘各个预设时间段的历史工作状态, 其中, 所述各个 预设时间段为至少一个统计周期内的各个预设时间段;
预测模块,用于根据所述硬盘的历史工作状态预测所述硬盘当前时间段的下 一个时间段的工作状态;
节能控制模块,用于根据所述硬盘下一个时间段的工作状态选择对应的节能 策略等级对所述硬盘进行节能控制。
9、 根据权利要求 8所述的装置, 其特征在于, 在所述历史工作状态为一个 统计周期内各个预设时间段的历史工作状态时; 所述预测模块包括:
第一判断模块,用于判断所述一个统计周期内的各个预设时间段中与当前时 间段对应的时间段的下一时间段硬盘是否处于空闲状态;
第一确定模块,用于在所述第一判断模块的判断所述硬盘当前时间段的下一 个时间段的工作状态为空闲状态时,预测所述硬盘当前时间段的下一个时间段的 工作状态为空闲状态, 令硬盘进入空闲模式; 否则, 预测所述硬盘当前时间段的 下一个时间段的工作状态为忙碌状态, 确定硬盘进入备用模式;
所述节能控制模块, 具体用于选择对应的节能策略等级, 对所述第一确定模 块确定硬盘进入空闲模式或备用模式进行节能控制。
10、 根据权利要求 8所述的装置, 其特征在于, 在所述历史工作状态为多个 统计周期内各个预设时间段的历史工作状态时, 所述预测模块包括:
统计模块,用于统计各个统计周期内与当前时间段对应的时间段的下一时间 段内硬盘的历史工作状态, 得到统计结果;
计算模块, 用于根据所述统计如果, 计算出所述硬盘在前时间段对应的时间 段的下一时间段内处于空闲状态和处于忙碌状态的概率;
第二判断模块,用于判断所述硬盘在前时间段对应的时间段的下一时间段内 处于空闲状态的概率是否大于处于忙碌状态的概率;
第二确定模块,用于在所述第二判断模块判断硬盘在前时间段对应的时间段 的下一时间段内处于空闲状态的概率大于处于忙碌状态的概率时,预测所述硬盘 当前时间段的下一个时间段的工作状态为空闲状态时, 令硬盘进入空闲模式; 否 贝 U, 则预测所述硬盘当前时间段的下一个时间段的工作状态为忙碌状态, 令硬盘 进入备用模式;
所述节能控制模块, 具体用于选择对应的节能策略等级, 对所述第二确定模 块确定硬盘进入空闲模式或备用模式进行节能控制。
11、 根据权利要求 8至 10任一项所述的装置, 其特征在于, 还包括: 抽象模块,用于根据获取模块获取的所述历史工作状态抽象所述硬盘在所述 统计周期内的历史工作曲线;
所述预测模块,具体用于根据所述硬盘的历史工作曲线预测所述硬盘当前时 间段的下一个时间段的工作状态。
12、 根据权利要求 11所述的装置, 其特征在于, 所述抽象模块包括: 分析模块,用于对获取模块获取统计周期内每个预设时间段的所述历史工作 状态进行分析,得到所述统计周期内每个预设时间段硬盘的历史工作状态是空闲 状态或忙碌状态;
绘制模块,用于根据所述分析模块得到的统计周期内每个预设时间段硬盘的 空闲或忙碌状态, 绘制硬盘的历史工作曲线。
13、 根据权利要求 9或 10所述的装置, 其特征在于, 还包括:
高速缓冲存储模块,用于在所述第一确定模块或第二确定模块确定硬盘进入 备用模式, 且从备用模式切换到正常状态的时, 如果有突发数据访问硬盘, 则缓 存所述突发数据。
14、 根据权利要求 8至 13任一项所述的装置, 其特征在于, 还包括: 检测模块,用于在所述获取模块获取硬盘各个预设时间段的历史工作状态不 充分, 或所述硬盘没有历史工作状态时, 在当前时间段内每间隔预定时间检测一 次硬盘有无读写操作;
记录模块, 用于在所述检测模块检测到硬盘有读写操作时, 记录硬盘在当前 时间段处于忙碌状态; 以及在所述检测模块检测单硬盘没有读写操作时, 记录硬 盘在当前时间段处于空闲状态;
所述节能控制模块,还用于根据所述硬盘当前时间段处于忙碌状态或空闲状 态选择对应的节能策略等级对所述硬盘当前时间段的下一时间段进行节能控制。
15、 一种中央处理器, 其特征在于, 包括: 节能策略配置装置和硬盘节能控 制装置, 其中,
所述节能策略配置装置, 用于配置硬盘节能策略等级, 并将硬盘节能策略等 级发送给硬盘节能控制装置;
所述硬盘节能控制装置, 用于获取硬盘各个预设时间段的历史工作状态, 以 及硬盘当前时间段的工作状态, 其中, 所述各个预设时间段为至少一个统计周期 内的各个预设时间段;根据所述硬盘的历史工作状态预测所述硬盘当前时间段的 下一个时间段的工作状态;根据所述硬盘下一个时间段的工作状态选择对应的节 能策略等级对硬盘进行节能控制。
16、 根据权利要求 15所述的中央处理器, 其特征在于, 所述硬盘节能控制 装置为权利要求 8至 14任一项所述的硬盘节能控制装置。
+
PCT/CN2012/082703 2012-05-18 2012-10-10 一种硬盘节能控制方法、装置及中央处理器 WO2013170575A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/090,731 US9740272B2 (en) 2012-05-18 2013-11-26 Hard drive energy-saving control method and apparatus, and central processing unit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210156318.XA CN102736725B (zh) 2012-05-18 2012-05-18 一种硬盘节能控制方法、装置及中央处理器
CN201210156318.X 2012-05-18

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/090,731 Continuation US9740272B2 (en) 2012-05-18 2013-11-26 Hard drive energy-saving control method and apparatus, and central processing unit

Publications (1)

Publication Number Publication Date
WO2013170575A1 true WO2013170575A1 (zh) 2013-11-21

Family

ID=46992360

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082703 WO2013170575A1 (zh) 2012-05-18 2012-10-10 一种硬盘节能控制方法、装置及中央处理器

Country Status (3)

Country Link
US (1) US9740272B2 (zh)
CN (1) CN102736725B (zh)
WO (1) WO2013170575A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238716B (zh) * 2013-06-13 2017-09-29 宏碁股份有限公司 电源管理方法
KR102218712B1 (ko) 2014-02-11 2021-02-22 삼성전자주식회사 저장 장치의 어드레스 맵핑 방법 및 저장 장치의 데이터 독출 방법
CN105824570B (zh) * 2015-01-04 2018-11-23 致伸科技股份有限公司 可降低耗电的硬盘装置以及降低硬盘装置耗电的方法
CN105676998A (zh) * 2016-01-11 2016-06-15 上海传英信息技术有限公司 一种应用于智能终端设备的分级省电方法
CN105700991A (zh) * 2016-01-19 2016-06-22 浪潮电子信息产业股份有限公司 一种使硬盘快速进入idle状态的方法
CN107357521A (zh) * 2016-05-10 2017-11-17 中兴通讯股份有限公司 磁盘阵列的节能控制方法、装置及监控装置
CN107479830A (zh) * 2017-08-09 2017-12-15 郑州云海信息技术有限公司 一种硬盘节能控制方法和装置
CN108170254B (zh) * 2017-12-30 2019-12-06 广东技术师范大学 一种基于零星请求的策略调度方法
JP2019164857A (ja) 2018-03-19 2019-09-26 株式会社東芝 ディスク装置
CN110363319B (zh) * 2018-03-26 2023-09-29 阿里巴巴集团控股有限公司 资源分配方法、服务器、资源申领方法和客户端
CN109901694A (zh) * 2019-02-27 2019-06-18 苏州浪潮智能科技有限公司 硬盘自动进入省电状态的方法、系统、设备及存储介质
CN113728294B (zh) * 2019-09-06 2023-03-31 阿里云计算有限公司 功耗控制与方案生成方法、设备、系统及存储介质
CN115631842A (zh) * 2022-09-08 2023-01-20 武汉联影医疗科技有限公司 节能控制方法及装置、医疗设备及存储介质
CN117471929A (zh) * 2023-12-27 2024-01-30 珠海格力电器股份有限公司 控制方法、装置、设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441507A (zh) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 一种用于硬盘设备的节能方法和节能装置
CN101982843A (zh) * 2010-10-21 2011-03-02 天津大学 一种非参数回归短时交通流预测中状态向量的选取方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774292A (en) * 1995-04-13 1998-06-30 International Business Machines Corporation Disk drive power management system and method
US5682273A (en) * 1995-06-30 1997-10-28 International Business Machines Corporation Disk drive for portable computer with adaptive demand-driven power management
US6892313B1 (en) * 2001-06-21 2005-05-10 Western Digital Technologies, Inc. Method for predictive power management for operating a disk drive in a mobile device to optimize power usage
US7734867B1 (en) 2002-05-17 2010-06-08 Hewlett-Packard Development Company, L.P. Data storage using disk drives in accordance with a schedule of operations
CN1889737A (zh) * 2006-07-21 2007-01-03 华为技术有限公司 一种资源管理的方法和系统
CN101364138B (zh) 2008-09-18 2011-03-30 成都市华为赛门铁克科技有限公司 固态硬盘存储系统电源管理方法和装置
CN101520689B (zh) * 2009-04-17 2012-10-03 成都市华为赛门铁克科技有限公司 一种计算机存储设备控制方法、控制器及存储设备
US8732487B2 (en) * 2010-06-30 2014-05-20 Microsoft Corporation Predictive computing device power management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441507A (zh) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 一种用于硬盘设备的节能方法和节能装置
CN101982843A (zh) * 2010-10-21 2011-03-02 天津大学 一种非参数回归短时交通流预测中状态向量的选取方法

Also Published As

Publication number Publication date
US9740272B2 (en) 2017-08-22
CN102736725B (zh) 2016-03-30
CN102736725A (zh) 2012-10-17
US20140101469A1 (en) 2014-04-10

Similar Documents

Publication Publication Date Title
WO2013170575A1 (zh) 一种硬盘节能控制方法、装置及中央处理器
US20210064117A1 (en) Optimizing power usage by factoring processor architectural events to pmu
US7610497B2 (en) Power management system with a bridge logic having analyzers for monitoring data quantity to modify operating clock and voltage of the processor and main memory
US9329671B2 (en) Power-efficient inter processor communication scheduling
US7197652B2 (en) Method and system for energy management in a simultaneous multi-threaded (SMT) processing system including per-thread device usage monitoring
US20110106935A1 (en) Power management for idle system in clusters
US20190286215A1 (en) System and method to enable prediction-based power management
WO2013119195A1 (en) Multicore computer system with cache use based adaptive scheduling
CN111611125A (zh) 用于改善高性能计算应用的性能数据收集的方法与设备
US20230199049A1 (en) Modifying content streaming based on device parameters
CN106897133B (zh) 一种基于pbs作业调度管理集群负载的实现方法
WO2020206704A1 (zh) 基于集群节点负载状态预测的冷热区域划分节能存储方法
WO2022002089A1 (zh) 存储系统及节能控制方法
WO2014094303A1 (zh) 一种监控记录管理方法与装置
CN102436297A (zh) 一种温度融合控制的存储节能降噪方法
WO2011113321A1 (zh) 一种能耗控制方法及装置
CN103092328A (zh) 一种基于磁盘休眠的计算机节能的方法
Riska et al. Feasibility regions: exploiting tradeoffs between power and performance in disk drives
CN113992687B (zh) 智能业务集群调度方法、装置、电子设备及存储介质
CN102411423B (zh) 一种cpu与无线网卡的协同动态电源管理方法
CN101661325B (zh) 一种移动设备的电源动态管理方法
Chang et al. Energy-efficient heterogeneous resource management for wireless monitoring systems
CN102780727A (zh) 一种物联网终端设备的动态电源管理方法
CN113655963B (zh) 基于内存桥接的数据存储系统、方法及计算机设备
WO2024114728A1 (zh) 一种异构处理器及相关调度方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12876824

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12876824

Country of ref document: EP

Kind code of ref document: A1