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.
Disclose a kind of solid-state hard disk management method in the embodiment of the invention, having comprised:
When the state of at least one solid state hard disc changes, obtain the data volume of the solid state hard disc that described state changes; The data volume of the solid state hard disc that changes according to described state is carried out power management to described solid state hard disc.
The solid state hard disc state changes and comprises and start solid state hard disc or from the solid state hard disc obliterated data.The solid state hard disc data volume is data shared capacity in solid state hard disc.Obtaining of solid state hard disc data volume can be when solid state hard disc starts, also can be in operational process.Can set a threshold value in the embodiment of the invention, solid state hard disc data volume of obtaining and the threshold value that sets are compared, judge that whether the solid state hard disc data volume is greater than threshold value, if not, then, can certainly when equaling threshold value, data volume not cut off the power supply to described solid state hard disc outage.More excellent, can set the threshold to zero, if then described solid state hard disc data volume is zero, solid state hard disc is cut off the power supply.
The solid state hard disc data volume that the embodiment of the invention changes by the acquisition state, the solid state hard disc data volume that changes according to described state is carried out the technological means of power management to described solid state hard disc, to the power management that carries out of solid state hard disc active, effectively reduced the energy consumption of solid state hard disc.
The solid-state hard disk management method of the embodiment of the invention one as shown in Figure 1, comprising:
S101, startup solid state hard disc.
In the embodiment of the invention, storage system can comprise one or more solid state hard discs, and a plurality of solid state hard discs can be worked simultaneously, and the type of solid state hard disc can be SLC (Single Level Cell, single-layer type is stored) or MLC (Multi level Cell, multiple field storage).
S102, obtain the data volume of solid state hard disc.
Obtain the data volume of solid state hard disc, i.e. data shared capacity in solid state hard disc.Obtaining order can be according to solid state hard disc boot sequence, toggle speed or any other feasible mode.Obtaining of solid state hard disc data volume can be when solid state hard disc starts, also can be in operational process.Obtain manner has multiple, and as controller system memory active inquiry solid state hard disc, receive solid state hard disc and report, or the mode of the two combination.Controller system memory can be recorded in the solid state hard disc data volume of obtaining in the storage medium of controller system memory self EMS memory, buffer memory or other equipment, calls to make things convenient for follow-up data.
S103, judge that whether the data volume of current solid state hard disc is zero,, carry out S104 if be zero; If the data volume of solid state hard disc is non-vanishing, then continue to carry out S102, continue to obtain the data volume of solid state hard disc.
In this step, also can preestablish a data volume threshold value, judge that current solid state hard disc data volume whether greater than pre-set threshold, if not, then enters S104, if then enter S102.In addition, depend on the needs, also can when data volume equals threshold value, enter S102.The data volume threshold value 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.
S104, to data volume zero solid state hard disc outage.
In some embodiment, if in S103, judgement be the solid state hard disc data volume whether greater than threshold value, then to data volume smaller or equal to the outage of the solid state hard disc of threshold value.
S105, judge whether to have obtained all solid state hard disc data volumes; If obtained, then enter S106; If do not obtained the data volume of all solid state hard discs that started, then entered S102.
S106, if obtained the data volume of all solid state hard discs that started, then finish to obtain the solid state hard disc data volume.
The execution sequence of the foregoing description can have various deformation in realization, now provide the solid-state hard disk management method of the embodiment of the invention two, as shown in Figure 2, comprising:
S201, startup solid state hard disc.
S202, judge whether to have obtained all solid state hard disc data volumes; If obtained, then enter S203; If do not obtained the data volume of all solid state hard discs that started, then entered S204.
S203, if obtained the data volume of all solid state hard discs that started, finish to obtain the solid state hard disc data volume so.
S204, if do not obtained the data volume of all solid state hard discs that started, obtain the data volume of next solid state hard disc so.
Obviously, in the embodiment of the invention, the front and back order between above-mentioned steps S203 and the S204 can be exchanged, and also can carry out S204 earlier, carries out S203 then.
S205, judge that whether the data volume of described next solid state hard disc is zero,, enter S206 if be zero; If the data volume of solid state hard disc is non-vanishing, then enter S202, continue to judge whether to have obtained the data volume of all solid state hard discs.
S206, being zero described next solid state hard disc outage to data volume, is after zero the solid state hard disc outage, to return S202 to data volume, continues to judge whether to have obtained the data volume of all solid state hard discs.
In some embodiments, also can unify to obtain the data volume of all solid state hard discs that started, unification judges whether the data volume of each solid state hard disc is zero, unified is that zero solid state hard disc cuts off the power supply to data volume, thereby be different from every turn a solid state hard disc being operated that the foregoing description provides, circulation is carried out up to the technical scheme that finishes.In sum, it may occur to persons skilled in the art that any to the foregoing description step and the order distortion all within the protection domain of the embodiment of the invention.
The solid-state hard disk management method of the embodiment of the invention three as shown in Figure 3, comprising:
S301, at least one solid state hard disc obliterated data.
S302, obtain the data volume of the solid state hard disc that carries out erase operation.
S303, judge whether the data volume of the described solid state hard disc that carries out erase operation is zero, if be zero, enters S304; If the data volume of the described solid state hard disc that carries out erase operation is non-vanishing, then end operation.
In this step, also can adopt as S103 and carry out the solid state hard disc data volume of erase operation and the method for pre-set threshold as described in described.
S304, be zero the described solid state hard disc outage of carrying out erase operation to data volume, end operation then.
In some embodiments, for guaranteeing system high efficiency operation under effective energy consumption administrative situation, can be further before carrying out data writing operation, in the solid-state hard disk management method that previous embodiment of the present invention provides to the solid state hard disc power supply of data volume smaller or equal to predetermined threshold, as shown in Figure 4, comprising:
S401, obtain the data volume of the solid state hard disc that needs write operation.In the embodiment of the invention, through the foregoing description to data volume smaller or equal to the outage of the solid state hard disc of predetermined threshold after, the data amount information of described solid state hard disc can be stored in controller system memory inside, as make a solid state hard disc data scale, when needs carry out write operation to solid state hard disc, can at first inquire about described solid state hard disc data scale.
Whether the data volume that S402, judgement need be carried out the solid state hard disc of write operation is zero, if, then carry out S403, if not, then enter S404.
In this step, also can adopt method as described more current solid state hard disc data volume of S103 and pre-set threshold.
S403, the data volume that described needs are carried out write operation are zero solid state hard disc power supply.
S404, data are write current solid state hard disc, finish operation then current solid state hard disc.
The solid state hard disc data volume that the embodiment of the invention changes by the acquisition state, the solid state hard disc data volume that changes according to described state is carried out the technological means of power management to described solid state hard disc, to the power management that carries out of solid state hard disc active, effectively reduced the energy consumption of solid state hard disc.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.
Corresponding to top method embodiment, the embodiment of the invention four provides a kind of solid state hard disc control device, as shown in Figure 5, comprising:
Acquisition module 501 when the state that is used at least one solid state hard disc changes, obtains the data volume of the solid state hard disc that described state changes.
Control module 502 is used for the data volume of the solid state hard disc that changes according to the described state that described acquisition module 501 obtains, and described solid state hard disc is carried out power management.
In the embodiment of the invention, the state of described solid state hard disc changes and comprises the startup solid state hard disc, from solid state hard disc obliterated data etc.The solid state hard disc data volume is data shared capacity in solid state hard disc.Obtaining of 501 pairs of solid state hard disc data volumes of acquisition module can be when solid state hard disc starts, also can be in operational process, acquisition module 501 is transferred to control module 502 with the solid state hard disc data volume that obtains, can be that acquisition module 501 initiatively sends to control module 502 with the solid state hard disc data volume that obtains, also can be that control module 502 initiatively obtains the solid state hard disc data volume from acquisition module 501.Can set a threshold value in the embodiment of the invention, control module 502 compares acquisition module 501 solid state hard disc data volume that obtains and the threshold value that sets, judge that whether the solid state hard disc data volume is greater than threshold value, if not, then, can certainly when equaling threshold value, data volume not cut off the power supply to described solid state hard disc outage.More excellent, can set the threshold to zero, then control module 502 is cut off the power supply to solid state hard disc when the solid state hard disc data volume is zero.
Further, the solid state hard disc control device of the embodiment of the invention can comprise judge module 503, is used to judge whether to have obtained all solid state hard disc data volumes that started, if obtained all solid state hard disc data volumes, then finishes to obtain; If do not obtained all solid state hard disc data volumes, then obtain next piece solid state hard disc data volume by acquisition module 501.
Be described in detail below in conjunction with the solid state hard disc control device of solid state hard disc management the embodiment of the invention:
Control module 502 starts solid state hard disc.In the embodiment of the invention, storage system can comprise one or more solid state hard discs, and a plurality of solid state hard discs can be worked simultaneously, and the type of solid state hard disc can be SLC (Single Level Cell, single-layer type is stored) or MLC (Multi level Cell, multiple field storage).
Acquisition module 501 obtains the data volume of solid state hard disc, i.e. data shared capacity in solid state hard disc, and the solid state hard disc data volume that obtains is transferred to control module 502.Obtaining order can be according to solid state hard disc boot sequence, toggle speed or any other feasible mode.Obtaining of 501 pairs of solid state hard disc data volumes of acquisition module can be when solid state hard disc starts, also can be in operational process.Obtain manner has multiple, and as acquisition module 501 active inquiry solid state hard discs, receive solid state hard disc and report, or the mode of the two combination.Acquisition module 501 can be recorded in the solid state hard disc data volume of obtaining in the storage medium of solid state hard disc control device self EMS memory, buffer memory or other equipment, calls to make things convenient for follow-up data.
Control module 502 judges whether the data volume of current solid state hard disc is zero, if be zero, then to described solid state hard disc outage; If the data volume of solid state hard disc is non-vanishing, then continue to obtain next solid state hard disc data volume.In the embodiment of the invention, also can preestablish a data volume threshold value, whether control module 502 judges current solid state hard disc data volume greater than pre-set threshold, if not, and then to this solid state hard disc outage; If then continue to obtain the data volume of solid state hard disc.In addition, depend on the needs, also can be to this solid state hard disc outage when data volume equals threshold value.Described data volume threshold value can be to set in advance in described solid state hard disc control device 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.
502 pairs of data volumes of control module are zero solid state hard disc outage.In some embodiment, if in abovementioned steps, what control module 502 was judged is whether the solid state hard disc data volume is greater than threshold value, then to the solid state hard disc outage of data volume smaller or equal to threshold value.
Judge module 503 judges whether to have obtained all solid state hard disc data volumes that start; If obtained, then finish to obtain the solid state hard disc data volume; If do not obtained the data volume of all solid state hard discs that started, then continued to obtain the solid state hard disc data volume.
In some embodiments, the solid state hard disc control device can carry out the solid state hard disc management by following manner:
Control module 502 starts solid state hard disc.
Judge module 503 judges whether to have obtained all solid state hard disc data volumes; If obtained, then finish to obtain the solid state hard disc data volume; If do not obtained the data volume of all solid state hard discs that started, then obtain the data volume of next solid state hard disc by acquisition module 501.
Control module 502 judges whether the data volume of described next solid state hard disc is zero, if be zero, then to this solid state hard disc outage; If the data volume to this solid state hard disc outage back or solid state hard disc is non-vanishing, continue to judge whether to have obtained the data volume of all solid state hard discs by judge module 503.
In some embodiments, also can obtain the data volume of all solid state hard discs that started by acquisition module 501, control module 502 unifications judge whether the data volume of each solid state hard disc is zero, and unification is that zero solid state hard disc cuts off the power supply to data volume, thereby be different from every turn a solid state hard disc being operated that the foregoing description provides, circulation is carried out up to the technical scheme that finishes.In sum, any solid state hard disc control device that it may occur to persons skilled in the art that carries out the mode of solid state hard disc management all within the protection domain of the embodiment of the invention.
In some embodiment, control module 502 is at least one solid state hard disc obliterated data, acquisition module 501 obtains the data volume of the solid state hard disc that carries out erase operation, control module 502 judges whether described data volume of carrying out the solid state hard disc of erase operation is zero, if be zero, then, finish operation then to described solid state hard disc to described solid state hard disc outage; If the data volume of the described solid state hard disc that carries out erase operation is non-vanishing, then finish operation to described solid state hard disc.In some embodiment, above-mentioned steps also can be carried out the solid state hard disc data volume of erase operation and the method for pre-set threshold is carried out by more described.
In some embodiments, for guaranteeing system high efficiency operation under effective energy consumption administrative situation, before needs carried out data writing operation to solid state hard disc, to the solid state hard disc power supply of data volume smaller or equal to predetermined threshold, acquisition module 501 obtained the data volume of the solid state hard disc that needs write operation.In the embodiment of the invention, through the foregoing description to data volume smaller or equal to the outage of the solid state hard disc of predetermined threshold after, the data amount information of described solid state hard disc can be stored in controller system memory inside, as make a solid state hard disc data scale, when needs carry out write operation to solid state hard disc, can be at first by the described solid state hard disc data scale of acquisition module 501 inquiries.Control module 502 judges whether the data volume of the solid state hard disc that need carry out write operation is zero, if, then by 502 pairs of described solid state hard disc power supplies of control module, when the data volume of power supply back or described solid state hard disc is non-vanishing, control module 502 writes described solid state hard disc to data, finishes the operation to described solid state hard disc then.In some embodiment, above-mentioned steps also can be carried out the solid state hard disc data volume of erase operation and the method for pre-set threshold is carried out by more described.
The device that the embodiment of the invention provides, the solid state hard disc data volume that changes by the acquisition state, the solid state hard disc data volume that changes according to described state is carried out the technological means of power management to described solid state hard disc, to the power management that carries out of solid state hard disc active, effectively reduced the energy consumption of solid state hard disc.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.
Corresponding to top method embodiment, the embodiment of the invention five provides a kind of solid state hard disc control system, as shown in Figure 6, comprising:
Controller system memory 601, host interface controller 602 and hard disk interface controller 603; Described controller system memory, host interface controller and hard disk interface controller are by system bus 604 interconnection; Described controller system memory 601 receives the control command that main frame sends by host interface controller 602; Described controller system memory 601 is operated by the solid state hard disc 605 of 60 pairs of access control systems of hard disk interface controller according to described control command; When the state of at least one solid state hard disc changes, described controller system memory 601 obtains the data volume of the solid state hard disc that described state changes, the data volume of the solid state hard disc that changes according to described state is carried out power management to described solid state hard disc.
The system that the embodiment of the invention provides, the solid state hard disc data volume that changes by the acquisition state, the solid state hard disc data volume that changes according to described state is carried out the technological means of power management to described solid state hard disc, to the power management that carries out of solid state hard disc active, effectively reduced the energy consumption of solid state hard disc.
In the embodiment of the invention, can insert a plurality of solid state hard discs in the described solid state hard disc control system, a plurality of solid state hard discs can be worked simultaneously, and the type of solid state hard disc can be SLC (Single Level Cell, single-layer type is stored) or MLC (Multi level Cell, multiple field storage).The operational order that described main frame sends can be to start solid state hard disc, to the solid state hard disc write data, from orders such as solid state hard disc obliterated datas.
The controller system memory 601 of the embodiment of the invention comprises acquisition module and control module, further can also comprise judge module, and the annexation of above-mentioned module and effect please refer to the description of the embodiment of the invention 5.
Below in conjunction with the solid state hard disc management embodiment of the invention solid state hard disc control system is described in detail:
Controller system memory 601 starts the solid state hard disc 605 of at least one access control system by the order of the startup solid state hard disc of host interface controller 602 reception main frames transmissions by hard disk interface controller 603.Controller system memory 601 obtains the data volume of solid state hard disc, judges whether the data volume of current solid state hard disc is zero, if be zero, then to described solid state hard disc outage; If the data volume of solid state hard disc is non-vanishing, then continue to obtain next solid state hard disc data volume.In the embodiment of the invention, also can preestablish a data volume threshold value, whether controller system memory 601 judges current solid state hard disc data volume greater than pre-set threshold, if not, and then to this solid state hard disc outage; If, then continue to obtain the data volume of solid state hard disc, in addition, depend on the needs, also can be to this solid state hard disc outage when data volume equals threshold value.Controller system memory 601 judges whether to have obtained all solid state hard disc data volumes that start; If obtained, then finish to obtain the solid state hard disc data volume; If do not obtained the data volume of all solid state hard discs that started, then continued to obtain the solid state hard disc data volume.In some embodiments, after controller system memory 601 starts at least one solid state hard disc, judge whether to have obtained all solid state hard disc data volumes; If obtained, then finish to obtain the solid state hard disc data volume; If do not obtained the data volume of all solid state hard discs that started, then obtain the data volume of next solid state hard disc.Controller system memory 601 judges whether the data volume of described next solid state hard disc is zero, if be zero, then to this solid state hard disc outage; If the data volume to this solid state hard disc outage back or solid state hard disc is non-vanishing, continue to judge whether to have obtained the data volume of all solid state hard discs.
In some embodiments, also can obtain the data volume of all solid state hard discs that started by controller system memory 601, unification judges whether the data volume of each solid state hard disc is zero, unified is that zero solid state hard disc cuts off the power supply to data volume, thereby be different from every turn a solid state hard disc being operated that the foregoing description provides, circulation is carried out up to the technical scheme that finishes.In sum, any controller system memory 601 that it may occur to persons skilled in the art that carries out the mode of solid state hard disc management all within the protection domain of the embodiment of the invention.
In some embodiment, controller system memory 601 receives the order from the solid state hard disc obliterated data that main frame sends, the data volume of wiping solid state hard disc 605 by hard disk interface controller 603 by host interface controller 602.Controller system memory 601 obtains the data volume of described solid state hard disc, judges whether the data volume of described solid state hard disc is zero, if be zero, then to described solid state hard disc outage, finishes the operation to described solid state hard disc then; If the data volume of described solid state hard disc is non-vanishing, then finish operation to described solid state hard disc.In some embodiment, above-mentioned steps also can be carried out the solid state hard disc data volume of erase operation and the method for pre-set threshold is carried out by more described.
In some embodiments, for guaranteeing system high efficiency operation under effective energy consumption administrative situation, before needs carry out data writing operation to solid state hard disc, to the solid state hard disc power supply of data volume smaller or equal to predetermined threshold.Controller system memory 601 receives the order to the solid state hard disc write data that main frame sends by host interface controller 602, obtains the data volume of the solid state hard disc 605 that needs write operation by hard disk interface controller 603.In the embodiment of the invention, through the foregoing description to data volume smaller or equal to the outage of the solid state hard disc of predetermined threshold after, the data amount information of described solid state hard disc can be stored in controller system memory inside, as make a solid state hard disc data scale, when needs carry out write operation to solid state hard disc, can be at first by the described solid state hard disc data scale of controller system memory 601 inquiries.Controller system memory 601 judges whether the data volume of the solid state hard disc that need carry out write operation is zero, if, then described solid state hard disc power supply, when the data volume of power supply back or described solid state hard disc is non-vanishing, controller system memory 601 writes described solid state hard disc to data by hard disk interface controller 603, finishes the operation to described solid state hard disc then.In some embodiment, above-mentioned steps also can be carried out the solid state hard disc data volume of erase operation and the method for pre-set threshold is carried out by more described.
The solid hard disk storage system that the embodiment of the invention provides, be used for realizing obtaining the solid state hard disc data volume, described solid state hard disc is carried out the technological means of power management according to described solid state hard disc data volume, solid state hard disc is initiatively carried out power management, effectively reduced the energy consumption of solid state hard disc, 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 step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.