CN105373350A - Data management method and device - Google Patents

Data management method and device Download PDF

Info

Publication number
CN105373350A
CN105373350A CN201510815574.9A CN201510815574A CN105373350A CN 105373350 A CN105373350 A CN 105373350A CN 201510815574 A CN201510815574 A CN 201510815574A CN 105373350 A CN105373350 A CN 105373350A
Authority
CN
China
Prior art keywords
data
loss value
data storage
state parameter
storage cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510815574.9A
Other languages
Chinese (zh)
Inventor
张红蕾
谢晓辉
李志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing legend core technology Co., Ltd.
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510815574.9A priority Critical patent/CN105373350A/en
Publication of CN105373350A publication Critical patent/CN105373350A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

The invention discloses a data management method, which comprises the following steps: detecting the state parameters of N memory cells in a memory, wherein the state parameters comprise a first state parameter and a second state parameter, the first state parameter is associated with the use level of the memory, and the second state parameter is associated with the data storage time of the N memory cells; on the basis of the state parameters, determining the loss values of the N memory units; and on the basis of the loss values, processing data in the memory units. The invention also simultaneously discloses a data management device. The technical scheme of the invention can reduce refreshing amounts, guarantees a reading speed and improves the use experience of users.

Description

A kind of data managing method and device
Technical field
The present invention relates to memory technology field, be specifically related to a kind of data managing method and device.
Background technology
Solid state hard disc (SSD, SolidStateDrives) file reading speed for a long time will sharply decline the upper resting period, its main cause is that the data saving unit of not accessing for a long time is constant, the charging charge of data saving unit can be decayed in time, SSD is caused constantly to read-retry when obtaining correct data, make the reading time elongated, and then result in the decline of overall reading performance.But, when this situation only can occur in interior data storage unit without data variation, if the data of this unit are moved subsequently or have been written, a problem of hydraulic performance decline would not be had
Existing solution is generally, by timing (such as every month), the block do not write is performed once refreshing (namely read out, rewrite a time); But this solution does not fundamentally solve the problem that overall reading performance declines, because compulsory refresh data will relate to the rewriting of all data, so when data volume is larger, can be more time-consuming.
Summary of the invention
In view of this, the present invention expects to provide a kind of data managing method and device, can reduce the quantity refreshed, and ensure reading speed, improves the experience of user.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of data managing method, described method comprises:
Detect the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
The loss value of described N number of storage unit is determined based on state parameter;
Based on described loss value, the data in described storage unit are processed.
In such scheme, preferably, described first state parameter is for the erasing times that characterizes current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
In such scheme, preferably, the described loss value determining described N number of storage unit based on state parameter, comprising:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
In such scheme, preferably, describedly based on described loss value, the data in described storage unit to be processed, comprising:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
In such scheme, preferably, described meet first pre-conditioned time, between data storage cell, carry out data exchange operation, comprising:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
In such scheme, preferably, described meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations, comprising:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
In such scheme, preferably, described method also comprises:
If do not carry out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
Present invention also offers a kind of data administrator, described device comprises:
Sensor, for detecting the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
First processor, for determining the loss value of described N number of storage unit based on state parameter;
Second processor, for processing the data in described storage unit based on described loss value.
In such scheme, preferably, described first state parameter is for the erasing times that represents current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
In such scheme, preferably, described first processor, also for:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
In such scheme, preferably, described second processor, also for:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
In such scheme, preferably, described second processor, also for:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
In such scheme, preferably, described second processor, also for:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
In such scheme, preferably, described device also comprises:
3rd processor, if for not carrying out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
The data managing method that the embodiment of the present invention provides and device, detect the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time; The loss value of described N number of storage unit is determined based on state parameter; Based on described loss value, the data in described storage unit are processed; So, the quantity refreshed can be reduced, and ensure reading speed, improve the experience of user.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram one of embodiment of the present invention data managing method;
Fig. 2 is the realization flow schematic diagram two of embodiment of the present invention data managing method;
Fig. 3 is the structural representation one of embodiment of the present invention data administrator;
Fig. 4 is the structural representation two of embodiment of the present invention data administrator;
Fig. 5 is the structural representation three of embodiment of the present invention data administrator.
Embodiment
In order to more at large understand feature of the present invention and technology contents, below in conjunction with accompanying drawing, realization of the present invention is described in detail, the use of appended accompanying drawing explanation only for reference, is not used for limiting the present invention.
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
Embodiment one
Fig. 1 is the realization flow schematic diagram one of embodiment of the present invention data managing method, is applied in SSD, and in a preferred embodiment of the invention, described data managing method mainly comprises the following steps:
Step 101: the state parameter detecting N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time.
Preferably, N is positive integer.
Preferably, described first state parameter is for the erasing times that characterizes current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
Step 102: the loss value determining described N number of storage unit based on state parameter.
Preferably, the described loss value determining described N number of storage unit based on state parameter, comprising:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
Wear leveling (WL of the prior art, WearLeveling) factor that algorithm is considered is only the erasable number of times of each piece and the erasable number of times of whole piece, here, block refers to storage unit, and not considering that distance write data to now last time, the present invention considers time factor when select storage unit carries out exchanges data.
Concrete, the computing formula of loss value is:
w i=α iEC iit i
Wherein, α irepresent the first weight parameter, β irepresent the second weight parameter; EC irepresent the first state parameter, t irepresent the second state parameter; α i+ β i=fixed value.
Concrete, when the time interval of distance last write current memory cell data is less, weight beta iless, now, erasing times plays an important role to select storage unit.
Concrete, when the time interval of distance last write current memory cell data is larger, weight beta icomparatively large, and α iless, now, time factor plays even more important decisive action to select storage unit.
Step 103: the data in described storage unit are processed based on described loss value.
Preferably, describedly based on described loss value, the data in described storage unit to be processed, can comprise:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
In such scheme, preferably, described meet first pre-conditioned time, between data storage cell, carry out data exchange operation, can comprise:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
In such scheme, preferably, described meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations, can comprise:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
Data managing method described in the present embodiment, detect the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time; The loss value of described N number of storage unit is determined based on state parameter; Based on described loss value, the data in described storage unit are processed; So, consider time factor when computed losses value, the quantity refreshed can be reduced, and ensure reading speed, improve the experience of user.
Embodiment two
Fig. 2 is the realization flow schematic diagram two of embodiment of the present invention data managing method, is applied in SSD, and in a preferred embodiment of the invention, described data managing method mainly comprises the following steps:
Step 201: the state parameter detecting N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time.
Preferably, described first state parameter is for the erasing times that characterizes current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
Step 202: the loss value determining described N number of storage unit based on state parameter.
Preferably, the described loss value determining described N number of storage unit based on state parameter, comprising:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
Wherein, first weight parameter the+the second weight parameter=fixed value, such as, described fixed value is 1.
Here, described fixed value can set according to actual needs.
Step 203: the data in described storage unit are processed based on described loss value.
Here, described process refers to carries out equalization operation.
Particularly, based on described loss value, the data in described storage unit are processed, can comprise:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
That is, when carrying out equalization operation, exchanges data can be carried out between data storage cell and data storage cell, also can by the data-moving in data storage cell in free memory locations.
Step 204: if do not carry out equalization operation to the data in the first data storage cell in schedule time threshold range, then write the minimum free memory locations of current drain value by the data of described first data storage cell or minimum data storage cell carries out exchanges data with current drain value.
Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
Data managing method described in the present embodiment, if (such as limit one month) in schedule time threshold value, data are not still carried out exchanges data by equalization operation, then force to refresh, and carry out data-moving operation, to ensure the reading speed of data.
Embodiment three
Fig. 3 is the structural representation one of embodiment of the present invention data administrator, and as shown in Figure 3, described data administrator comprises:
Sensor 31, for detecting the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
First processor 32, for determining the loss value of described N number of storage unit based on state parameter;
Second processor 33, for processing the data in described storage unit based on described loss value.
Preferably, described first state parameter is for the erasing times that represents current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
Particularly, described sensor 31 can be arranged at the outside surface of described data administrator or described data administrator place equipment, or can be arranged at the inside of described data administrator or described data administrator place equipment.
Preferably, described first processor 32, also for:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
Wherein, first weight parameter the+the second weight parameter=fixed value, such as, described fixed value is 1.
Preferably, described second processor 33, also for:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
In a concrete sub-embodiment, described second processor 33, also for:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
In a concrete sub-embodiment, described second processor 33, also for:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
Described in the present embodiment, data managing method can be applicable in SSD.
Those skilled in the art are to be understood that, the function of each device in the data administrator of the embodiment of the present invention, can refer to the associated description of aforementioned data management method and understand, each device in the data administrator of the embodiment of the present invention, realizing by realizing the mimic channel of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Data administrator described in the present embodiment, considering time factor when carrying out wear leveling operation, can reduce the quantity refreshed, and ensureing reading speed, improve the experience of user.
Embodiment four
Fig. 4 is the structural representation two of embodiment of the present invention data administrator, and as shown in Figure 4, described data administrator comprises:
Sensor 31, for detecting the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
First processor 32, for determining the loss value of described N number of storage unit based on state parameter;
Second processor 33, for processing the data in described storage unit based on described loss value;
3rd processor 34, if for not carrying out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
Preferably, described first state parameter is for the erasing times that represents current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
Particularly, described sensor 31 can be arranged at the outside surface of described data administrator or described data administrator place equipment, or can be arranged at the inside of described data administrator or described data administrator place equipment.
Preferably, described first processor 32, also for:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
Wherein, first weight parameter the+the second weight parameter=fixed value, such as, described fixed value is 1.
Here, described fixed value can set according to actual needs.
Preferably, described second processor 33, also for:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
In a concrete sub-embodiment, described second processor 33, also for:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
In a concrete sub-embodiment, described second processor 33, also for:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
Described in the present embodiment, data managing method can be applicable in SSD.
Those skilled in the art are to be understood that, the function of each device in the data administrator of the embodiment of the present invention, can refer to the associated description of aforementioned data management method and understand, each device in the data administrator of the embodiment of the present invention, realizing by realizing the mimic channel of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Data administrator described in the present embodiment, if (such as limit one month) in schedule time threshold value, data are not still carried out exchanges data by equalization operation, then force to refresh, and carry out data-moving operation, to ensure the reading speed of data.
Embodiment five
Fig. 5 is the structural representation three of embodiment of the present invention data administrator, and as shown in Figure 5, described data administrator comprises:
Detecting unit 51, for detecting the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
Determining unit 52, for determining the loss value of described N number of storage unit based on state parameter;
Processing unit 53, for processing the data in described storage unit based on described loss value.
Preferably, described first state parameter is for the erasing times that represents current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
Preferably, describedly determine single 52 yuan, comprising:
First obtains subelement 521, for obtain each storage unit the first state parameter corresponding to the first weight parameter;
Second obtains subelement 522, for obtain each storage unit the second state parameter corresponding to the second weight parameter;
Determine subelement 523, for determining the loss value of each storage unit according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
Wherein, first weight parameter the+the second weight parameter=fixed value, such as, described fixed value is 1.
Here, described fixed value can set according to actual needs.
Preferably, described processing unit 53, comprising:
First process subelement 531, for meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Second process subelement 532, for meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
Preferably, described first process subelement 531, also for:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
Preferably, described second process subelement 532, also for:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
Preferably, described processing unit 53, also comprises:
3rd process subelement 533, if for not carrying out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
Described in the present embodiment, data managing method can be applicable in SSD.
Those skilled in the art are to be understood that, the function of each unit in the data administrator of the embodiment of the present invention, can refer to the associated description of aforementioned data management method and understand, each unit in the data administrator of the embodiment of the present invention, realizing by realizing the mimic channel of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Each subelement of detecting unit 51 in described data administrator, determining unit 52, processing unit 53 and determining unit 52, each subelement of processing unit 53; In actual applications all can by the central processing unit (CPU in described data administrator or described data administrator corresponding device, CentralProcessingUnit), digital signal processor (DSP, or the realization such as programmable gate array (FPGA, FieldProgrammableGateArray) DigitalSignalProcessor).
Data administrator described in the present embodiment, considering time factor when carrying out wear leveling operation, can reduce the quantity refreshed, and ensureing reading speed, improve the experience of user; If (such as limit one month) in schedule time threshold value, data are not still carried out exchanges data by equalization operation, then force to refresh, and carry out data-moving operation, to ensure the reading speed of data.
In several embodiment provided by the present invention, should be understood that, disclosed method, device and electronic equipment, 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, namely 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 a 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) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the embodiment 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, RAM, 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.

Claims (14)

1. a data managing method, is characterized in that, described method comprises:
Detect the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
The loss value of described N number of storage unit is determined based on state parameter;
Based on described loss value, the data in described storage unit are processed.
2. the method according to claim l, is characterized in that, described first state parameter is for the erasing times that characterizes current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
3. the method according to claim l, is characterized in that, the described loss value determining described N number of storage unit based on state parameter, comprising:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
4. method according to claim 1, is characterized in that, describedly processes the data in described storage unit based on described loss value, comprising:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
5. method according to claim 4, is characterized in that, described meet first pre-conditioned time, between data storage cell, carry out data exchange operation, comprising:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
6. method according to claim 4, is characterized in that, described meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations, comprising:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
7. method according to claim 1, is characterized in that, described method also comprises:
If do not carry out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
8. a data administrator, is characterized in that, described device comprises:
Sensor, for detecting the state parameter of N number of storage unit in storer, wherein, described state parameter comprises first state parameter relevant to described storer usage degree, and second state parameter relevant to described N number of memory cell data storage time;
First processor, for determining the loss value of described N number of storage unit based on state parameter;
Second processor, for processing the data in described storage unit based on described loss value.
9. device according to claim 8, is characterized in that, described first state parameter is for the erasing times that represents current memory cell and/or the cold and hot degree of data stored; Described second state parameter is for representing the time interval of distance last write current memory cell data.
10. device according to claim 8, is characterized in that, described first processor, also for:
Obtain first weight parameter corresponding to the first state parameter of each storage unit;
Obtain second weight parameter corresponding to the second state parameter of each storage unit;
The loss value of each storage unit is determined according to the first state parameter, the first weight parameter, the second state parameter, the second weight parameter;
Wherein, the computing formula of loss value is:
Loss value=the first weight parameter * first state parameter+the second weight parameter * second state parameter.
11. devices according to claim 8, is characterized in that, described second processor, also for:
Meet first pre-conditioned time, between data storage cell, carry out data exchange operation; Or,
Meet second pre-conditioned time, by the data-moving in data storage cell in free memory locations.
12. devices according to claim 11, is characterized in that, described second processor, also for:
When difference between the maximum loss value in data storage cell and the minimal losses value in data storage cell is more than or equal to first threshold, the data in the data in data storage cell maximum for loss value and the minimum data storage cell of loss value are exchanged.
13. devices according to claim 11, is characterized in that, described second processor, also for:
Difference between the maximum loss value in data storage cell and the minimal losses value in free memory locations is more than or equal to Second Threshold, and the minimal losses value in data storage cell and the difference between the maximum loss value in free memory locations are when being more than or equal to the 3rd threshold value, by the data-moving in data storage cell maximum for loss value in the minimum free memory locations of loss value.
14. devices according to claim 8, is characterized in that, described device also comprises:
3rd processor, if for not carrying out equalization operation to the data in the first data storage cell in schedule time threshold range, then by free memory locations minimum for the data of described first data storage cell write current drain value or minimum data storage cell carries out exchanges data with current drain value; Wherein, described first data storage cell refers in schedule time threshold range, and loss value is all less than maximum loss value in data storage cell but average loss value is greater than the data storage cell of the 4th threshold value.
CN201510815574.9A 2015-11-23 2015-11-23 Data management method and device Pending CN105373350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510815574.9A CN105373350A (en) 2015-11-23 2015-11-23 Data management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510815574.9A CN105373350A (en) 2015-11-23 2015-11-23 Data management method and device

Publications (1)

Publication Number Publication Date
CN105373350A true CN105373350A (en) 2016-03-02

Family

ID=55375584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510815574.9A Pending CN105373350A (en) 2015-11-23 2015-11-23 Data management method and device

Country Status (1)

Country Link
CN (1) CN105373350A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201346A (en) * 2016-06-30 2016-12-07 联想(北京)有限公司 A kind of data processing method and storage device
CN107979636A (en) * 2017-11-10 2018-05-01 上海华讯网络系统有限公司 Cold and hot data divide media storage Platform Designing system and method
CN108255425A (en) * 2017-12-29 2018-07-06 北京联想核芯科技有限公司 A kind of data processing method and device of SSD hard disks
CN109407995A (en) * 2018-11-05 2019-03-01 北京三快在线科技有限公司 Cold and hot data managing method, device, electronic equipment and computer-readable medium
CN109725835A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of disk array

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101535967A (en) * 2006-11-30 2009-09-16 株式会社东芝 Memory system
US20100049907A1 (en) * 2007-12-28 2010-02-25 Kazuya Kitsunai Memory System and Control Method Thereof
CN101740132A (en) * 2008-11-27 2010-06-16 成都市华为赛门铁克科技有限公司 Early warning method for life service of solid state disc, solid state disc and early warning system
CN102385902A (en) * 2010-09-01 2012-03-21 建兴电子科技股份有限公司 Solid state storage device and data control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101535967A (en) * 2006-11-30 2009-09-16 株式会社东芝 Memory system
US20100049907A1 (en) * 2007-12-28 2010-02-25 Kazuya Kitsunai Memory System and Control Method Thereof
CN101740132A (en) * 2008-11-27 2010-06-16 成都市华为赛门铁克科技有限公司 Early warning method for life service of solid state disc, solid state disc and early warning system
CN102385902A (en) * 2010-09-01 2012-03-21 建兴电子科技股份有限公司 Solid state storage device and data control method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201346A (en) * 2016-06-30 2016-12-07 联想(北京)有限公司 A kind of data processing method and storage device
CN106201346B (en) * 2016-06-30 2019-06-25 联想(北京)有限公司 A kind of data processing method and storage equipment
CN109725835A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of disk array
CN109725835B (en) * 2017-10-27 2022-04-29 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing disk array
CN107979636A (en) * 2017-11-10 2018-05-01 上海华讯网络系统有限公司 Cold and hot data divide media storage Platform Designing system and method
CN107979636B (en) * 2017-11-10 2020-10-16 上海华讯网络系统有限公司 Cold and hot data split-medium storage platform design system and method
CN108255425A (en) * 2017-12-29 2018-07-06 北京联想核芯科技有限公司 A kind of data processing method and device of SSD hard disks
CN109407995A (en) * 2018-11-05 2019-03-01 北京三快在线科技有限公司 Cold and hot data managing method, device, electronic equipment and computer-readable medium
CN109407995B (en) * 2018-11-05 2020-03-27 北京三快在线科技有限公司 Cold and hot data management method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN105373350A (en) Data management method and device
CN100468374C (en) Method and apparatus to establish, report and adjust system memory usage
CN104516471B (en) Method and device for managing power supply of storage system
CN108231109B (en) Method, device and system for refreshing Dynamic Random Access Memory (DRAM)
GB2599061A (en) Block mode toggling in data storage system
KR20120098968A (en) Controlling and staggering operations to limit current spikes
US20190079676A1 (en) System and method for channel time management in solid state memory drives
WO2019100463A1 (en) Flash memory performance enhancement method, apparatus, and device, and storage medium
CN105808455B (en) Memory access method, storage-class memory and computer system
CN110851079B (en) Adaptive storage device loss balancing method and system
CN102981971B (en) A kind of phase transition storage loss equalizing method of quick response
CN106527995B (en) A kind of data dilatation moving method of I/O equilibrium
US10509597B2 (en) Memory block access modes for a storage device
CN103064792A (en) Method and device for writing data
CN104268099A (en) Management data reading and writing method and device
CN107204204B (en) Power-off period estimation method of solid-state storage device
US10217515B2 (en) Programming memory devices
CN110837477B (en) Storage system loss balancing method and device based on life prediction
CN109739442A (en) A kind of data migration method, system and associated component
CN111276176A (en) Three-dimensional stacked flash memory unit threshold voltage distribution model construction method
CN105493024A (en) Data threshold prediction method and related apparatus
JP7053585B2 (en) Devices and methods for controlling non-volatile memory refresh cycles
US20190303040A1 (en) Resource Allocation in Memory Systems based on Operation Modes
US8400831B2 (en) Method and apparatus for improving endurance of flash memories
US10719243B2 (en) Techniques for preserving an expected lifespan of a non-volatile memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170208

Address after: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Haidian District West Road, Beijing, No. 6

Applicant before: Lenovo (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302