Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention discloses a kind of solid hard disk storage system method for managing power supply, may further comprise the steps
Read the historical operation frequency of solid state hard disc, described historical operation frequency is used to write down the accessed number of times of solid state hard disc, the accessed number of times of solid state hard disc can be set at number of times that solid state hard disc read or the number of times of being write by demand, perhaps satisfies the necessarily number of times of the amount of reading and writing data;
According to the historical operation frequency of described solid state hard disc, described solid state hard disc is cut off the power supply or powers.The historical operation frequency and the set operating frequency threshold values of controller system memory of optional more described solid state hard disc; To of the solid state hard disc outage of historical operation frequency less than the operating frequency threshold values; To of the solid state hard disc power supply of described historical operation frequency greater than described operating frequency threshold values.
The embodiment of the invention is carried out power management to solid state hard disc by controller system memory targetedly according to the historical operation frequency of described solid state hard disc, thereby different memory devices can carry out power management initiatively, reduces the energy consumption of storage system.
As shown in Figure 1, the embodiment of the invention 1 provides a kind of solid hard disk storage system method for managing power supply, may further comprise the steps:
Step 101: controller system memory starts at least two solid state hard discs, also can be that controller system memory starts all solid state hard discs that storage system is managed here, enters step step 102 then;
Step 102: controller system memory reads the historical operation frequency of all solid state hard discs that started, and judges whether to have read the historical operation frequency of all solid state hard discs that started; If read, then enter step step 103; If do not read, then enter step step 104;
Step 103:, finish to read solid state hard disc historical operation frequency so if read the historical operation frequency of all solid state hard discs that started;
Step 104: if do not read the historical operation frequency of all solid state hard discs that started, read the historical operation frequency of next piece solid state hard disc so, the operating frequency threshold values that the historical operation frequency of more described next piece solid state hard disc and controller system memory are set; If the historical operation frequency of described next piece solid state hard disc is less than the operating frequency threshold values, controller system memory is to described next piece solid state hard disc outage; If the historical operation frequency of described next piece solid state hard disc is greater than the operating frequency threshold values, controller system memory is given described next piece solid state hard disc power supply.
The embodiment of the invention is carried out power management to solid state hard disc targetedly by controller system memory, thereby different memory devices can carry out power management initiatively, reduces the energy consumption of storage system.
Obviously in the present embodiment 1, the front and back order between step 103 and the step 104 can be exchanged, and also can carry out step 104 earlier, carry out step 103 then.In addition, depend on the needs, the historical operation frequency equals the step that the situation of operating frequency threshold values carries out can belong to the situation of historical operation frequency greater than the operating frequency threshold values, also can belong to the situation of historical operation frequency less than the operating frequency threshold values.
Optionally, in step 104, the set operating frequency threshold values of controller system memory can be to set in advance in controller system memory inside, also can be in storage system artificial being provided with or being provided with flexibly according to calling of program in service, to satisfy different application demands.
Please in the lump with reference to figure 2, the embodiment of the invention 1 can specific as followsly be described:
Step 101: controller system memory starts at least two solid state hard discs, enters step step 102 then;
Step 102: controller system memory reads the historical operation frequency of all solid state hard discs that started, and judges whether to have read the historical operation frequency of all solid state hard discs that started; If read, then enter step step 103; If do not read the historical operation frequency of all solid state hard discs that started, then entered step step 1041 (above-mentioned steps 104 comprises: step 1041, step 1042, step 1043); Optionally, after controller system memory reads the historical operation frequency of all solid state hard discs that started, can with these historical operation frequency records in the storage medium of controller system memory self EMS memory, buffer memory or other equipment, call to make things convenient for follow-up data.
Step 103:, finish to read solid state hard disc historical operation frequency so if read the historical operation frequency of all solid state hard discs that started.
Step 1041: read the historical operation frequency of next piece solid state hard disc, step 1041 can be designated as: read the historical operation frequency a of next piece solid state hard disc A, enter step 1042; In like manner in the step 1041, also the historical operation frequency a of next piece solid state hard disc A of reading can be recorded in the storage medium of controller system memory self EMS memory, buffer memory or other equipment, call to make things convenient for follow-up data.
Step 1042: whether the historical operation frequency a that judges next piece solid state hard disc A is less than the operating frequency threshold values; If historical operation frequency a enters step 1043 less than the operating frequency threshold values; If historical operation frequency a is not less than the operating frequency threshold values, then can enter step 102.Continue to read the historical operation frequency of all solid state hard discs that started by step 102 controller system memory, and judge whether to have read the historical operation frequency of all solid state hard discs.
Step 1043: controller system memory is to described next piece solid state hard disc A outage; Return step 102 then, controller system memory continues to read the historical operation frequency of all solid state hard discs that started, and judges whether to have read the historical operation frequency of all solid state hard discs.
Circulate repeatedly up to the historical operation frequency that has read all solid state hard discs like this by step 1042 and step 1043.Equally, if the historical operation frequency is greater than the operating frequency threshold values, after controller system memory is given next piece solid state hard disc power supply, still repeat step 102, controller system memory continues to read the historical operation frequency of all solid state hard discs that started, and judges whether to have read the historical operation frequency of all solid state hard discs.
Please consult Fig. 3 in conjunction with Fig. 2, circulating repeatedly after the historical operation frequency that has read all solid state hard discs like this by step 1042 and step 1043, completing steps 103 is to finish to read solid state hard disc historical operation frequency.Optionally,, finish so to read after the solid state hard disc historical operation frequency step if read the historical operation frequency of described all solid state hard discs in step 103, solid hard disk storage system also carries out following data manipulation flow process:
Step 301: behind the completing steps 103, controller system memory calls the historical operation frequency record in the storage medium that is stored in controller system memory self EMS memory, buffer memory or other equipment, judges that whether the historical operation frequency of being called is less than the operating frequency threshold values.If exist the historical operation frequency less than the operating frequency threshold values, to the historical operation frequency less than operating frequency threshold values solid state hard disc power supply and store data manipulation.The storage data manipulation here can be the read-write operation in the general storage, such as read operation, wipe in operation and the write operation one or more, enters step 302 then.If the historical operation frequency does not exist less than the operating frequency threshold values, controller system memory to greater than with or the solid state hard disc that equals the operating frequency threshold values carry out data manipulation, enter step 302 then, the data manipulation here can be the read-write operation in the general storage, such as read operation, wipe in operation and the write operation one or more.
Certainly in the step 301 do not exist less than situation comprise more than or equal to.Optionally, can with situation about equaling with less than situation merge and make same treatment, as: if exist the historical operation frequency to be less than or equal to the operating frequency threshold values, to existing the historical operation frequency to be less than or equal to the solid state hard disc power supply of operating frequency threshold values and storing data manipulation.If there be the solid state hard disc of historical operation frequency greater than the operating frequency threshold values, controller system memory carries out data manipulation to the solid state hard disc greater than the operating frequency threshold values.
Step 302: after controller system memory carries out data manipulation, revise the operating frequency of the solid state hard disc of current process data manipulation.Here the operating frequency of revising the solid state hard disc of current process data manipulation can be: in the historical operation frequency record in the storage medium that is stored in controller system memory self EMS memory, buffer memory or other equipment, by revising, the operation frequency value of the solid state hard disc of the current process data manipulation that makes becomes big, enters step 303 then;
Step 303: whether the historical operation frequency (read/write frequency) of judging current solid state hard disc is less than the operating frequency threshold values, if the historical operation frequency is not less than the operating frequency threshold values, controller system memory finishes current historical operation frequency is not less than the solid state hard disc data manipulation of operating frequency threshold values.If the historical operation frequency enters step 304 less than the operating frequency threshold values;
Step 304: controller system memory finishes current solid state hard disc data manipulation at last to the current solid state hard disc outage of passing through the historical operation frequency of data manipulation less than the operating frequency threshold values.
As seen in embodiments of the present invention, different storage systems can initiatively be carried out power management to solid state hard disc.By in the solid hard disk storage system,,, can reduce the energy consumption of solid hard disk storage system less than the solid state hard disc outage of operating frequency threshold values greater than the solid state hard disc power supply of operating frequency threshold values.The working temperature of solid state hard disc reduces along with the minimizing of energy consumption, and increase along with the reduction of working temperature the serviceable life of solid state hard disc.
As Fig. 4, the embodiment of the invention 2 provides a kind of solid hard disk storage system electric power controller 500, it is characterized in that, comprising: host interface controller 501, hard disk interface controller 502 and controller system memory 503.Controller system memory 503, host interface controller 501 and hard disk interface controller 502 are by system bus 504 interconnection;
Host interface controller 501 is used to receive the data and the control command of external host 600, operation store system controller 503 carries out power management, and controller system memory 503 carries out power management according to the data and the control command of host interface controller 501 by 502 pairs of solid state hard discs of hard disk interface controller 700.
See also Fig. 5, controller system memory 503 comprises:
Read module 601: the historical operation frequency that is used to read solid state hard disc 700;
Control module 602 is used for according to described historical operation frequency solid state hard disc 700 being carried out power management, and here, control module 602 is according to the historical operation frequency of solid state hard disc 700, and described solid state hard disc 700 is cut off the power supply or powers.The optional control module 602 set operating frequency threshold values of the historical operation frequency of solid state hard discs 700 and controller system memory 503 relatively; To of the solid state hard disc outage of historical operation frequency less than the operating frequency threshold values; To of the solid state hard disc power supply of described historical operation frequency greater than described operating frequency threshold values.
The embodiment of the invention is carried out power management to solid state hard disc targetedly by controller system memory, historical operation frequency according to described solid state hard disc, described solid state hard disc is carried out power management, thereby different memory devices can carry out power management initiatively, reduces the energy consumption of storage system.
Concrete: the read module 601 in the controller system memory 503: the historical operation frequency that is used to read all solid state hard discs 700 that solid hard disk storage system electric power controller 500 started;
Controller system memory 503 also comprises judge module 602: be used for the historical operation frequency values that obtains according to read module 601, judge whether to have read the historical operation frequency of all solid state hard discs 700 that started; If do not read the historical operation frequency of all solid state hard discs 700, read the historical operation frequency a of next piece solid state hard disc A so, the operating frequency threshold values that the historical operation frequency a of more described next piece solid state hard disc A and controller system memory 503 are set;
Control module 603 in the controller system memory 503, be used for carrying out power management by 502 pairs of solid state hard discs of hard disk interface controller 700 according to the comparative result of judge module 602, if historical operation frequency a is less than the operating frequency threshold values, to described next piece solid state hard disc A outage; If historical operation frequency a, gives described next piece solid state hard disc A power supply greater than the operating frequency threshold values.
The embodiment of the invention 2 is carried out power management to solid state hard disc 700 targetedly by controller system memory 503, thereby different memory devices can carry out power management initiatively, reduces the energy consumption of storage system.
Optionally, judge module 602 judges whether to have read the historical operation frequency of all solid state hard discs 700 according to the historical operation frequency values that read module 601 obtains; If read the historical operation frequency of all solid state hard discs 700 that started, finish to read solid state hard disc 700 historical operation frequencies so.
In addition, control module 603 is after cutting off the power supply to next piece solid state hard disc A, and read module 602 continues to read the historical operation frequency of all solid state hard discs 700 that started according to the instruction of control module 603; Judge module 602 receives the historical operation frequency of all solid state hard discs 700 that read modules 601 obtain, and judges whether to have read the historical operation frequency of all solid state hard discs 700.
Control module 603 in the embodiment of the invention 2 also is used at historical operation frequency a during less than the operating frequency threshold values, to next piece solid state hard disc A power supply, carries out read operation, wipes in operation and the write operation one or more; Revise the historical operation frequency a of next piece solid state hard disc A; To next piece solid state hard disc A outage.If historical operation frequency a is greater than the operating frequency threshold values, to next piece solid state hard disc A power supply carrying out read operation, wipe in operation and the write operation one or more; Storage memory system controller 503 is revised the operating frequency of next piece solid state hard disc A; Controller system memory 503 is given next piece solid state hard disc A power supply then.
In conjunction with consulting Fig. 1 and Fig. 2, the embodiment of the invention 2 is used the method for the embodiment of the invention 1,
By step 101: controller system memory 503 starts at least two solid state hard discs, enters step step 102 then;
Step 102: controller system memory 503 reads the historical operation frequency of all solid state hard discs that started by read module 601, judges whether to have read the historical operation frequency of all solid state hard discs by judge module 602; If read, then enter step step 103; If do not read the historical operation frequency of all solid state hard discs, then entered step step 1041 (above-mentioned steps 104 comprises: step 1041, step 1042, step 1043);
Step 103: judge module 602 is judged if read the historical operation frequency of all solid state hard discs that started, is finished to read solid state hard disc historical operation frequency so.
Step 1041: judge module 602 reads the historical operation frequency a of next piece solid state hard disc A, enters step 1042;
Step 1042: whether judge module 602 compares the historical operation frequency a of next piece solid state hard disc A less than the operating frequency threshold values; If historical operation frequency a enters step 1043 less than the operating frequency threshold values; If historical operation frequency a is not less than the operating frequency threshold values, then can enter step 102, continue to read the historical operation frequency of all solid state hard discs that started by step 102 controller system memory 503, and judge whether to have read the historical operation frequency of all solid state hard discs.If if obviously here historical operation frequency a be not less than the operating frequency threshold values be exactly historical operation frequency a more than or equal to the operating frequency threshold values, controller system memory 503 is given next piece solid state hard disc A power supply by control module 603 like this.
Step 1043: controller system memory 503 cuts off the power supply to next piece solid state hard disc A by control module 603; Return step 102 then, controller system memory 503 continues to read the historical operation frequency of all solid state hard discs that started, and judges whether to have read the historical operation frequency of all solid state hard discs.
In conjunction with consulting Fig. 3, circulating repeatedly after the historical operation frequency that has read all solid state hard discs like this by step 1042 and step 1043, completing steps 103 is to finish to read solid state hard disc historical operation frequency.Optionally,, finish so to read after the solid state hard disc historical operation frequency step if read the historical operation frequency of described all solid state hard discs in step 103, solid hard disk storage system 503 also carries out following data manipulation flow process:
Step 301: controller system memory 503 calls the historical operation frequency record in the storage medium that is stored in controller system memory self EMS memory, buffer memory or other equipment by read module 601,
Judge that by judge module 602 whether the historical operation frequency of being called is less than the operating frequency threshold values.If exist the historical operation frequency, the historical operation frequency less than operating frequency threshold values solid state hard disc power supply and store data manipulation, is entered step 302 then less than the operating frequency threshold values.If the historical operation frequency does not exist less than the operating frequency threshold values, 503 pairs of controller system memories greater than with or the solid state hard disc that equals the operating frequency threshold values carry out data manipulation, enter step 302 then.
Step 302: after controller system memory 503 carried out data manipulation, controller system memory 503 was revised the operating frequency of the solid state hard disc of current process data manipulation by control module 603.By revising, the operation frequency value of the solid state hard disc of the current process data manipulation that makes becomes big, enters step 303 then;
Step 303: whether the historical operation frequency (read/write frequency) of judging current solid state hard disc is less than the operating frequency threshold values, if the historical operation frequency is not less than the operating frequency threshold values, controller system memory 503 finishes current historical operation frequency is not less than the solid state hard disc data manipulation of operating frequency threshold values.If the historical operation frequency enters step 304 less than the operating frequency threshold values, the historical operation frequency of 503 pairs of current processes of controller system memory data manipulation finishes current solid state hard disc data manipulation at last less than the solid state hard disc outage of operating frequency threshold values.
As seen in embodiments of the present invention, different memory devices can initiatively carry out power management to solid state hard disc.By in the solid hard disk storage system,,, can reduce the energy consumption of solid hard disk storage system less than the solid state hard disc outage of operating frequency threshold values greater than the solid state hard disc power supply of operating frequency threshold values.The working temperature of solid state hard disc reduces along with the minimizing of energy consumption, and increase along with the reduction of working temperature the serviceable life of solid state hard disc.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above only is several embodiments of the present invention, and those skilled in the art can carry out various changes or modification to the present invention and do not break away from the spirit and scope of the present invention according to application documents are disclosed.