Summary of the invention
In view of this, this application provides a kind of collocation method and device and solid state hard disc, to realize the size more reasonably configuring headspace in SSD.
For achieving the above object, the application provides following technical scheme: a kind of collocation method, comprising:
Solid state hard disc receives operation information, and described solid state hard disc comprises the first storage space and the second storage space;
When operation information meets pre-conditioned, based on described operation information, described second storage space is configured; Described second storage space is used for being optimized operation to described solid state hard disc.
Preferably, described operation information comprises: the operational order that main frame issues;
Described operation information meets pre-conditioned, comprising:
Described operational order is default modify instruction, and described modify instruction is used to indicate described solid state hard disc and is configured described second storage space.
Preferably, described modify instruction comprises the object space capacity of described second storage space;
Based on described operation information, described second storage space is configured then, comprises:
The spatial content of described second storage space is configured to described object space capacity.
Preferably, described solid state hard disc receives operation information, comprising:
Solid state hard disc obtains the operation behavior information of user, and wherein, described operation behavior information generates the operation note of solid state hard disc based on user;
Then, described when operation information meets pre-conditioned, based on described operation information, described second storage space is configured, comprises:
When described operation behavior information belongs to default behavior classification, based on the behavior classification belonging to described operation behavior information, determine the allocation plan of described second storage space;
Based on described allocation plan, configure the memory capacity of described second storage space.
Preferably, described based on described operation information described second storage space to be configured after, also comprise:
Obtain user to the operation note of described solid state hard disc;
Based on described operation note generating run behavioural information;
If described operation behavior information belongs to default behavior classification, then the memory capacity of described second storage space is adjusted to the target memory capacity matched with described behavior classification.
Preferably, also comprise:
Main frame is informed to by the configuration result of described second storage space.
On the other hand, present invention also provides a kind of inking device, be applied to solid state hard disc, described device comprises:
Information receiving unit, for receiving operation information, described solid state hard disc comprises the first storage space and the second storage space, and described second storage space is used for being optimized operation to described solid state hard disc;
Space matching unit, for when operation information meets pre-conditioned, is configured described second storage space based on described operation information.
Preferably, described information receiving unit, comprising:
Receives information subelement, for receiving operation information, described operation information comprises: the operational order that main frame issues;
Described space matching unit, comprising:
First configuration subelement, for when described operational order is default modify instruction, be configured described second storage space based on described operation information, described modify instruction is used to indicate described solid state hard disc and is configured described second storage space.
Preferably, described modify instruction comprises the object space capacity of described second storage space;
Then described first configuration subelement, comprising:
Capacity configuration subelement, for when described operational order is default modify instruction, is configured to described object space capacity by the spatial content of described second storage space.
Preferably, described information receiving unit, comprising:
Acquisition of information subelement, for obtaining the operation behavior information of user, wherein, described operation behavior information generates the operation note of solid state hard disc based on user;
Then, described space matching unit, comprising:
Scheme subelement, for when described operation behavior information belongs to default behavior classification, based on the behavior classification belonging to described operation behavior information, determines the allocation plan of described second storage space;
Second configuration subelement, for based on described allocation plan, configures the memory capacity of described second storage space.
Preferably, also comprise:
Record acquiring unit, after being configured described second storage space based on described operation information at described first configuration subelement, obtains user to the operation note of described solid state hard disc;
Behavior generation unit, for based on described operation note generating run behavioural information;
Capacity adjustment unit, if belong to default behavior classification for described operation behavior information, is then adjusted to the target memory capacity matched with described behavior classification by the memory capacity of described second storage space.
Preferably, also comprise:
Result notification unit, for informing to main frame by the configuration result of described second storage space.
On the other hand, present invention also provides a kind of solid state hard disc, comprising:
Controller, the first storage space and the second storage space, described second storage space is used for being optimized operation to described solid state hard disc;
Wherein, described controller, for receiving operation information; When operation information meets pre-conditioned, based on described operation information, described second storage space is configured.
Preferably, the described operation information that described controller receives comprises: the operational order that main frame issues;
Described operation information meets pre-conditioned, comprising:
Described operational order is default modify instruction, and described modify instruction is used to indicate described solid state hard disc and is configured described second storage space.
Preferably, described controller receives operation information and is specially: described controller obtains the operation behavior information of user, and wherein, described operation behavior information generates the operation note of solid state hard disc based on user;
Then, when operation information meets pre-conditioned, described controller is configured described second storage space based on described operation information, is specially:
When described operation behavior information belongs to default behavior classification, described controller, based on the behavior classification belonging to described operation behavior information, determines the allocation plan of described second storage space; Based on described allocation plan, configure the memory capacity of described second storage space.
Preferably, described controller also for, after based on described operation information described second storage space being configured, obtain user to the operation note of described solid state hard disc; Based on described operation note generating run behavioural information; If described operation behavior information belongs to default behavior classification, then the memory capacity of described second storage space is adjusted to the target memory capacity matched with described behavior classification.
Known via above-mentioned technical scheme, if the operation information that solid state hard disc receives meets pre-conditioned, then based on this operation information, this second storage space is configured, thus achieve this second storage space of dynamic-configuration, be conducive to the size rationally realizing reasonably configuration the second storage space.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
See Fig. 1, it illustrates the schematic flow sheet of a kind of collocation method of the application embodiment, the method for the present embodiment can be applied to solid-state hard disk SSD, and the method comprises:
101, solid state hard disc receives operation information.
This solid state hard disc comprises the first storage space and the second storage space.
Wherein, this first storage space is the storage space of user-operable.
This second storage space is the storage space that can not be user-operably, and this second storage space is used for being optimized operation to described solid state hard disc.As, the second storage space can be used for carrying out the Optimum Operations such as garbage reclamation, wear leveling and managing damage block.
102, when operation information meets pre-conditioned, based on this operation information, this second storage space is configured.
Inventor finds through research, and in existing SSD, the size of this second storage space is fixing, and can not be adjusted, and like this, if the second storage space setting is too small, then may have influence on Optimum Operation, and then the memory property of mutually required SSD.But when the total storage space of SSD is fixing, if the second storage space setting is excessive, then the spendable storage space of user will diminish, thus corresponding user stores operation normally.That is, in any case configure the size of the second storage space in SSD, all in the performance of SSD and balance can cannot be reached between usage space.
On the basis that above research finds, inventor is by studying discovery further, if the demand of the storage space according to actual desired properties or required use, the size of dynamic-configuration second storage space, the second storage space configured then can be made to meet current performance and storage demand, thus can solve existing cannot the problem of equalization performance and free space.Therefore, in the embodiment of the present application, when the operation information received meets pre-conditioned, can be configured the second storage space, to be conducive to the size of reasonable disposition second storage space.
In the embodiment of the present application, if the operation information that solid state hard disc receives meets pre-conditioned, then based on this operation information, this second storage space is configured, thus achieves this second storage space of dynamic-configuration, be conducive to the size rationally realizing reasonably configuration the second storage space.
It should be noted that, being configured this second storage space based on operation information to have multiple situation, as can be the size redefining the second storage space, and configures the capacity of this second storage space; And for example, also can be determine adjustment amount, this adjustment amount comprises the size of the storage space that the second storage space needs are removed, such as, adjustment amount can be 2G, then need the memory capacity the second storage space being reduced 2G from the basis of original storage space, with the memory capacity making the capacity of the first storage space increase 2G on the basis of original storage space; Adjustment amount can also comprise the size of the storage space that the second storage space needs increase.
It should be noted that, in the embodiment of the present application, the operation information that SSD receives can have multiple, and e.g., can be the information that the processor of main frame is handed down to this SSD, also can be the information that SSD self monitors or generates.
Below the different situations of the operation information that SSD receives are introduced.
See Fig. 2, it illustrates the schematic flow sheet of a kind of another embodiment of collocation method of the application, the method for the present embodiment is applied to SSD equally, and the method can comprise:
201, the operational order that solid-state hard disk SSD Receiving Host issues.
202, when this operational order is default modify instruction, then based on this operational order, this second storage space is configured.
Wherein, this modify instruction is used to indicate this solid state hard disc and is configured this second storage space.
In the embodiment of the present application, main frame can issue modify instruction for being configured this second storage space to SSD, if SSD receives this modify instruction, then can trigger and be configured its second storage space.
Wherein, can have equally the opportunity that main frame issues this modify instruction multiple may situation.
When a kind of possible, main frame is when starting, and can send modify instruction to this SSD, thus be that the second storage space configures corresponding space size.
When another kind is possible, main frame is in the process run, and find that the data that configuration capacity that in this SSD, the second storage space is current is not suitable for main frame store, then main frame also can send modify instruction.As, user sends the target instruction target word indicating and modify to the second storage space in SSD to main frame, then main frame generates modify instruction, and this instruction is sent to the controller of SSD, so that SSD controller responds this modify instruction, reconfigure this space size corresponding to the second storage space.And for example, in Host Detection SSD, the space size of the current configuration of the second storage space is not suitable for the current running environment of main frame, then to SSD controller sending controling instruction.
In the present embodiment, modify instruction is issued to SSD by main frame, carry out control SSD to be configured the second storage space, to realize dynamic-configuration second storage space, be conducive to making the second storage space to meet consumers' demand or to meet main frame operation demand, and then make the configuration of the second storage space more reasonable.
Meanwhile, in the present embodiment, user also according to use habit, can issue corresponding modify instruction by main frame to SSD, makes the second storage space configured meet the use habit of user.
Be understandable that, issuing modify instruction at main frame to SSD configures in the embodiment of the second storage space to control SSD, this modify instruction can comprise the amount to be adjusted of the second storage space, as the second storage space needs the capability value of capability value or the second storage space needs minimizing increased.
Optionally, can comprise the object space capacity of this second storage space in this modify instruction, this object space capacity is the capacity that this second storage space finally needs to be configured to.Then to based on modify instruction, the second storage space is configured and can be comprised: the spatial content of this second storage space is configured to object space capacity.Such as, object space capacity is 10G, then need the spatial content of configuration second storage space to be 10G.
See Fig. 3, it illustrates the schematic flow sheet of a kind of another embodiment of collocation method of the application, the method for the present embodiment is applied to SSD controller equally, and the method can comprise:
301, obtain the operation behavior information of user.
This operation behavior information generates the operation note of solid state hard disc based on user.
Wherein, the operation behavior record of this user can be undertaken recording by the controller of SSD and add up and obtains; Also can be by main frame according to data access situation in the past, the operation behavior record of generation, and be handed down to this SSD's.
302, when this operation behavior information belongs to default behavior classification, based on the behavior classification belonging to this operation behavior information, determine the allocation plan of this second storage space.
Be understandable that, the operation behavior information of user can symbolize the conditions of demand of user to SSD, as, the operation behavior record of user can comprise this user and apply to each of main frame data produced in process operated, so the application of user operation is different, and user also can be different to the demand of the memory property of SSD.Such as, user opens game application and goes forward side by side in the process of line operate, and the requirement of user to performance is higher; And if user opens is applied as document, then user may be lower to the requirement of performance, but may require higher to the Optimum Operation of SSD.
Wherein, this behavior type preset can have multiple, and the different allocation plans corresponding to behavior classification is different.Such as, behavior classification can be office behavior, game behavior, amusement behavior etc.Allocation plan corresponding to different behavior types also can set as required.Such as, in the allocation plan of game behavior, the spatial content of the second storage space can point relatively, with ensure user can the capacity relative of the first storage space larger.
Can determine which class behavior classification is operation behavior information belong to, and just can determine corresponding allocation plan according to the critical data in operation behavior information.
303, based on this allocation plan, configure the memory capacity of this second storage space.
In the present embodiment according to the operation behavior information of the user got, by the study of the operation behavior information to user, analyze the demand of the performance of user SSD, and the capacity of the second storage space in dynamic conditioning SSD, be conducive to the operational requirements that reasonable disposition second storage space meets user.
Be understandable that, in actual applications, main frame can be issued operational order to the configuration of control SSD to the second storage space to SSD, the configuration carrying out dynamic conditioning second storage space with the operation behavior information based on user combines, and comprehensively these two kinds because of usually dynamic conditioning second storage space.
See Fig. 4, can it illustrates the schematic flow sheet of a kind of another embodiment of collocation method of the application, the method for the present embodiment can comprise:
401, solid-state hard disk SSD receives operation information.
Wherein, this operation information comprises: the operational order that this main frame issues.
402, when this operational order is default modify instruction, then based on this operation information, this second storage space is configured.
Wherein, this modify instruction is used to indicate this solid state hard disc and is configured this second storage space.
403, obtain user to the operation note of this solid state hard disc.
404, based on this operation note generating run behavioural information.
In the present embodiment, after second storage space of main frame to SSD has been configured, the operation note of SSD meeting user in real, to analyze the operation behavior information of user, so that the use habit of subsequent analysis user, has determined the demand of user to SSD performance.
405, if this operation behavior information belongs to default behavior classification, then the memory capacity of this second storage space is adjusted to the behavior target memory capacity that matches of classification.
This step to above 302 associated description similar, specifically can set behavior classification and target memory capacity corresponding to behavior classification as required.
Be understandable that, in the embodiment of any one collocation method above, after the second storage space is configured, main frame can also be informed to, with the configuring condition making main frame can know the first storage space and the second storage space in SSD by the configuration result of this second storage space.
Further, in any one embodiment above, after the second storage space is configured, after main frame is restarted, indicates this SSD based on the capability value of the second storage space after reconfiguring, be optimized operation.
A kind of collocation method of corresponding the application, present invention also provides a kind of inking device.
See Fig. 5, it illustrates the structural representation of a kind of inking device of the application embodiment, the device of the present embodiment can be applied to solid state hard disc, and described device comprises:
Information receiving unit 501, for receiving operation information, described solid state hard disc comprises the first storage space and the second storage space, and described second storage space is used for being optimized operation to described solid state hard disc.;
Space matching unit 502, for space when operation information meets pre-conditioned, is configured described second storage space based on described operation information.
In the embodiment of the present application, if the operation information that solid state hard disc receives meets pre-conditioned, then based on this operation information, this second storage space is configured, thus achieves this second storage space of dynamic-configuration, be conducive to the size rationally realizing reasonably configuration the second storage space.
See Fig. 6, it illustrates the structural representation of a kind of another embodiment of collocation method of the application, the device of the present embodiment and the difference of preceding embodiment are:
In the present embodiment, this information receiving unit 501, can comprise:
Receives information subelement 5011, for receiving operation information, described operation information comprises: the operational order that main frame issues;
Described space matching unit 502, comprising:
First configuration subelement 5021, for when described operational order is default modify instruction, be configured described second storage space based on described operation information, described modify instruction is used to indicate described solid state hard disc and is configured described second storage space.
Further, in the present embodiment, described modify instruction comprises the object space capacity of described second storage space;
Then described first configuration subelement, can comprise:
Capacity configuration subelement, for when described operational order is default modify instruction, is configured to described object space capacity by the spatial content of described second storage space.
Optionally, in the present embodiment, this device can also comprise:
Record acquiring unit, after being configured described second storage space based on described operation information at described first configuration subelement, obtains user to the operation note of described solid state hard disc;
Behavior generation unit, for based on described operation note generating run behavioural information;
Capacity adjustment unit, if belong to default behavior classification for described operation behavior information, is then adjusted to the target memory capacity matched with described behavior classification by the memory capacity of described second storage space.
See Fig. 7, it illustrates the structural representation of a kind of another embodiment of collocation method of the application, the difference of the present embodiment and preceding embodiment is:
This information receiving unit 501, can comprise:
Acquisition of information subelement 5012, for obtaining the operation behavior information of user, wherein, described operation behavior information generates the operation note of solid state hard disc based on user;
Then, described space matching unit 502, comprising:
Scheme subelement 5022, for when described operation behavior information belongs to default behavior classification, based on the behavior classification belonging to described operation behavior information, determines the allocation plan of described second storage space;
Second configuration subelement 5023, for based on described allocation plan, configures the memory capacity of described second storage space.
Optionally, more than the application any one device embodiment in, this device can also comprise:
Result notification unit, for informing to main frame by the configuration result of described second storage space.
On the other hand, present invention also provides a kind of solid state hard disc.
See Fig. 8, it illustrates the structural representation of a kind of solid state hard disc of the application embodiment, the solid state hard disc 8 of the present embodiment can comprise:
Controller 801, first storage space 802 and the second storage space 803.
Wherein, described second storage space 803 is for being optimized operation to described solid state hard disc;
Wherein, described controller 801 is for receiving operation information; When operation information meets pre-conditioned, based on described operation information, described second storage space is configured.
It should be noted that, first storage space and the second storage space are two independently storage spaces in fig. 8, but this first storage space and the second storage space can be respectively two parts storage area of the storage space of same storage medium in actual applications.
In the present embodiment, if it is pre-conditioned that the controller of solid state hard disc determines that the operation information received meets, then based on this operation information, this second storage space is configured, thus achieve this second storage space of dynamic-configuration, be conducive to the size rationally realizing reasonably configuration the second storage space.
Optionally, the described operation information that described controller receives is specially: the operational order that main frame issues;
Described operation information meets pre-conditioned, comprising:
Described operational order is default modify instruction, and described modify instruction is used to indicate described solid state hard disc and is configured described second storage space.
Optionally, described controller receives operation information, comprising: described controller obtains the operation behavior information of user, and wherein, described operation behavior information generates the operation note of solid state hard disc based on user;
Then, when operation information meets pre-conditioned, described controller is configured described second storage space based on described operation information, is specially:
When described operation behavior information belongs to default behavior classification, described controller, based on the behavior classification belonging to described operation behavior information, determines the allocation plan of described second storage space; Based on described allocation plan, configure the memory capacity of described second storage space.
Optionally, described controller also for, after based on described operation information described second storage space being configured, obtain user to the operation note of described solid state hard disc; Based on described operation note generating run behavioural information; If described operation behavior information belongs to default behavior classification, then the memory capacity of described second storage space is adjusted to the target memory capacity matched with described behavior classification.
Optionally, described modify instruction comprises the object space capacity of described second storage space;
Then described controller to be configured described second storage space based on described operation information and to be specially:
The spatial content of described second storage space is configured to described object space capacity.
Optionally, described solid state hard disc also for: inform to main frame by the configuration result of described second storage space.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.