CN105183386A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105183386A
CN105183386A CN201510582506.2A CN201510582506A CN105183386A CN 105183386 A CN105183386 A CN 105183386A CN 201510582506 A CN201510582506 A CN 201510582506A CN 105183386 A CN105183386 A CN 105183386A
Authority
CN
China
Prior art keywords
data
storage area
operations
threshold
migration
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
CN201510582506.2A
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 CN201510582506.2A priority Critical patent/CN105183386A/en
Publication of CN105183386A publication Critical patent/CN105183386A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an information processing method and electronic equipment. The information processing method is applied in the electronic equipment. The electronic equipment is provided with a storage device used for data storage. The storage device comprises N storage areas, wherein N is a natural number larger than 1. The method comprises the steps that the data manipulation frequency in each storage area within a preset time interval is monitored; the storage areas are marked based on the manipulation frequencies; the data manipulation change parameters of each storage area within the preset time interval are obtained based on the corresponding manipulation frequency; a data migration strategy for each storage area is formed according to the corresponding marker and the corresponding data manipulation change parameters; data migration is carried out according to the data migration strategies.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to mechanics of communication, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Present inventor, in the process realizing the embodiment of the present application technical scheme, at least finds to there is following technical matters in correlation technique:
A factor of data storage safety be hard disk for storing data can not loss too fast, there is the data block too much damaged, be commonly called as " bad block ".If the hard disk loss under reading and write operation effect storing data is too fast, exist too much " bad block ", then the data stored in " bad block " position just cannot normally have read, and are unfavorable for the use of user.
Are data storage devices based on flash memory for storing the solid state hard disc of data, each data block wherein has lossy, and erasing times is limited.If when the erasing times of certain block reaches the upper limit, easily cause the appearance of " bad block ", the overall performance of solid state hard disc will be had a greatly reduced quality, need to make the erasing times of all data blocks in solid state hard disc even as much as possible, thus avoid damage too fast, to extend the mean lifetime of solid state hard disc, reduce the appearance of bad block.
But, in correlation technique, for this problem, the scheme adopted is the static equilibrium mechanism that always can not become based on the state of data block, that is, the data block that erasing access times are few is called cold data, its state is " cold " always, the data block that erasing access times are many is called dsc data, its state is " heat " always, and in fact the state of data block can find change, therefore, the result that the static equilibrium mechanism that the described state based on data block can not become always obtains is inaccurate, is not an effective solution.
Summary of the invention
In view of this, the embodiment of the present invention is desirable to provide a kind of information processing method and electronic equipment, solve at least prior art Problems existing, make the erasing times of all data blocks in solid state hard disc even as much as possible, thus avoid damage too fast, to extend the mean lifetime of solid state hard disc, reduce the appearance of bad block.
The technical scheme of the embodiment of the present invention is achieved in that
A kind of information processing method of the embodiment of the present invention, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; Described method comprises:
The data manipulation number of times of each storage area in monitoring predetermined time interval;
Described storage area is marked based on described number of operations;
The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations;
The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation;
Data Migration is carried out according to described migration strategy.
In such scheme, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
In such scheme, describedly mark described storage area based on described number of operations, comprise: when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
In such scheme, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprising: described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration.
In such scheme, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprising: described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration.
In such scheme, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprise: its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, do not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold.
In such scheme, describedly carry out Data Migration according to described migration strategy, comprising:
The data of the data of the described first kind and described Equations of The Second Kind are replaced, to complete described Data Migration.
A kind of electronic equipment of the embodiment of the present invention, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor;
Described processor, for:
The data manipulation number of times of each storage area in monitoring predetermined time interval;
Described storage area is marked based on described number of operations;
The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations;
The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation;
Data Migration is carried out according to described migration strategy.
In such scheme, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
In such scheme, described processor, when being further used for marking according to described number of operations described storage area, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
In such scheme, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration.
In such scheme, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration.
In such scheme, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, do not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold.
In such scheme, described processor, is further used for the data of the data of the described first kind and described Equations of The Second Kind being replaced, to complete described Data Migration.
The information processing method of the embodiment of the present invention is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; Described method comprises: the data manipulation number of times of each storage area in monitoring predetermined time interval; Described storage area is marked based on described number of operations; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation; Data Migration is carried out according to described migration strategy.
Adopt the embodiment of the present invention, due to described storage area can be marked based on described number of operations, and obtain the running parameter of data manipulation in described predetermined time interval, Data Migrating Strategy is generated according to this two indices, to carry out Data Migration according to this Data Migrating Strategy, this dynamic adjustment can make the erasing times of all data blocks in solid state hard disc even as much as possible, reaches and avoids damage too fast, to extend the mean lifetime of solid state hard disc, reduce the beneficial effect of the appearance of bad block.
Accompanying drawing explanation
Fig. 1 is a realization flow schematic diagram of the inventive method embodiment one;
Fig. 2 is a realization flow schematic diagram of the inventive method embodiment two;
Fig. 3 is a realization flow schematic diagram of the inventive method embodiment three;
Fig. 4 is a realization flow schematic diagram of the inventive method embodiment four;
Fig. 5 is a composition structural representation of electronic equipment embodiment of the present invention;
Fig. 6-7 is the schematic diagram of an application scenarios of the application embodiment of the present invention.
Embodiment
Be described in further detail below in conjunction with the enforcement of accompanying drawing to technical scheme.
Embodiment of the method one:
A kind of information processing method of the embodiment of the present invention, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; As shown in Figure 1, described method comprises:
The data manipulation number of times of each storage area in step 101, monitoring predetermined time interval.
Here, owing to the state of storage area (or being called data block) can be caused along with time variations generation state transition to the number of operations of storage area, if the original state of storage area (or being called data block) is cold data mode, then along with the number of operations of time variations to this storage area (or being called data block) is more, dsc data state can be become from cold data mode; If the original state of storage area (or being called data block) is dsc data state, then along with the number of operations of time variations to this storage area (or being called data block) is fewer, cold data mode can be become from dsc data state.
Described number of operations in this step is as the first index generating migration strategy.
Step 102, mark described storage area based on described number of operations.
Here, when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
Be labeled as the data of the first kind, its state is the dsc data state mentioned in step 101; Be labeled as the data of Equations of The Second Kind, its state is the cold data mode mentioned in step 101, then the storage area at the data place of the first kind also can be called dsc data block, and the storage area at the data place of Equations of The Second Kind also can be called cold data block.
Step 103, obtain the running parameter of each storage area data manipulation in described predetermined time interval based on described number of operations.
Here, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
Here it is to be noted, described acceleration parameter is not traditional acceleration, but be applied to the technical terms description in the technology of the present invention field with specific meanings, such as, the initial residing state of the data block mentioned in step 102 can along with the corresponding described number of operations generation state transition of time variations, dsc data state can be become from initial cold data mode, also cold data mode can be become from initial dsc data state, occur in the process of state transition at this, state running parameter is in the given time described acceleration parameter.
Described acceleration parameter in this step as generating the second index of migration strategy, together with the first index in step 101, for the Data Migrating Strategy in generation step 104.
Step 104, form the Data Migrating Strategy for described storage area according to the running parameter of described mark and described data manipulation.
Step 105, carry out Data Migration according to described migration strategy.
Here, Data Migrating Strategy is generated based on described number of operations and described acceleration parameter, carry out Data Migration according to this Data Migrating Strategy, concrete Data Migration is: the data of the data of the described first kind and described Equations of The Second Kind are carried out migration and replaces, to complete the migration of described data.
Embodiment of the method two:
A kind of information processing method of the embodiment of the present invention, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; As shown in Figure 2, described method comprises:
The data manipulation number of times of each storage area in step 201, monitoring predetermined time interval.
Here, owing to the state of storage area (or being called data block) can be caused along with time variations generation state transition to the number of operations of storage area, if the original state of storage area (or being called data block) is cold data mode, then along with the number of operations of time variations to this storage area (or being called data block) is more, dsc data state can be become from cold data mode; If the original state of storage area (or being called data block) is dsc data state, then along with the number of operations of time variations to this storage area (or being called data block) is fewer, cold data mode can be become from dsc data state.
Described number of operations in this step is as the first index generating migration strategy.
Step 202, mark described storage area based on described number of operations.
Here, when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
Be labeled as the data of the first kind, its state is the dsc data state mentioned in step 201; Be labeled as the data of Equations of The Second Kind, its state is the cold data mode mentioned in step 201, then the storage area at the data place of the first kind also can be called dsc data block, and the storage area at the data place of Equations of The Second Kind also can be called cold data block.
Step 203, obtain the running parameter of each storage area data manipulation in described predetermined time interval based on described number of operations.
Here, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
Here it is to be noted, described acceleration parameter is not traditional acceleration, but be applied to the technical terms description in the technology of the present invention field with specific meanings, such as, the initial residing state of the data block mentioned in step 202 can along with the corresponding described number of operations generation state transition of time variations, dsc data state can be become from initial cold data mode, also cold data mode can be become from initial dsc data state, occur in the process of state transition at this, state running parameter is in the given time described acceleration parameter.
Described acceleration parameter in this step as generating the second index of migration strategy, together with the first index in step 201, for the Data Migrating Strategy in generation step 204.
The running parameter of step 204, data manipulation in described predetermined time interval is for during for characterizing described acceleration parameter that each storage area causes data mode to change formed along with the change of described number of operations, and described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration.
Step 205, carry out Data Migration according to described migration strategy.
Here, Data Migrating Strategy is generated based on described number of operations and described acceleration parameter, carry out Data Migration according to this Data Migrating Strategy, concrete Data Migration is: the data of the data of the described first kind and described Equations of The Second Kind are carried out migration and replaces, to complete the migration of described data.
Embodiment of the method three:
A kind of information processing method of the embodiment of the present invention, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; As shown in Figure 3, described method comprises:
The data manipulation number of times of each storage area in step 301, monitoring predetermined time interval.
Here, owing to the state of storage area (or being called data block) can be caused along with time variations generation state transition to the number of operations of storage area, if the original state of storage area (or being called data block) is cold data mode, then along with the number of operations of time variations to this storage area (or being called data block) is more, dsc data state can be become from cold data mode; If the original state of storage area (or being called data block) is dsc data state, then along with the number of operations of time variations to this storage area (or being called data block) is fewer, cold data mode can be become from dsc data state.
Described number of operations in this step is as the first index generating migration strategy.
Step 302, mark described storage area based on described number of operations.
Here, when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
Be labeled as the data of the first kind, its state is the dsc data state mentioned in step 301; Be labeled as the data of Equations of The Second Kind, its state is the cold data mode mentioned in step 301, then the storage area at the data place of the first kind also can be called dsc data block, and the storage area at the data place of Equations of The Second Kind also can be called cold data block.
Step 303, obtain the running parameter of each storage area data manipulation in described predetermined time interval based on described number of operations.
Here, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
Here it is to be noted, described acceleration parameter is not traditional acceleration, but be applied to the technical terms description in the technology of the present invention field with specific meanings, such as, the initial residing state of the data block mentioned in step 302 can along with the corresponding described number of operations generation state transition of time variations, dsc data state can be become from initial cold data mode, also cold data mode can be become from initial dsc data state, occur in the process of state transition at this, state running parameter is in the given time described acceleration parameter.
Described acceleration parameter in this step as generating the second index of migration strategy, together with the first index in step 301, for the Data Migrating Strategy in generation step 304.
The running parameter of step 304, data manipulation in described predetermined time interval is for during for characterizing described acceleration parameter that each storage area causes data mode to change formed along with the change of described number of operations, and described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration.
Step 305, carry out Data Migration according to described migration strategy.
Here, Data Migrating Strategy is generated based on described number of operations and described acceleration parameter, carry out Data Migration according to this Data Migrating Strategy, concrete Data Migration is: the data of the data of the described first kind and described Equations of The Second Kind are carried out migration and replaces, to complete the migration of described data.
Embodiment of the method four:
A kind of information processing method of the embodiment of the present invention, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; As shown in Figure 4, described method comprises:
The data manipulation number of times of each storage area in step 401, monitoring predetermined time interval.
Here, owing to the state of storage area (or being called data block) can be caused along with time variations generation state transition to the number of operations of storage area, if the original state of storage area (or being called data block) is cold data mode, then along with the number of operations of time variations to this storage area (or being called data block) is more, dsc data state can be become from cold data mode; If the original state of storage area (or being called data block) is dsc data state, then along with the number of operations of time variations to this storage area (or being called data block) is fewer, cold data mode can be become from dsc data state.
Described number of operations in this step is as the first index generating migration strategy.
Step 402, mark described storage area based on described number of operations.
Here, when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
Be labeled as the data of the first kind, its state is the dsc data state mentioned in step 401; Be labeled as the data of Equations of The Second Kind, its state is the cold data mode mentioned in step 401, then the storage area at the data place of the first kind also can be called dsc data block, and the storage area at the data place of Equations of The Second Kind also can be called cold data block.
Step 403, obtain the running parameter of each storage area data manipulation in described predetermined time interval based on described number of operations.
Here, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
Here it is to be noted, described acceleration parameter is not traditional acceleration, but be applied to the technical terms description in the technology of the present invention field with specific meanings, such as, the initial residing state of the data block mentioned in step 402 can along with the corresponding described number of operations generation state transition of time variations, dsc data state can be become from initial cold data mode, also cold data mode can be become from initial dsc data state, occur in the process of state transition at this, state running parameter is in the given time described acceleration parameter.
Described acceleration parameter in this step as generating the second index of migration strategy, together with the first index in step 401, for the Data Migrating Strategy in generation step 404.
The running parameter of step 404, data manipulation in described predetermined time interval is for during for characterizing described acceleration parameter that each storage area causes data mode to change formed along with the change of described number of operations, its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, do not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold.
Step 405, carry out Data Migration according to described migration strategy.
Here, Data Migrating Strategy is generated based on described number of operations and described acceleration parameter, carry out Data Migration according to this Data Migrating Strategy, concrete Data Migration is: the data of the data of the described first kind and described Equations of The Second Kind are carried out migration and replaces, to complete the migration of described data.
Here it is to be noted: the description of following electronic equipment item, it is similar for describing with said method, and the beneficial effect with method describes, and does not repeat.For the ins and outs do not disclosed in electronic equipment embodiment of the present invention, please refer to the description of the inventive method embodiment.
Electronic equipment embodiment one:
The electronic equipment of the embodiment of the present invention, as shown in Figure 5, described electronic equipment possess for data store memory device, described memory device 11 comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor 12; Described processor 12 is for the data manipulation number of times of each storage area in monitoring predetermined time interval; Described storage area is marked based on described number of operations; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation; Data Migration is carried out according to described migration strategy.
In the embodiment of the present invention one embodiment, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
Electronic equipment embodiment two:
The electronic equipment of the embodiment of the present invention, as shown in Figure 5, described electronic equipment possess for data store memory device, described memory device 11 comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor 12; Described processor, for: the data manipulation number of times of each storage area in monitoring predetermined time interval; When described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation; Data Migration is carried out according to described migration strategy.
Electronic equipment embodiment three:
The electronic equipment of the embodiment of the present invention, as shown in Figure 5, described electronic equipment possess for data store memory device, described memory device 11 comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor 12; Described processor, for: the data manipulation number of times of each storage area in monitoring predetermined time interval; When described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; Described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration; When needing to carry out Data Migration according to described migration strategy, the data of the data of the described first kind and described Equations of The Second Kind are carried out migration and replaces, to complete described Data Migration.
Electronic equipment embodiment four:
The electronic equipment of the embodiment of the present invention, as shown in Figure 5, described electronic equipment possess for data store memory device, described memory device 11 comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor 12; Described processor, for: the data manipulation number of times of each storage area in monitoring predetermined time interval; When described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; Described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration; Data Migration is carried out according to described migration strategy.
Electronic equipment embodiment five:
The electronic equipment of the embodiment of the present invention, as shown in Figure 5, described electronic equipment possess for data store memory device, described memory device 11 comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor 12; Described processor, for: the data manipulation number of times of each storage area in monitoring predetermined time interval; When described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind; The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations; Its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, does not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold, and that is, the cold heating of thermal change cold-peace will reach just does not carry out Data Migration process soon; Data Migration is carried out according to described migration strategy.
For a real world applications scene, the embodiment of the present invention is described below:
This application scene adopts the invention described above embodiment, being cause data mode to change formed described acceleration parameter based on for characterizing each storage area along with the change of described number of operations, carrying out the scheme that storage area variable condition (storage area is cold data or dsc data bulk state) is predicted.
The all requisite device of all electronic equipments is memory device, and for memory device, a kind of solid state hard disc (SSD) is the data storage device based on flash memory.Each data bit is kept in the flash cell be made up of floating transistor.A key character of nand flash memory module is that their flash cell is lossy, and therefore they have a life-span.Each unit has a maximum P/E loop number, namely the erasable number of times of NANDFlash is limited, if the erasing times of certain block reaches the upper limit, the overall performance of solid-state disk will be had a greatly reduced quality, therefore loss equalizing technology must be used to make the erasing times of all data blocks even as much as possible, thus extend the mean lifetime of Flash, reduce the appearance of bad block.
Loss equalizing has two kinds of machine-processed dynamic loss balancings and static state attrition balancing.Dynamic equalization loss and static equilibrium loss generally all combine use, can make the portfolio effect that storer has reached like this.With regard to described dynamic equalization loss, it is the gordian technique affecting the NANDFlash life-span, when data need in write NANDFlash, each is all that the available block of choosing minimum erasing times is write, by the maximum equilibrium assignment of write data in each available block of NANDFlash, can ensure that data can not be concentrated like this and write in some block, some block can be prevented by excessive erasing and write, cause too early damage, affect the use of NANDFlash.With regard to described static equilibrium loss, it is by the data for a long time on no piece and the exchanges data on the block frequently used.The block that such erasing times is few will often be used to, can the erasing times of each block balanced.For avoiding affecting greatly the performance of system, static equilibrium generally adopts the method for periodically migration data, a threshold value is set to the erasing times of block in NANDFlash, when frequently being reached this threshold value by the erasing times of the block used, just start static equilibrium loss strategy, the data on the block frequently used and the data for a long time on no piece are exchanged mutually.As shown in the a-c in Fig. 6, dsc data block refers to wipe the many data blocks of access times, and cold data block refers to: the data block that erasing access times are few.But, frequent like this in the process of cold data block and dsc data block frequent data item migration process, if the cold data block after exchanging is no longer cold, but heating, the erasable number of times of current data block can be caused to continue to become many, from and meeting cause more and once move, namely without the need to this migration of twice; Migration data not only can cause the secondary damage to NANDFlash, and system energy consumption also can be caused to strengthen, and also likely causes and writes amplification.Equally, the dsc data block after exchanging turns cold, and data block originally continues to be cold data block, and the effect of loss equalizing does not reach equally.
Visible: to adopt above-mentioned existing scheme to be think that cold data block is cold by continuing to the mechanism that hot and cold data block is predicted, lasting heat is also gone down by dsc data block, the state giving tacit consent to them can not change, can solve 1. 3., not can solve 2. problem 4., wherein, 1. refer to: the trend prediction that cold-> is cold; 2. refer to: the trend prediction of cold-> heat; 3. refer to: the trend prediction of heat-> heat; 4. refer to: the trend prediction that heat-> is cold.That is, adopt existing scheme can well can only be solved these 2 kinds of application scenarioss that data block status does not change, and can not effectively solve for the application scenarios that data block status changes.
For the problems referred to above, for 1.-this several scene 4., adopt the embodiment of the present invention, can be well solved, because the state that starting point of the present invention is not default data block can not change, but be probably that the prerequisite that can change is carried out based on the state of data block, focus on that the cold data of analysis not only can be cold, also there is the possibility of heating simultaneously, equally, a dsc data not necessarily directly-heated goes down, also the possibility turned cold may be there is, namely estimate cold, the prerequisite of the possible variable condition changed between heat is carried out, the cold and hot of predicted data is carried out for changing to the erasable number of times formation data block status of data block the acceleration parameter obtained in the schedule time, thus judge whether the Data Migration process carrying out loss equalizing, by cold, dsc data block carries out moving displacement, concrete, first, by data block according to the wear intensity how much formed the erasable number of times of data block, arrange from left to right from big to small, the erasable number of times of each data block represents with EC (EraseCount), ECmax represents erasable number of times corresponding to the maximum block of erasable number of times, ECmin represents erasable number of times corresponding to the minimum block of erasable number of times.When carrying out loss equalizing mechanism, each block is not only considered from erasable number of times, consider the acceleration of erasable number of times too, and generate Data Migrating Strategy according to erasable number of times and this two indices of acceleration, carry out Data Migration process according to this Data Migrating Strategy, hot and cold data block is carried out moving displacement.
As shown in Figure 6, horizontal axis representing time, the longitudinal axis represents erasable number of times and EC number, is monotonically increasing curve in time, and the account form of acceleration is for shown in following formula (1):
Such as, the acceleration of B point is:
Wherein, EC1, EC2, EC3 are the erasing times of 3 of △ T interval time respectively;
When meeting loss equalizing operating conditions, cold and hot data block carries out the calculating of acceleration, estimate according to acceleration calculation result, and determine the data migration operation (being specially the replacement operator hot and cold data block being carried out exchanges data) that whether carries out under static equilibrium mechanism, migration strategy comprise following any one:
1) if the acceleration of hot block be on the occasion of, then represent this data block repeatedly access in, be dsc data, later erasable number of times also can increase, and should carry out exchanges data, is put on cold piece;
2) if hot block acceleration is negative value, then represent that the data of this hot block just turn cold, erasable number of times can not be increased again, then without the need to carrying out exchange data manipulation;
3) if the acceleration of cold piece is negative value, then representing that these data of cold piece are also cold by continuing, should exchanges data be carried out, the data of cold piece and hot blocks of data are exchanged, to reach the effect of wear leveling;
4) if this acceleration of cold piece be on the occasion of, then represent the positive heating of these data of cold piece, erasable number of times in the future may increase, then temporarily not by cold and hot exchanges data, because likely by the erasable increased frequency of hot block after exchanging, also again equalization operation will be carried out.
The advantage of the employing embodiment of the present invention is: 1) make a prediction to the trend of cold and hot data, judge whether the migration operation of carrying out data; 2) reduce migration operation to the secondary damage of nandflash, namely reduce the erasable number of times exchanging data and cause; 3) reduce the system burden that causes of exchanges data, and reduce bring due to exchanges data write amplification.
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, 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 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. an information processing method, described method is applied in electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; Described method comprises:
The data manipulation number of times of each storage area in monitoring predetermined time interval;
Described storage area is marked based on described number of operations;
The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations;
The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation;
Data Migration is carried out according to described migration strategy.
2. method according to claim 1, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
3. method according to claim 2, describedly mark described storage area based on described number of operations, comprise: when described storage area is marked according to described number of operations, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
4. method according to claim 3, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprising: described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration.
5. method according to claim 2, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprising: described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration.
6. method according to claim 5, the described running parameter according to described mark and described data manipulation forms the Data Migrating Strategy for described storage area, comprise: its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, do not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold.
7. the method according to any one of claim 1 to 6, describedly carries out Data Migration according to described migration strategy, comprising:
The data of the data of the described first kind and described Equations of The Second Kind are replaced, to complete described Data Migration.
8. an electronic equipment, described electronic equipment possess for data store memory device, described memory device comprises N number of storage area, described N be greater than 1 natural number; Described electronic equipment also comprises: processor;
Described processor, for:
The data manipulation number of times of each storage area in monitoring predetermined time interval;
Described storage area is marked based on described number of operations;
The running parameter of each storage area data manipulation in described predetermined time interval is obtained based on described number of operations;
The Data Migrating Strategy for described storage area is formed according to the running parameter of described mark and described data manipulation;
Data Migration is carried out according to described migration strategy.
9. electronic equipment according to claim 8, the running parameter of described data manipulation comprises: cause data mode to change formed parameter for characterizing each storage area along with the change of described number of operations, and be designated as acceleration parameter.
10. electronic equipment according to claim 9, described processor, when being further used for marking according to described number of operations described storage area, the storage area that described number of operations is greater than first threshold is labeled as the first kind, the storage area that described number of operations is less than first threshold is labeled as Equations of The Second Kind.
11. electronic equipments according to claim 10, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: described acceleration parameter is greater than the data that the data of the first kind of Second Threshold and described acceleration parameter be less than the Equations of The Second Kind of Second Threshold and carries out Data Migration.
12. electronic equipments according to claim 9, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: described acceleration parameter is less than the data that the data of the first kind of Second Threshold and described acceleration parameter be greater than the Equations of The Second Kind of Second Threshold and does not carry out Data Migration.
13. electronic equipments according to claim 12, described processor, be further used for forming described Data Migrating Strategy, described Data Migrating Strategy comprises: its acceleration of the data of the described first kind is less than the 3rd threshold value, when its acceleration of the data of described Equations of The Second Kind is greater than the 4th threshold value, do not carry out Data Migration; Wherein, the 3rd threshold value is less than Second Threshold, and the 4th threshold value is greater than Second Threshold.
Electronic equipment described in 14. any one of according to Claim 8 to 13, described processor, is further used for the data of the data of the described first kind and described Equations of The Second Kind being replaced, to complete described Data Migration.
CN201510582506.2A 2015-09-14 2015-09-14 Information processing method and electronic equipment Pending CN105183386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510582506.2A CN105183386A (en) 2015-09-14 2015-09-14 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510582506.2A CN105183386A (en) 2015-09-14 2015-09-14 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105183386A true CN105183386A (en) 2015-12-23

Family

ID=54905495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510582506.2A Pending CN105183386A (en) 2015-09-14 2015-09-14 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105183386A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095344A (en) * 2016-06-27 2016-11-09 联想(北京)有限公司 A kind of data processing method and device
CN106155587A (en) * 2016-06-29 2016-11-23 联想(北京)有限公司 Information processing method and storage device
CN108182034A (en) * 2016-12-06 2018-06-19 爱思开海力士有限公司 Storage system and its operating method
CN108920107A (en) * 2018-07-13 2018-11-30 深圳忆联信息系统有限公司 Screen method, apparatus, computer equipment and the storage medium of cold data
CN108984124A (en) * 2018-07-13 2018-12-11 深圳忆联信息系统有限公司 Reduce the method, apparatus, computer equipment and storage medium for writing amplification
CN109725835A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of disk array
CN109901787A (en) * 2017-12-08 2019-06-18 比亚迪股份有限公司 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
CN112379842A (en) * 2020-11-18 2021-02-19 深圳安捷丽新技术有限公司 Method and device for predicting cold and hot properties of data
CN112445720A (en) * 2019-08-29 2021-03-05 美光科技公司 Classifying access frequencies of memory subsystem components
CN113742176A (en) * 2021-09-03 2021-12-03 联想(北京)有限公司 Fault prediction method and device and electronic equipment
CN114327279A (en) * 2021-12-29 2022-04-12 湖南国科微电子股份有限公司 Data migration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060010169A1 (en) * 2004-07-07 2006-01-12 Hitachi, Ltd. Hierarchical storage management system
CN102789423A (en) * 2012-07-11 2012-11-21 山东华芯半导体有限公司 Four-pool flash wear leveling method
CN102799535A (en) * 2012-06-29 2012-11-28 记忆科技(深圳)有限公司 Solid-state disk and data processing method thereof
CN103077219A (en) * 2012-12-29 2013-05-01 深圳先进技术研究院 Method and device for automatically storing data
CN103106151A (en) * 2011-11-15 2013-05-15 Lsi公司 Apparatus to manage efficient data migration between tiers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060010169A1 (en) * 2004-07-07 2006-01-12 Hitachi, Ltd. Hierarchical storage management system
CN103106151A (en) * 2011-11-15 2013-05-15 Lsi公司 Apparatus to manage efficient data migration between tiers
CN102799535A (en) * 2012-06-29 2012-11-28 记忆科技(深圳)有限公司 Solid-state disk and data processing method thereof
CN102789423A (en) * 2012-07-11 2012-11-21 山东华芯半导体有限公司 Four-pool flash wear leveling method
CN103077219A (en) * 2012-12-29 2013-05-01 深圳先进技术研究院 Method and device for automatically storing data

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095344A (en) * 2016-06-27 2016-11-09 联想(北京)有限公司 A kind of data processing method and device
CN106095344B (en) * 2016-06-27 2019-11-12 深圳忆联信息系统有限公司 A kind of data processing method and device
CN106155587A (en) * 2016-06-29 2016-11-23 联想(北京)有限公司 Information processing method and storage device
CN108182034B (en) * 2016-12-06 2021-03-09 爱思开海力士有限公司 Storage system and operation method thereof
CN108182034A (en) * 2016-12-06 2018-06-19 爱思开海力士有限公司 Storage system and its operating method
CN109725835B (en) * 2017-10-27 2022-04-29 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing disk array
CN109725835A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of disk array
CN109901787A (en) * 2017-12-08 2019-06-18 比亚迪股份有限公司 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
CN108920107B (en) * 2018-07-13 2022-02-01 深圳忆联信息系统有限公司 Method and device for screening cold data, computer equipment and storage medium
CN108984124A (en) * 2018-07-13 2018-12-11 深圳忆联信息系统有限公司 Reduce the method, apparatus, computer equipment and storage medium for writing amplification
CN108984124B (en) * 2018-07-13 2022-03-25 深圳忆联信息系统有限公司 Method and device for reducing write amplification, computer equipment and storage medium
CN108920107A (en) * 2018-07-13 2018-11-30 深圳忆联信息系统有限公司 Screen method, apparatus, computer equipment and the storage medium of cold data
CN112445720A (en) * 2019-08-29 2021-03-05 美光科技公司 Classifying access frequencies of memory subsystem components
US11650933B2 (en) 2019-08-29 2023-05-16 Micron Technology, Inc. Classifying access frequency of a memory sub-system component
CN112379842A (en) * 2020-11-18 2021-02-19 深圳安捷丽新技术有限公司 Method and device for predicting cold and hot properties of data
CN113742176A (en) * 2021-09-03 2021-12-03 联想(北京)有限公司 Fault prediction method and device and electronic equipment
CN114327279A (en) * 2021-12-29 2022-04-12 湖南国科微电子股份有限公司 Data migration method and device

Similar Documents

Publication Publication Date Title
CN105183386A (en) Information processing method and electronic equipment
US8725933B2 (en) Method to detect uncompressible data in mass storage device
JP2019532413A (en) Method and device for writing data to be stored in a flash memory based storage medium
TWI466121B (en) Method for performing block management, and associated memory device and controller thereof
CN108897492B (en) Data writing method and device
CN104731515B (en) Control the method and apparatus of storage device group of planes abrasion equilibrium
CN105487823A (en) Data migration method and device
US10025526B2 (en) Storage device and data moving method for storage device
KR20130112210A (en) Page replace method and memory system using the same
US10514848B2 (en) Data storage method for selectively storing data in a buffer preset in a memory of an electronic device or an inherent buffer in an SSD
CN104571954A (en) Method and device for storing data
US8443157B1 (en) Data storage system having associated situational analysis framework for automatic response to movement in a state space
CN104199784A (en) Data migration method and device based on hierarchical storage
CN111290699A (en) Data migration method, device and system
CN104460941A (en) Method for reducing power consumption of main memory under full load operation
KR20180126921A (en) Data storage device and operating method thereof
CN109256166A (en) The method for deleting and flash memories of flash memories
CN109445695A (en) A kind of data migration method
CN105867455A (en) Temperature control method and apparatus for wireless router
CN104375944A (en) Method and device for storing data
CN105138472A (en) Flash memory wear optimization method and device
CN105205015B (en) A kind of date storage method and storage equipment
CN105094742B (en) A kind of method and apparatus for writing data
CN104932830A (en) Information processing method and electronic device
KR20210016201A (en) Storage device and operation method thereof

Legal Events

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

Effective date of registration: 20170220

Address after: 100176 Beijing City, Daxing District branch of 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

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication