Summary of the invention
In view of this, the embodiment of the present invention provides a kind of information processing method and device, electronic equipment for solving in prior art at least one problem of existing, can the performance of dynamic auto balanced memory and the size of the actual usage space of storer, thus promote Consumer's Experience.
The technical scheme of the embodiment of the present invention is achieved in that
First aspect, the embodiment of the present invention provides a kind of information processing method, and described method comprises:
Detect storer, obtain the first information of the capacity status about described storer;
The described first information is sent to processor;
Receive the first instruction that described processor sends;
Resolve described first instruction, obtain the second information, wherein, described second information is at least determined based on the described first information;
First storage area of described storer is set based on described second information.
In an embodiment of the present invention, described first storage area is for storing the storage space of data in described storer.
In an embodiment of the present invention, described first storage area is used for the junk data process in storer.
In an embodiment of the present invention, described second information is determine based on the described first information and the 3rd information, and described 3rd information comprises the space allocation information forming described first storage area based on user's input operation.
In an embodiment of the present invention, described method also comprises:
Generate information based on the described first information, described information is for the scope of the 3rd information of pointing out user to input or numerical value.
Second aspect, the embodiment of the present invention provides a kind of signal conditioning package, it is characterized in that, described device comprises detecting unit, the first transmitting element, the first receiving element, resolution unit and setting unit, wherein:
Described detecting unit, for detecting storer, obtains the first information of the capacity status about described storer;
Described first transmitting element, for being sent to processor by the described first information;
Described first receiving element, for receiving the first instruction that described processor sends;
Described resolution unit, for resolving described first instruction, obtains the second information, and wherein, described second information is at least determined based on the described first information;
Described setting unit, for arranging the first storage area of described storer based on described second information.
In an embodiment of the present invention, described device also comprises: generation unit, and for generating information based on the described first information, described information is for the scope of the 3rd information of pointing out user to input or numerical value.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, it is characterized in that, described electronic equipment comprises the controller of processor, storer and storer, wherein:
Described controller, for detecting storer, obtains the first information of the capacity status about described storer; The described first information is sent to processor; Receive the first instruction that described processor sends; Resolve described first instruction, obtain the second information, wherein, described second information is at least determined based on the described first information; First storage area of described storer is set based on described second information;
Described processor, for receiving the described first information, determining described second information according to the described first information, described second information being carried in described first instruction, and described first instruction is sent to described controller.
Fourth aspect, the embodiment of the present invention provides a kind of information processing method, it is characterized in that, described method comprises:
Processor obtains the first information, and the described first information is for showing the capacity information of current occupied storer;
Described processor determines the second information according to the first information, and described second information is used for the junk data process in storer or stores data;
Described second information is carried in the first instruction by described processor, and described first instruction is sent to described controller, described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information.
5th aspect, the embodiment of the present invention provides a kind of signal conditioning package, and described device comprises acquiring unit, determining unit and carries unit, wherein:
Described acquiring unit, for obtaining the first information, the described first information is for showing the capacity information of current occupied storer;
Described determining unit, for determining the second information according to the first information, described second information is used for the junk data process in storer or stores data;
Describedly carry unit, for described second information is carried in the first instruction, and described first instruction is sent to described controller, described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information.
The information processing method that the embodiment of the present invention provides and device, electronic equipment, wherein: detect storer, obtain the first information of the capacity status about described storer; The described first information is sent to processor; Receive the first instruction that described processor sends; Resolve described first instruction, obtain the second information, wherein, described second information is at least determined based on the described first information; First storage area of described storer is set based on described second information; So, can the performance of dynamic auto balanced memory and the size of the actual usage space of storer, thus promote Consumer's Experience.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
Embodiment one
In order to the technical matters proposed in aforesaid background technology, the embodiment of the present invention provides a kind of information processing method, the method is applied to the controller of the storer in electronic equipment, the controller of the electronic equipment in the embodiment of the present invention at least processor, storer and storer, Fig. 1-1 is the realization flow schematic diagram of the embodiment of the present invention one information processing method, as Figure 1-1, this information processing method comprises:
Step 101, controller detects storer, obtains the first information of the capacity status about described storer;
Here, the storer in the embodiment of the present invention mainly refers to solid-state memory SSD, and its storage medium is NAND.The described first information can adopt the size of number percent or the actual storage space taken to represent, such as, the storer of 1000GB, the memory capacity of current storer occupies 100GB, so the first information can adopt 100GB to represent, also 10% can be adopted to represent, or both combinations.When the first information adopts 100GB or 10%, so processor needs the total volume can knowing or know in real time storer in advance.
Step 102, the described first information is sent to processor by controller;
Here, processor receives the first information that controller sends, and the described first information is for showing the capacity information of current occupied storer; Described processor determines the second information according to the first information, and described second information is used for the junk data process in storer or stores data; Described second information is carried in the first instruction by described processor, and described first instruction is sent to described controller, described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information.
Step 103, controller receives the first instruction that described processor sends;
Step 104, described first instruction resolved by controller, obtains the second information;
Wherein, described second information is at least determined based on the described first information;
Step 105, controller arranges the first storage area of described storer based on described second information.
Here, described first storage area is for storing the storage space of data in described storer, or described first storage area is used for the junk data process in storer.
In order to further illustrate the technical scheme that the embodiment of the present invention provides, the present embodiment introduce first in the reserved storage space of junk data process as garbage reclamation arrange to the performance of storer the difference that produces, the schematic diagram of the difference that Fig. 1-2 to Fig. 1-5 produces for the performance of reserved storage space different in the embodiment of the present invention to storer, as shown in Fig. 1-2 to Fig. 1-5, ordinate in figure represents the input and output number of times (IOPS) of p.s., abscissa representing time, unit is second; Fig. 1-2 is the size that reserved storage space is arranged is 7% of total storage space, and as can be seen from Fig. 1-2, the spot distribution of IOPS is scattered especially, and therefore the fluctuation ratio of IOPS write value is larger.Fig. 1-3 for size that reserved storage space is arranged be 12% of total storage space, as can be seen from Fig. 1-3, the spot distribution of IOPS is concentrated than Fig. 1-2, and the write value of IOPS is higher than Fig. 1-2 generally.Fig. 1-4 for size that reserved storage space is arranged be 25% of total storage space, as can be seen from Fig. 1-4, the spot distribution of IOPS is concentrated a lot than Fig. 1-2 and Fig. 1-3, and the write value of IOPS promotes a lot generally than Fig. 1-2 and Fig. 1-3, but IOPS had a flex point 141 at about 250 seconds, it is more severe that this flex point place IOPS declines, therefore, this flex point may produce certain influence to the life-span of storer, but as compared to Fig. 1-2 with Fig. 1-3, the impact that life-span produces is much smaller, because the whole IOPS fluctuation range of Fig. 1-2 and Fig. 1-3 is larger.Fig. 1-5 for size that reserved storage space is arranged be 50% of total storage space, as can be seen from Fig. 1-5, the spot distribution of IOPS is concentrated a lot than Fig. 1-2 and Fig. 1-3, and the write value of IOPS promotes a lot generally than Fig. 1-2 and Fig. 1-3, compared with Fig. 1-4, the lines of IOPS are smoother, and performance does not also decline, and write value also exceeds much than Fig. 1-2 to Fig. 1-4.As can be seen from Fig. 1-2 to Fig. 1-5, when the storage space taken in storer smaller (storage space such as taken is less than 25%), so illustrate in storer also very many for the space storing data, therefore can headspace larger (such as 25% or 50%) that can arrange a little, be conducive to the life-span of storer like this, and the write number of times of IOPS is also higher; When the storage space taken in storer is larger, the storage space such as taken is more than 50%, so illustrate in storer not many for the space storing data, therefore can headspace smaller (such as 12% or 25%) that can arrange a little, be conducive to the life-span of user storage data and storer like this.
In order to balance the space size of IOPS and the actual use of user, can relation according to Fig. 1-2 to Fig. 1-5, arrange one for showing occupied storage space (i.e. the first information) and for junk data process or the first list storing the mapping relations between data (the second information), therefore in the embodiment of the present invention, described processor determines the second information according to the first information, in the concrete process implemented, the first list that described processor can be preset according to first information inquiry, obtain the second information, the first information wherein in the first list and the second information are to a certain extent in inversely prroportional relationship.
The technical scheme that the embodiment of the present invention provides may be used for scene below, the data be used in storer with described second information are below stored as example, accordingly, described first storage area is for storing the storage space of data in storer, suppose that the space size of solid-state memory is 1000GB, suppose that the first information shows that the storage space of storer only occupies 10% (first information), i.e. 100GB, so also has 900GB, due to the storage space of storer take at present smaller, therefore, can by be used for junk data process as the storage space of garbage reclamation arrange larger, such as, 50% (the second information) of storer total volume is set.Then the first instruction carrying the second information is sent to controller by processor, and controller arranges storage space according to 50%, so remaining 40% space being junk data process.Wherein, the space of junk data process and the space of storage data are unappropriated storage space altogether.
The technical scheme that the embodiment of the present invention provides may be used for scene below, the junk data be used in storer with described second information is below treated to example, accordingly, described first storage area is the storage space for junk data process in storer, suppose that the space size of solid-state memory is 1000GB, suppose that the first information shows that the storage space of storer only occupies 10% (first information), i.e. 100GB, so also has 900GB, due to the storage space of storer take at present smaller, therefore, can by be used for junk data process as the reserved storage space of garbage reclamation arrange larger, such as, 50% (the second information) of storer total volume is set.Then the first instruction carrying the second information is sent to controller by processor, and controller arranges the space of junk data process according to 50%, and so remaining 40% is storage space.Wherein, the space of junk data process and the space of storage data are unappropriated storage space altogether.
In the embodiment of the present invention, detect storer, obtain the first information of the capacity status about described storer; The described first information is sent to processor; Receive the first instruction that described processor sends; Resolve described first instruction, obtain the second information, wherein, described second information is at least determined based on the described first information; First storage area of described storer is set based on described second information; So, can the performance of dynamic auto balanced memory and the size of the actual usage space of storer, thus promote Consumer's Experience.
Embodiment two
Based on aforesaid embodiment one, the embodiment of the present invention provides a kind of information processing method, the method is applied to the controller of the storer in electronic equipment, the controller of the electronic equipment in the embodiment of the present invention at least input equipment, processor, storer and storer, Fig. 2 is the realization flow schematic diagram of the embodiment of the present invention two information processing method, as shown in Figure 2, this information processing method comprises:
Step 201, controller detects storer, obtains the first information of the capacity status about described storer;
Step 202, the described first information is sent to processor by controller;
Step 203, processor receives the first information that controller sends;
Here, the described first information is for showing the capacity information of current occupied storer;
Step 204, input equipment receives first operation of user, and described first operation is used for arranging the 3rd information;
Here, described first input operation is different according to the type of electronic equipment, and such as, when electronic equipment is common personal computer, and when input equipment is mouse, the first input operation can be that user is by mouse clicking operation on video.When the display device of electronic equipment is touch-sensitive display screen (such as smart mobile phone, panel computer, desktop computer), wherein touch-sensitive display screen is also input equipment, first input operation can be the touch control operation of operating body, and wherein operating body comprises finger, pointer etc.It should be noted that, those skilled in the art can the concrete operations mode of self-defining first input operation.
Here, the way in the space of the first storage area in the SSD providing a kind of user flexibility to configure in the present embodiment, hands over a user right to choose, realizes the size on-the-fly modifying headspace according to user's request.By this method, different SSD capacity can be obtained, the result in performance and life-span.
Step 205, processor is based on described first operation acquisition the 3rd information;
Step 206, described processor determines the second information according to the first information and the 3rd information, and described second information is used for the junk data process in storer or stores data;
Here, described 3rd information comprises the space allocation information forming described first storage area based on user's input operation.Described 3rd information can adopt the form of number percent, or other show the parameter of the space size of the first storage area, such as high, neutralize low, for another example, first threshold, Second Threshold, the 3rd threshold value and the 4th threshold value, wherein, height refers to 60% of remaining storage space, in refer to 40% of remaining storage space, lowly refer to 20% of remaining storage space; First threshold refers to 60% of remaining storage space, and Second Threshold refers to 45% of remaining storage space, and the 3rd threshold value refers to that the 30%, four threshold value of remaining storage space refers to 15% of remaining storage space.
Step 207, described second information is carried in the first instruction by described processor;
Step 208, described first instruction is sent to described controller by described processor, and described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information.
Step 209, controller receives the first instruction that described processor sends;
Step 210, described first instruction resolved by controller, obtains the second information;
Wherein, described second information is determined based on the described first information and the 3rd information;
Step 211, controller arranges the first storage area of described storer based on described second information.
Here, described first storage area is for storing the storage space of data in described storer, or described first storage area is used for the junk data process in storer.
Embodiment three
Based on aforesaid embodiment one, the embodiment of the present invention provides a kind of information processing method, the method is applied to the controller of the storer in electronic equipment, the controller of the electronic equipment in the embodiment of the present invention at least input equipment, output device, processor, storer and storer, Fig. 3 is the realization flow schematic diagram of the embodiment of the present invention two information processing method, as shown in Figure 3, this information processing method comprises:
Step 301, controller detects storer, obtains the first information of the capacity status about described storer;
Step 302, controller generates information based on the described first information;
Here, described information is for the scope of the 3rd information of pointing out user to input or numerical value; In the concrete process implemented, the second list that controller is preset according to described first information inquiry, obtains scope or the numerical value of the 3rd information, then according to scope or the numerical generation information of the 3rd information, wherein the second list and the first list similar, therefore repeat no more.
Step 303, described information and the first information are sent to processor by controller;
Step 304, processor receives information and the first information of controller transmission;
Step 305, described information is exported by output device by processor;
Step 306, input equipment receives first operation of user, and described first operation is used for arranging the 3rd information based on described information;
Step 307, processor is based on described first operation acquisition the 3rd information;
Step 308, described processor determines the second information according to the first information and the 3rd information, and described second information is used for the junk data process in storer or stores data;
Here, described 3rd information comprises the space allocation information forming described first storage area based on user's input operation.
Step 309, described second information is carried in the first instruction by described processor;
Step 310, described first instruction is sent to described controller by described processor, and described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information.
Step 311, controller receives the first instruction that described processor sends;
Step 312, described first instruction resolved by controller, obtains the second information;
Wherein, described second information is at least determined based on the described first information;
Step 313, controller arranges the first storage area of described storer based on described second information.
Here, described first storage area is for storing the storage space of data in described storer, or described first storage area is used for the junk data process in storer.
Embodiment four
Based on aforesaid embodiment of the method, the embodiment of the present invention provides a kind of information handling system, this system comprises first information treating apparatus and the second signal conditioning package, wherein the first treating apparatus is realized by controller, second treating apparatus can be realized by processor, Fig. 4 is the composition structural representation of the embodiment of the present invention four information handling system, as shown in Figure 4, this first information treating apparatus 410 comprises detecting unit 411, first transmitting element 412, first receiving element 413, resolution unit 414 and setting unit 415, and the second signal conditioning package 420 comprises acquiring unit 421, determining unit 422 and carry unit 423, wherein:
Described detecting unit 411, for detecting storer, obtains the first information of the capacity status about described storer;
Described first transmitting element 412, for being sent to processor by the described first information;
Described acquiring unit 421, for obtaining the first information, the described first information is for showing the capacity information of current occupied storer;
Described determining unit 422, for determining the second information according to the first information, described second information is used for the junk data process in storer or stores data;
Describedly carry unit 423, for described second information is carried in the first instruction, and described first instruction is sent to described controller, described first instruction arranges the space of junk data process or the space of storage data for controlling described controller according to described second information;
Described first receiving element 413, for receiving the first instruction that described processor sends;
Described resolution unit 414, for resolving described first instruction, obtains the second information, and wherein, described second information is at least determined based on the described first information;
Described setting unit 415, for arranging the first storage area of described storer based on described second information.
Here, described first storage area is for storing the storage space of data in described storer.Or described first storage area is used for the junk data process in storer.
In the embodiment of the present invention, described second information is determine based on the described first information and the 3rd information, and described 3rd information comprises the space allocation information forming described first storage area based on user's input operation.
In the embodiment of the present invention, described first information treating apparatus also comprises: generation unit, and for generating information based on the described first information, described information is for the scope of the 3rd information of pointing out user to input or numerical value.
Here it is to be noted: the description of above device embodiment is similar with the description of said method embodiment, has the beneficial effect that same embodiment of the method is similar, does not therefore repeat.For the ins and outs do not disclosed in apparatus of the present invention embodiment, please refer to the description of the inventive method embodiment and understand, for saving length, therefore repeating no more.
Embodiment five
Based on aforesaid embodiment, the embodiment of the present invention provides a kind of electronic equipment, and Fig. 5 is the composition structural representation of the embodiment of the present invention five electronic equipment, as shown in Figure 5, this electronic equipment 500 comprises the controller 503 of processor 501, storer 502 and storer, wherein:
Described controller 503, for detecting storer, obtains the first information of the capacity status about described storer; The described first information is sent to processor; Receive the first instruction that described processor sends; Resolve described first instruction, obtain the second information, wherein, described second information is at least determined based on the described first information; First storage area of described storer is set based on described second information;
Described processor 502, for receiving the described first information, determining described second information according to the described first information, described second information being carried in described first instruction, and described first instruction is sent to described controller.
In the embodiment of the present invention, described first storage area is for storing the storage space of data in described storer, or described first storage area is used for the junk data process in storer.
In the embodiment of the present invention, described second information is determine based on the described first information and the 3rd information, and described 3rd information comprises the space allocation information forming described first storage area based on user's input operation.
In the embodiment of the present invention, described controller, also for generating information based on the described first information, described information is for the scope of the 3rd information of pointing out user to input or numerical value.
In the embodiment of the present invention, described processor, also for the first response that described controller sends, described first response is used for showing that described controller has executed described first instruction;
Described processor controls electronic equipment shutdown or restarts.
In the embodiment of the present invention, described processor, work is carried out in the space also for the garbage reclamation of specifying according to the second information.
Here it is to be noted: the description of above electronic equipment embodiment item, it is similar for describing with said method, has the beneficial effect that same embodiment of the method is identical, does not therefore repeat.For the ins and outs do not disclosed in electronic equipment embodiment of the present invention, those skilled in the art please refer to the description of the inventive method embodiment and understands, and for saving length, repeats no more here.
Should be understood that during instructions in the whole text that " embodiment " or " embodiment " mentioned means that the special characteristic relevant with embodiment, structure or characteristic comprise at least one embodiment of the present invention.Therefore, " in one embodiment " or " in one embodiment " that occur everywhere at whole instructions does not necessarily refer to identical embodiment.In addition, these specific feature, structure or characteristics can combine in one or more embodiments in any suitable manner.Should understand, in various embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location; Both can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, ROM (read-only memory) (ReadOnlyMemory, ROM), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, ROM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.