Summary of the invention
In view of this; the object of the present invention is to provide a kind of information processing method and solid state hard disc; protected data can not be lost, improve the reliability of solid state hard disc, and compared to the scheme of data in existing entirety copy solid state hard disc, data copy amount can be reduced.The present invention also provides a kind of electronic equipment.
For achieving the above object, the invention provides following technical scheme:
The present invention discloses a kind of information processing method, comprising:
The status information of N number of physical memory cell in monitoring solid state hard disc, N be greater than 1 integer;
The status information of more described N number of physical memory cell and predetermined threshold value;
When comparative result shows that described solid state hard disc comprises abnormal physical memory cell, read the data that described abnormal physical memory cell stores, wherein, the status information of described abnormal physical memory cell is lower than predetermined threshold value;
To the second memory device backup data transmitting, described Backup Data comprises the mark of data and the described abnormal physical memory cell read from described abnormal physical memory cell.
Optionally, described to the second memory device backup data transmitting, be specially: described solid state hard disc passes through the communication interface of self directly to described second memory device backup data transmitting.
Optionally, the predetermined storage area one_to_one corresponding in the physical memory cell in described solid state hard disc and described second memory device.
Optionally, said method also comprises: after the second solid state hard disc installed by electronic equipment, and the date restoring stored by described second memory device is to described second solid state hard disc.
Optionally, in said method, the date restoring stored by described second memory device is to described second solid state hard disc, comprise: the recovery data receiving described second memory device transmission, described recovery data packets draws together the data that described second memory device reads from predetermined storage area, and the mark of this predetermined storage area; According to the corresponding relation of predetermined storage area in the mark of described predetermined storage area and the physical memory cell of described second solid state hard disc and described second memory device, determine the pending physical memory cell in described second solid state hard disc, described pending physical memory cell is corresponding with the predetermined storage area that the mark of described predetermined storage area characterizes; Corresponding pending physical memory cell is stored to by described second memory device from the data that predetermined storage area reads by described recovery data.
The present invention also discloses a kind of solid state hard disc, comprises M physical memory cell and controller;
The status information of N number of physical memory cell in solid state hard disc described in described monitoring control devices, the status information of more described N number of physical memory cell and predetermined threshold value, when comparative result shows that described solid state hard disc comprises abnormal physical memory cell, read the data that described abnormal physical memory cell stores, to the second memory device backup data transmitting, described Backup Data comprises the mark of data and the described abnormal physical memory cell read from described abnormal physical memory cell;
Wherein, M be greater than 1 integer, N is the integer being greater than 1 and being not more than M, and the status information of described abnormal physical memory cell is lower than predetermined threshold value.
Optionally, above-mentioned solid state hard disc also comprises communication interface; Described controller is specially to the second memory device backup data transmitting: described controller by described communication interface directly to described second memory device backup data transmitting.
Optionally, the predetermined storage area one_to_one corresponding in the physical memory cell in above-mentioned solid state hard disc and described second memory device.
Optionally, described processor also for: receive described second memory device transmission recovery data after, according to the corresponding relation of predetermined storage area in physical memory cell in the mark of the predetermined storage area comprised in described recovery data and solid state hard disc and described second memory device, determine the pending physical memory cell in described solid state hard disc, be stored to corresponding pending physical memory cell by described second memory device from the data that predetermined storage area reads by described recovery data; Wherein, described pending physical memory cell is corresponding with the predetermined storage area that the mark of described predetermined storage area characterizes.
The present invention also discloses a kind of electronic equipment, and described electronic equipment comprises any one solid state hard disc above-mentioned.
As can be seen here, beneficial effect of the present invention is:
Information processing method disclosed by the invention, the status information of physical memory cell in monitoring solid state hard disc, by comparing the status information of physical memory cell and predetermined threshold value to determine whether solid state hard disc comprises abnormal physical memory cell, namely determine whether solid state hard disc comprises the higher physical memory cell of failure probability, read the data that abnormal physical memory cell stores afterwards, transmit the mark of data and the abnormal physical memory cell read to the second memory device.
Based on information processing method disclosed by the invention, when determining that physical memory cell is abnormal physical memory cell (failure probability occurring higher), the data that abnormal physical memory cell stores are transferred to the second memory device back up, thus protected data is not lost, improve the reliability of solid state hard disc; In addition, information processing method disclosed by the invention only carries out back-up processing, because this reducing data copy amount to the data that physical memory cell abnormal in solid state hard disc stores; Because the data transferring to the second memory device are that in units of physical memory cell in solid state hard disc, data present fragmentation, have good protectiveness.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The present invention discloses a kind of information processing method, is not lost, improves the reliability of solid state hard disc with protected data, and copies the scheme of data in solid state hard disc compared to existing entirety, can reduce data copy amount.
See the process flow diagram that Fig. 1, Fig. 1 are a kind of information processing method disclosed by the invention.This information processing method comprises:
Step S11: the status information of N number of physical memory cell in monitoring solid state hard disc.
Solid state hard disc comprises M physical memory cell and controller.Wherein, M be greater than 1 integer, N be greater than 1 integer.Here it should be noted that, N can for being less than the integer of M, and N also can be equal with M.That is, the status information of whole physical memory cell in solid state hard disc can be monitored, also only can monitor the status information of part physical memory cell in solid state hard disc.
In enforcement, if the physical memory cell in solid state hard disc can be dismantled separately and replace, the physical memory cell that so set-up time is shorter occurs that the probability can not reading and writing problem is very low, therefore only can monitor the status information that the set-up time reaches the physical memory cell of scheduled duration, and the status information of set-up time shorter physical memory cell not monitored.If the physical memory cell in solid state hard disc can not be dismantled separately, then monitor the status information of all physical memory cells in solid state hard disc.
In the present invention, physical memory cell can be flash memory particle.
Step S12: the status information of more N number of physical memory cell and predetermined threshold value.
Step S13: when comparative result shows that solid state hard disc comprises abnormal physical memory cell, reads the data that abnormal physical memory cell stores.
Step S14: to the second memory device backup data transmitting, Backup Data comprises the mark of data and the described abnormal physical memory cell read from described abnormal physical memory cell.
By status information and the predetermined threshold value of more N number of physical memory cell, just can determine whether comprise abnormal physical memory cell in solid state hard disc.Wherein, the status information of abnormal physical memory cell is lower than predetermined threshold value.That is, status information is confirmed as abnormal physical memory cell lower than the physical memory cell of predetermined threshold value.The probability that abnormal physical memory cell is about to lose efficacy is higher, therefore needs the data reading the storage of abnormal physical memory cell, and the mark of the data read and abnormal physical memory cell is transmitted to the second memory device.After second memory device receives Backup Data, store the data read from the physical memory cell of solid state hard disc.The label of the physical memory cell in a solid state hard disc has uniqueness, and in enforcement, the mark of physical memory cell can be the numbering of physical memory cell.
Information processing method disclosed by the invention, the status information of physical memory cell in monitoring solid state hard disc, by comparing the status information of physical memory cell and predetermined threshold value to determine whether solid state hard disc comprises abnormal physical memory cell, namely determine whether solid state hard disc comprises the higher physical memory cell of failure probability, read the data that abnormal physical memory cell stores afterwards, transmit the mark of data and the abnormal physical memory cell read to the second memory device.Based on information processing method disclosed by the invention, when determining that physical memory cell is abnormal physical memory cell (failure probability occurring higher), the data that abnormal physical memory cell stores are transferred to the second memory device back up, thus protected data is not lost, improve the reliability of solid state hard disc; In addition, information processing method disclosed by the invention only carries out back-up processing, because this reducing data copy amount to the data that physical memory cell abnormal in solid state hard disc stores; Because the data transferring to the second memory device are that in units of physical memory cell in solid state hard disc, data present fragmentation, have good protectiveness.
State in disclosed information processing method on the invention, the status information of physical memory cell can be the residual life of physical memory cell.The residual life of physical memory cell is the erasable number of times of residue of physical memory cell.
The Firmware layer (firmware layer) of solid state hard disc records the erasable number of times of each physical memory cell.In enforcement, utilize the erasable number of times of the limit of physical memory cell can determine the erasable number of times of the residue of each physical memory cell, i.e. the residual life of each physical memory cell.At present, the physical memory cell of single-layer type Storage Unit Type, usually can perform 100,000 times erasable, the physical memory cell of multiple field Storage Unit Type, usually can perform be less than 10,000 times erasable, three layers is the physical memory cell of Storage Unit Type, usually can perform be less than 1,000 times erasable.
In addition, when physical memory cell is flash memory particle, the status information of flash memory particle can also be the quantity of normal flash block in flash memory particle.
The flash memory granule interior tissue of solid state hard disc is for unit with flash block (block), the principal states of flash block comprises 5 kinds: the flash block of normal flash block, the flash block occurring check errors, the failed flash block of erasing, program fail and occur the flash block of error correcting code, only have normal flash block to be normal condition in these 5 kinds of flash block, all the other four kinds of flash block are abnormality.If the quantity being in the flash block of abnormality in flash memory particle is too much, the loss of data in this flash memory particle will be caused.Therefore, can using the status information of the quantity of normal flash block in flash memory particle as flash memory particle.
When the status information of physical memory cell is residual life, if the residual life of physical memory cell is lower than predetermined threshold value, then determine that this physical memory cell is abnormal physical memory cell, the probability that its data stored cannot read is higher, need the data reading the storage of abnormal physical memory cell, and the mark of the data read and abnormal physical memory cell is transmitted to the second memory device.
When physical memory cell is flash memory particle and the status information of flash memory particle is normal flash block, if the quantity of normal flash block is lower than predetermined threshold value in flash memory particle, then determine that this flash memory particle is abnormal physical memory cell, the probability that its data stored cannot read is higher, need the data reading the storage of abnormal physical memory cell, and the mark of the data read and abnormal physical memory cell is transmitted to the second memory device.
Here it should be noted that: the second memory device in the present invention can be cloud server, can be another memory storage belonging to an electronic equipment with solid state hard disc together, also can be the memory storage in other electronic equipments.
State in disclosed information processing method on the invention, solid state hard disc can be the ingredient of electronic equipment, the Firmware layer of solid state hard disc performs the operation to the second memory device backup data transmitting by the operating system of electronic equipment after reading the data that abnormal physical memory cell stores.
Alternatively implementation, arranges communication interface in solid state hard disc, and this solid state hard disc can be independently equipment, also can be the ingredient of electronic equipment.Accordingly, be specially to the second memory device backup data transmitting: solid state hard disc passes through the communication interface of self directly to the second memory device backup data transmitting.That is, solid state hard disc directly to the second memory device backup data transmitting, and does not need the operating system by electronic equipment.Communication interface in solid state hard disc can adopt but be not limited to blue tooth interface and wifi (Wireless Fidelity) interface.
Here it should be noted that, if the second memory device is the ingredient of an electronic equipment, then solid state hard disc by the communication interface of self directly to the second memory device backup data transmitting is: the data read by the abnormal physical memory cell of solid state hard disc in Backup Data directly to the electronic equipment Backup Data at the second memory device place, are stored to the second memory device by this equipment by self communication interface by solid state hard disc afterwards.
Preferably, the predetermined storage area one_to_one corresponding in the physical memory cell in solid state hard disc and the second memory device.After the data of physical memory cell storage abnormal in solid state hard disc and the mark of abnormal physical memory cell are transferred to the second memory device, the data in this abnormal physical memory cell are stored to corresponding storage area according to the mark of abnormal physical memory cell by the second memory device.
Specifically described below:
The storage space of the second memory device is divided into multiple storage area in advance.In multiple storage areas of the second memory device, in advance for M physical memory cell in solid state hard disc respectively distributes a storage area, and set up the mapping relations in solid state hard disc in physical memory cell and the second memory device between predetermined storage area.Can be understood as: in the second memory device, be provided with in advance and the physical memory cell of the M in solid state hard disc physical vlan storage unit one to one.
Second memory device is after receiving Backup Data, utilize the mark of the abnormal physical memory cell in Backup Data, search corresponding storage area at the storage space of self, the data read by abnormal physical memory cell in Backup Data are stored to this storage area.
The present invention is open another kind of preferred scheme also, on the basis of information processing method shown in Fig. 1, also comprises: after the second solid state hard disc installed by electronic equipment, by date restoring to the second solid state hard disc that the second memory device stores.
After installing the second solid state hard disc at electronic equipment, electronic equipment will be stored in date restoring to the second solid state hard disc of the second memory device automatically, and for user, whole data recovery procedure is transparent.Here it should be noted that, can when the original solid state hard disc of reservation electronic equipment, another solid state hard disc (being designated as the second solid state hard disc) is installed again, also can when the original solid state hard disc of dismounting electronic equipment, second solid state hard disc is installed again, namely changes the solid state hard disc in electronic equipment.
In enforcement, by date restoring to the second solid state hard disc that the second memory device stores, mode as shown in Figure 2 can be adopted, comprising:
Step S21: the recovery data receiving the second memory device transmission.
Wherein, recovery data packets draws together the data that the second memory device reads from predetermined storage area, and the mark of this predetermined storage area.
Second memory device is after receiving Backup Data, according to the mark of abnormal physical memory cell in solid state hard disc (for the second solid state hard disc, this solid state hard disc is designated as the first solid state hard disc), the data in this abnormal physical memory cell are stored to corresponding storage area.After setting up the data transmission channel between the second solid state hard disc and the second memory device, the second memory device reads the data of predetermined storage area, the data read to the second solid state hard disc transmission from predetermined storage area and the mark of this predetermined storage area.
Step S22: according to the corresponding relation of predetermined storage area in the mark of predetermined storage area and the physical memory cell of the second solid state hard disc and the second memory device, determine the pending physical memory cell in the second solid state hard disc.Wherein, pending physical memory cell is corresponding with the predetermined storage area that the mark recovering the predetermined storage area that data are carried characterizes.
Predetermined storage area one_to_one corresponding in physical memory cell in second solid state hard disc and the second memory device, and the second solid state hard disc stores the corresponding relation of presumptive area in self physical memory cell and the second memory device.Here it should be noted that, in the second solid state hard disc, the mark of physical memory cell continues to use the mark of physical memory cell in the first solid state hard disc.
After the recovery data receiving the second memory device transmission, utilize the corresponding relation of predetermined storage area in the mark of the predetermined storage area in these recovery data and the physical memory cell of the second solid state hard disc and the second memory device, just can determine corresponding pending physical memory cell in the second solid state hard disc.
Step S23: be stored to corresponding pending physical memory cell by the second memory device from the data that predetermined storage area reads by recovery data.
After carrying out date restoring according to method shown in Fig. 2, the memory location of data in the first solid state hard disc is corresponding with the memory location of identical data in the second solid state hard disc, achieves the seamless copy of data.
The present invention also discloses a kind of solid state hard disc, and its structure as shown in Figure 3, comprises M physical memory cell and controller 200, wherein, M be greater than 1 integer, in Fig. 3, M physical memory cell all indicates with 100.
The status information of N number of physical memory cell in solid state hard disc monitored by controller 200.Wherein, N is the integer being greater than 1 and being not more than M.That is, controller 200 can monitor the status information of whole physical memory cell in solid state hard disc, also only can monitor the status information of part physical memory cell in solid state hard disc.In enforcement, if the physical memory cell in solid state hard disc can be dismantled separately and replace, then only can monitor the status information that the set-up time reaches the physical memory cell of scheduled duration, and the status information of set-up time shorter physical memory cell not monitored.If the physical memory cell in solid state hard disc can not be dismantled separately, then monitor the status information of all physical memory cells in solid state hard disc.
The status information of the more N number of physical memory cell of controller 200 and predetermined threshold value, when comparative result shows that solid state hard disc comprises abnormal physical memory cell, read the data that abnormal physical memory cell stores, to the second memory device backup data transmitting.Wherein, the status information of abnormal physical memory cell is lower than predetermined threshold value.Backup Data comprises the mark of data and the abnormal physical memory cell read from abnormal physical memory cell.
Solid state hard disc disclosed by the invention, when determining that physical memory cell is abnormal physical memory cell (failure probability occurring higher), the data that abnormal physical memory cell stores are transferred to the second memory device back up, thus protected data is not lost, improve the reliability of solid state hard disc; In addition, solid state hard disc disclosed by the invention only carries out back-up processing to the data that abnormal physical memory cell stores, because this reducing data copy amount; Owing to transferring to the data of the second memory device in units of physical memory cell, data present fragmentation, have good protectiveness.
Here it should be noted that, the status information of physical memory cell can be the residual life of physical memory cell.The residual life of physical memory cell is the erasable number of times of residue of physical memory cell.The erasable number of times of each physical memory cell of controller record of solid state hard disc disclosed by the invention, utilize the erasable number of times of N number of physical memory cell of the erasable number of times of the limit of physical memory cell and record, just can determine the erasable number of times of the residue of N number of physical memory cell respectively, i.e. the residual life of N number of physical memory cell.
In addition, when physical memory cell is flash memory particle, the status information of flash memory particle can also be the quantity of normal flash block in flash memory particle.
The above-mentioned disclosed solid state hard disc of the present invention can be the ingredient of electronic equipment, after the controller of solid state hard disc reads the data that abnormal physical memory cell stores, operation to the second memory device backup data transmitting can be performed by the operating system of electronic equipment.
The present invention also discloses a kind of solid state hard disc as shown in Figure 4.Compared with solid state hard disc shown in Fig. 3, the solid state hard disc shown in Fig. 4 also comprises communication interface 300.In enforcement, this communication interface 300 can adopt but be not limited to blue tooth interface and wifi interface.Controller 200, to the second memory device backup data transmitting, is specially: controller by communication interface directly to the second memory device backup data transmitting.
That is, the solid state hard disc shown in Fig. 4 of the present invention directly to the second memory device backup data transmitting, and can not need the operating system by electronic equipment.
Preferably, the predetermined storage area one_to_one corresponding in the physical memory cell in solid state hard disc and the second memory device.After the data of physical memory cell storage abnormal in solid state hard disc and the mark of abnormal physical memory cell are transferred to the second memory device, the data in this abnormal physical memory cell are stored to corresponding storage area according to the mark of abnormal physical memory cell by the second memory device.
As a kind of preferred version, processor in solid state hard disc also for: receive second memory device transmission recovery data after, according to the corresponding relation recovering predetermined storage area in physical memory cell and the second memory device in the mark of the predetermined storage area comprised in data and solid state hard disc, determine the pending physical memory cell in solid state hard disc, be stored to corresponding pending physical memory cell by the second memory device from the data that predetermined storage area reads by recovery data.Wherein, pending physical memory cell is corresponding with the predetermined storage area that the mark of predetermined storage area characterizes.
Based on this preferred scheme, the date restoring of the second memory device can will be stored in solid state hard disc.After installing the second solid state hard disc in the electronic device, can will be backed up to date restoring to the second solid state hard disc of the second memory device by the first solid state hard disc, data recovery procedure is transparent for user, and data are seamless copies.
The present invention also discloses a kind of electronic equipment, and this electronic equipment comprises above-mentioned any one solid state hard disc disclosed of the present invention.Electronic equipment disclosed by the invention, the data in solid state hard disc can be protected not lose, and solid state hard disc has higher reliability.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.