Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
At first the embodiment of the present invention is realized that the method for a kind of SSD response main frame read-write operation request describes, and comprising: whether the number of concurrent that judges the solid-state storage unit is not less than preset value; When being not less than preset value, suspend the read-write operation request of response main frame, preserve the read-write operation request of described main frame; Until described number of concurrent is during less than described preset value, then the read-write operation request of the described main frame preserved of response; When less than preset value, continue the read-write operation request of response main frame.
Embodiment of the method:
Referring to Fig. 1, this figure is the inventive method embodiment process flow diagram.
S101: whether the number of concurrent that judges solid-state storage unit in SSD is not less than preset value; When being not less than preset value, carry out S102.
S102: suspend the read-write operation request of response main frame, preserve the read-write operation request of described main frame.Above-mentioned response refers to after executing read-write requests, carries out to the main frame feedback result that finishes.
Can also carry out S103 when the number of concurrent of solid-state storage unit during less than preset value.
S103: the read-write operation request of the above-mentioned main frame of response.
For those skilled in the art can understand better and implement the embodiment of the present invention, below in conjunction with Fig. 2, the embodiment of the present invention is described in detail.
Referring to Fig. 2, this figure is the SSD schematic internal view.
SSD comprises the storage array that control module 201 and multi-disc solid-state storage unit 202 form.Control module 202 is controlled solid-state storage unit 202 concurrent operations, thereby realizes the high-performance read-write of SSD.
As shown in Figure 2, the solid-state storage unit chip that is operating is with realizing mark, is in the solid-state storage unit chip with dashed lines mark of idle condition.
Power consumption during the solid-state storage unit free is well below the power consumption in when work (operation).The sheet number of the solid-state storage unit of synchronization operation is more, and power consumption is larger.
Fig. 3 is solid-state storage unit number of concurrent with respect to the schematic diagram of time, and the longitudinal axis represents the number of concurrent of solid-state storage unit, and transverse and longitudinal represents the time.
Curve 301 be in prior art solid-state storage unit number of concurrent with respect to the track of time.
Curve 302 be in the embodiment of the present invention solid-state storage unit number of concurrent with respect to the track of time.
Dotted line 303 is predetermined set value of number of concurrent.
Can find out from curve 301, spike one by one can appear in solid-state storage unit number of concurrent, and as shown in the dashed circle in Fig. 3, these spikes have surpassed dotted line 303.Can make so the power consumption of whole SSD very large, will destroy job stability and the reliability of SSD.
The embodiment of the present invention is SSD to be postponed to the read-write operation request of main frame at the Rush Hour of solid-state storage unit number of concurrent for going to carry out to next solid-state storage unit few moment of number of concurrent.
Need to prove, described preset value can distribute according to the frequency of the read-write operation request of main frame and data and adjust.The different application environment, different to the requirement of SSD performance and power consumption.Therefore, the preset value of maximum number of concurrent might not be an absolute value, is to revise according to the read-write situation of main frame.
The read-write operation request of main frame is sometimes how sometimes few.
Distribute data that the read-write operation request refer to main frame will access of data are positioned at which physical location of the solid-state storage unit of SSD, and the number of concurrent of physical address distributes overstepping the bounds of propriety loose, corresponding solid-state storage unit is just higher.This is to be determined by the logical address of main frame read-write operation request and the mapping relations between actual physical address, different SSD, and mapping relations are different.
Be specifically as follows during the read-write operation request of SSD response main frame:
If the frequency of 1 main frame read-write operation request is low, can not allow solid-state storage unit number of concurrent very high, so the SSD peak power is not high yet, the situation that SSD postpones response main frame read-write operation request just can not appear in this case.
If low when high during the frequency of 2 main frame read-write operation request, and data distribution dispersion, solid-state storage unit number of concurrent change will be larger, and this moment, the power consumption fluctuation of SSD was also very large, and the peak limiting power consumption is the most significant in this case.
If it is more concentrated that the data of 3 main frame read-write operation request distribute, regardless of visiting frequency, be subject to solid-state storage unit physical characteristics, solid-state storage unit number of concurrent is inevitable not high, peak power is not high yet, the situation that SSD postpones response main frame read-write operation request just can not occur in this case.
If the frequency of 4 main frame read-write operation request is always very high, and data distribution dispersion, because the number of concurrent that the peak limiting power consumption is brought reduces, be exactly the peak performance of SSD so.
The power consumption of the SSD that the main frame read-write operation request of above several situations causes is as long as the number of concurrent of restriction solid-state storage unit can realize.
Below in detail introduction how to judge whether the number of concurrent of solid-state storage unit in SSD is not less than preset value.
Whether the number of concurrent that judges solid-state storage unit in SSD is not less than preset value is specially:
Whether the numerical value of monitoring concurrent counter is not less than preset value, the number of concurrent of solid-state storage unit in described concurrent counter records SSD, and when increasing a slice solid-state storage unit operations, described concurrent counter adds 1; When having a slice solid-state storage unit operations to complete, described concurrent counter subtracts 1.
The method of SSD that the embodiment of the present invention provides response main frame read-write operation request by monitoring solid-state storage unit number of concurrent so that control response to the read-write operation request of main frame, realize the restriction to the SSD maximum power dissipation.When the number of concurrent of solid-state storage unit is not less than preset value, suspend the response to the main frame read-write operation request, thus the maximum power dissipation of restriction SSD.Can guarantee the reliability of SSD like this.
The embodiment of the present invention also provides a kind of SSD.
SSD embodiment:
Referring to Fig. 4, this figure is SSD example structure figure of the present invention.
The SSD that the present embodiment provides comprises: judging unit 401 and performance element 402.
Described judging unit 401 is used for judging whether the number of concurrent of SSD solid-state storage unit is not less than preset value.
Described performance element 402 when the number of concurrent that judgment result is that the solid-state storage unit of described judging unit 401 is not less than preset value, is used for suspending the read-write operation request of response main frame, the read-write operation request of preserving described main frame; During less than described preset value, be used for the read-write operation request of response main frame when the number of concurrent that judgment result is that the solid-state storage unit of described judging unit 401.
The SSD that the embodiment of the present invention provides by monitoring solid-state storage unit number of concurrent so that control response to the read-write operation request of main frame, realize the restriction to the SSD maximum power dissipation.When the number of concurrent of judging unit 401 judgement solid-state storage unit is not less than preset value, the response that performance element 402 suspends the main frame read-write operation request, thereby the maximum power dissipation of restriction SSD.Can guarantee the reliability of SSD like this.
SSD in the present embodiment can also comprise preset value adjustment unit 403, is used for frequency and the described preset value of data distribution adjustment according to the read-write operation request of main frame.
The different application environment, different to the requirement of SSD performance and power consumption.Therefore, the preset value of maximum number of concurrent is not an absolute value, can adjust according to the read-write situation of main frame, so that SSD adapts to the read-write requests of ground response main frame.
Another embodiment of SSD:
Referring to Fig. 5, this figure is another example structure of SSD of the present invention figure.
This embodiment comprises:
Concurrent counting unit 501, for the number of concurrent that records current solid-state storage unit, when increasing a slice solid-state storage unit operations, described number of concurrent adds 1; When having a slice solid-state storage unit operations to complete, described number of concurrent subtracts 1.
Judging unit 502 is used for judging whether the number of concurrent of SSD solid-state storage unit is not less than preset value.
Performance element 503 when the number of concurrent that judgment result is that the solid-state storage unit of described judging unit 502 is not less than preset value, is used for suspending the read-write operation request of response main frame, the read-write operation request of preserving described main frame; During less than described preset value, be used for the read-write operation request of response main frame when the number of concurrent that judgment result is that the solid-state storage unit of described judging unit 502.
The embodiment of the present invention also provides a kind of system of solid state hard disc response main frame read-write operation request.
System embodiment one:
Referring to Fig. 6, this figure is the first example structure figure of system of the present invention.
System host 601 and the SSD602 of the solid state hard disc response main frame read-write operation request that the present embodiment provides.
Described main frame 601 is used for sending read-write operation request to described SSD602.
Described SSD602 is used for judging whether the number of concurrent of SSD solid-state storage unit is not less than preset value; When being not less than preset value, suspend the read-write operation request of response main frame 601, the read-write operation request of preserving described main frame 601; When less than preset value, continue the read-write operation request of response main frame 601.
The system of solid state hard disc that the embodiment of the present invention provides response main frame read-write operation request by monitoring solid-state storage unit number of concurrent so that control response to the read-write operation request of main frame, realize the restriction to the SSD maximum power dissipation.When the number of concurrent of solid-state storage unit is not less than preset value, suspend the response to the main frame read-write operation request, thus the maximum power dissipation of restriction SSD.Can guarantee the reliability of SSD like this.
Described SSD602 also is used for adjusting described preset value according to the read-write operation operation requests of main frame 601 and data distribution.The different application environment, different to the requirement of SSD performance and power consumption.Therefore, the preset value of maximum number of concurrent is not an absolute value.
Need to prove, method, the equipment and system of the solid state hard disc response main frame read-write operation request that the embodiment of the present invention provides, concrete steps and the mode of the read-write operation request of SSD execution main frame are same as the prior art, comprise command analysis, address mapping and data transmission etc.Do not repeat them here.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the said method embodiment is to come the relevant hardware of instruction to complete by program, described program can be stored in computer read/write memory medium, this program can comprise the content of aforesaid each embodiment of communication means when carrying out.Here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
In sum, the method of a kind of solid state hard disc response main frame read-write operation request that the embodiment of the present invention provides, the method of SSD that the embodiment of the present invention provides response main frame read-write operation request by monitoring solid-state storage unit number of concurrent so that control response to the read-write operation request of main frame, realize the restriction to the SSD maximum power dissipation.When the number of concurrent of solid-state storage unit is not less than preset value, suspend the response to the main frame read-write operation request, thus the maximum power dissipation of restriction SSD.Can guarantee the reliability of SSD like this.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to complete by program, described program can be stored in a computer read/write memory medium, this program comprises the steps: to judge whether the number of concurrent of solid-state storage unit is not less than preset value when carrying out; When being not less than preset value, suspend the read-write operation request of response main frame, preserve the read-write operation request of described main frame; Until described number of concurrent is during less than described preset value, then the read-write operation request of the described main frame preserved of response; When less than preset value, continue the read-write operation request of response main frame.