Summary of the invention
In view of this, data can be protected the purpose of the present invention is to provide a kind of information processing method and solid state hard disk
It is not lost, improves the reliability of solid state hard disk, and compared to the scheme of data in existing whole copy solid state hard disk, energy
Enough reduce data copy amount.The present invention also provides a kind of electronic equipment.
To achieve the above object, the invention provides the 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 solid state hard disk is monitored, N is the integer greater than 1;
Compare the status information and preset threshold of N number of physical memory cell;
In the case where comparison result shows that the solid state hard disk includes abnormal physical memory cell, reading is described very
The data of state physical memory cell storage, wherein the status information of the abnormal physical memory cell is lower than preset threshold;
To the second storage equipment backup data transmitting, the Backup Data includes reading from the abnormal physical memory cell
The mark of the data and the abnormal physical memory cell got.
It is optionally, described to store equipment backup data transmitting to second, specifically: the solid state hard disk passes through the logical of itself
Believe interface directly to the second storage equipment backup data transmitting.
Optionally, the predetermined storage area in the physical memory cell in the solid state hard disk and the second storage equipment
It corresponds.
Optionally, the above method further include: after electronic equipment installs the second solid state hard disk, by the second storage equipment
The data of storage are restored to second solid state hard disk.
Optionally, in the above method, the data of the second storage equipment storage are restored to second solid state hard disk,
It include: the recovery data for receiving the second storage equipment transmission, the recovery data packets include the second storage equipment from pre-
Determine the data of storage region reading and the mark of the predetermined storage area;According to the mark of the predetermined storage area and
The corresponding relationship of predetermined storage area, determines in the physical memory cell of second solid state hard disk and the second storage equipment
Physical memory cell to be processed in second solid state hard disk, the physical memory cell to be processed and the predetermined memory area
The predetermined storage area that the mark in domain is characterized is corresponding;It will be deposited by the second storage equipment from predetermined in the recovery data
The data that storage area domain is read are stored to corresponding physical memory cell to be processed.
Invention additionally discloses a kind of solid state hard disks, including M physical memory cell and controller;
The status information of N number of physical memory cell in solid state hard disk described in the monitoring control devices, N number of physics
The status information and preset threshold of storage unit show that the solid state hard disk includes abnormal physical memory cell in comparison result
In the case where, the data of the abnormal physical memory cell storage are read, it is described to the second storage equipment backup data transmitting
Backup Data includes the data read from the abnormal physical memory cell and the abnormal physical memory cell
Mark;
Wherein, M is the integer greater than 1, and N is the integer greater than 1 and no more than M, the abnormal physical memory cell
Status information is lower than preset threshold.
Optionally, above-mentioned solid state hard disk further includes communication interface;The controller stores equipment transmission backup number to second
According to specifically: the controller is by the communication interface directly to the second storage equipment backup data transmitting.
Optionally, the predetermined storage area in the physical memory cell in above-mentioned solid state hard disk and the second storage equipment
It corresponds.
Optionally, the controller is also used to: after the recovery data for receiving the second storage equipment transmission, root
According to physical memory cell and described second in the mark and solid state hard disk of the predetermined storage area for including in the recovery data
The corresponding relationship for storing predetermined storage area in equipment, determines the physical memory cell to be processed in the solid state hard disk, by institute
It states and restores to be stored from the data that predetermined storage area is read to corresponding physics to be processed in data by the second storage equipment
Storage unit;Wherein, the predetermined storage that the mark of the physical memory cell to be processed and the predetermined storage area is characterized
Region is corresponding.
Invention additionally discloses a kind of electronic equipment, the electronic equipment includes any one of the above solid state hard disk.
It can be seen that the invention has the benefit that
Information processing method disclosed by the invention monitors the status information of physical memory cell in solid state hard disk, passes through ratio
Compared with the status information of physical memory cell and preset threshold to determine whether solid state hard disk includes abnormal physical memory cell,
Exactly determine whether solid state hard disk includes the higher physical memory cell of failure probability, reads abnormal physical memory cell later
The data of storage, the mark of the data and abnormal physical memory cell that are read to the second storage equipment transmission.
Based on information processing method disclosed by the invention, determining that physical memory cell is abnormal physical memory cell
In the case where (occur failure probability higher), by the data that abnormal physical memory cell stores be transmitted to the second storage equipment into
Row backup, so that data be protected not to be lost, improves the reliability of solid state hard disk;In addition, information processing side disclosed by the invention
Method only carries out back-up processing to the data of physical memory cell abnormal in solid state hard disk storage, therefore reduces data copy
Amount;Data due to being transmitted to the second storage equipment are as unit of the physical memory cell in solid state hard disk, and data are presented
Fragmentation has preferable protectiveness.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention discloses a kind of information processing method, to protect data not to be lost, improve the reliability of solid state hard disk, and
And compared to the scheme of data in existing whole copy solid state hard disk, data copy amount can reduce.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of information processing method disclosed by the invention.
The information processing method includes:
Step S11: the status information of N number of physical memory cell in monitoring solid state hard disk.
Solid state hard disk includes M physical memory cell and controller.Wherein, M is the integer greater than 1, and N is whole greater than 1
Number.What needs to be explained here is that N can be the integer less than M, N can also be equal with M.That is, it is hard to monitor solid-state
The status information of whole physical memory cells in disk can also only monitor the state letter of part physical memory cell in solid state hard disk
Breath.
In implementation, if the physical memory cell in solid state hard disk can be individually removed and replaced for, the set-up time compared with
The probability that problem occurs to read and write in short physical memory cell is very low, therefore can only monitor the set-up time and reach pre- timing
The status information of long physical memory cell is supervised without the status information to set-up time shorter physical memory cell
It surveys.If the physical memory cell in solid state hard disk can not be dismantled individually, whole physical memory cells in solid state hard disk are monitored
Status information.
In the present invention, physical memory cell can be flash memory particle.
Step S12: the status information and preset threshold of more N number of physical memory cell.
Step S13: it in the case where comparison result shows that solid state hard disk includes abnormal physical memory cell, reads very
The data of state physical memory cell storage.
Step S14: to the second storage equipment backup data transmitting, Backup Data includes from the abnormal physical store list
The mark of data and the abnormal physical memory cell that member is read.
By comparing the status information and preset threshold of N number of physical memory cell, so that it may determine in solid state hard disk whether
Include abnormal physical memory cell.Wherein, the status information of abnormal physical memory cell is lower than preset threshold.Namely
It says, status information is confirmed as abnormal physical memory cell lower than the physical memory cell of preset threshold.Abnormal physics is deposited
The probability that storage unit will fail is higher, it is therefore desirable to read the data of abnormal physical memory cell storage, and will read
Data and abnormal physical memory cell mark to second storage equipment transmission.Second storage equipment receives Backup Data
Afterwards, the data read from the physical memory cell of solid state hard disk are stored.The label of physical memory cell in one solid state hard disk
With uniqueness, in implementation, the mark of physical memory cell can be the number of physical memory cell.
Information processing method disclosed by the invention monitors the status information of physical memory cell in solid state hard disk, passes through ratio
Compared with the status information of physical memory cell and preset threshold to determine whether solid state hard disk includes abnormal physical memory cell,
Exactly determine whether solid state hard disk includes the higher physical memory cell of failure probability, reads abnormal physical memory cell later
The data of storage, the mark of the data and abnormal physical memory cell that are read to the second storage equipment transmission.Based on this hair
Bright disclosed information processing method is determining that physical memory cell is abnormal physical memory cell (it is higher that failure probability occurs)
In the case where, the data that abnormal physical memory cell stores are transmitted to the second storage equipment and are backed up, to protect number
According to not being lost, the reliability of solid state hard disk is improved;In addition, information processing method disclosed by the invention is only to non-in solid state hard disk
The data of normality physical memory cell storage carry out back-up processing, therefore reduce data copy amount;It is deposited due to being transmitted to second
The data of storage equipment are as unit of the physical memory cell in solid state hard disk, and fragmentation is presented in data, have preferable protect
Shield property.
In present invention information processing method disclosed above, the status information of physical memory cell can be physical store
The remaining life of unit.The remaining life of physical memory cell is the erasable number of residue of physical memory cell.
The Firmware layer (firmware layer) of solid state hard disk records the erasable number of each physical memory cell.In implementation, benefit
It is the erasable number of residue that can determine each physical memory cell, i.e., each physics with the erasable number of the limit of physical memory cell
The remaining life of storage unit.Currently, the physical memory cell of single-layer type Storage Unit Type, usually executable 100,000 wipings
It writes, the physical memory cell of multiple field Storage Unit Type, usually executable erasable less than 10,000 times, three layers are storage unit classes
The physical memory cell of type, it is usually executable erasable less than 1,000 times.
In addition, the status information of flash memory particle can also be flash memory in the case that physical memory cell is flash memory particle
The quantity of normal flash block in grain.
The flash memory particle interior tissue of solid state hard disk is with flash block (block) for unit, the principal states packet of flash block
Include 5 kinds: normal flash block, wipes flash block, the flash block of program fail and the appearance to fail at the flash block for check errors occur
The flash block of error correcting code, only normal flash block is normal condition in this 5 kinds of flash blocks, remaining four kinds of flash block is abnormal shape
State.If the quantity of the flash block in flash memory particle in abnormality is excessive, the data that will result in the flash memory particle are lost
It loses.It therefore, can be using the quantity of normal flash block in flash memory particle as the status information of flash memory particle.
In the case where the status information of physical memory cell is remaining life, if the remaining life of physical memory cell
Lower than preset threshold, it is determined that the physical memory cell is abnormal physical memory cell, what the data of storage can not be read
Probability is higher, needs to read the data of abnormal physical memory cell storage, and the data read and abnormal physics are deposited
The mark of storage unit is transmitted to the second storage equipment.
In the case where the status information that physical memory cell is flash memory particle and flash memory particle is normal flash block, such as
The quantity of normal flash block is lower than preset threshold in fruit flash memory particle, it is determined that the flash memory particle is abnormal physical store list
Member, the probability that the data of storage can not be read is higher, needs to read the data of abnormal physical memory cell storage, and will read
The mark of the data and abnormal physical memory cell got is transmitted to the second storage equipment.
What needs to be explained here is that: the second storage equipment in the present invention can be cloud server, can be and solid-state
Hard disk belongs to another storage device an of electronic equipment, or the storage device in other electronic equipments.
In present invention information processing method disclosed above, solid state hard disk can be the component part of electronic equipment, Gu
After the Firmware layer of state hard disk reads the data of abnormal physical memory cell storage, executed by the operating system of electronic equipment
Operation to the second storage equipment backup data transmitting.
Communication interface is arranged in alternatively implementation in solid state hard disk, which can be independent
Equipment, or the component part of electronic equipment.Correspondingly, to the second storage equipment backup data transmitting specifically: solid-state
Hard disk is by the communication interface of itself directly to the second storage equipment backup data transmitting.That is, solid state hard disk directly to
Second storage equipment backup data transmitting, without the operating system by electronic equipment.Communication interface in solid state hard disk
It can use but be not limited to blue tooth interface and wifi (Wireless Fidelity) interface.
What needs to be explained here is that solid state hard disk passes through if the second storage equipment is the component part of an electronic equipment
The communication interface of itself is directly to the second storage equipment backup data transmitting are as follows: solid state hard disk is direct by the communication interface of itself
To second storage equipment where electronic equipment Backup Data, later by the equipment by Backup Data by solid state hard disk
The data that abnormal physical memory cell is read are stored to the second storage equipment.
Preferably, the predetermined storage area one in the physical memory cell in solid state hard disk and the second storage equipment
One is corresponding.It is passed in the mark for the data and abnormal physical memory cell for storing physical memory cell abnormal in solid state hard disk
It transports to after the second storage equipment, the second storage equipment deposits the abnormal physics according to the mark of abnormal physical memory cell
Data in storage unit are stored to corresponding storage region.
It is specifically described below:
The memory space of second storage equipment is divided into multiple storage regions in advance.It is deposited in the second storage the multiple of equipment
In storage area domain, a storage region is respectively distributed for M physical memory cell in solid state hard disk in advance, and establish in solid state hard disk
Mapping relations in physical memory cell and the second storage equipment between predetermined storage area.It is to be understood that in the second storage
In equipment, be provided in advance and the one-to-one physical vlan storage unit of M physical memory cell in solid state hard disk.
Second storage equipment utilizes the abnormal physical memory cell in Backup Data after receiving Backup Data
Mark, the memory space at itself are searched corresponding storage region, will be read in Backup Data by abnormal physical memory cell
Data store to the storage region.
Invention additionally discloses another preferred scheme, on the basis of information processing method shown in Fig. 1, further includes:
After electronic equipment installs the second solid state hard disk, the data of the second storage equipment storage are restored to the second solid state hard disk.
After electronic equipment installs the second solid state hard disk, electronic equipment will be stored in the data of the second storage equipment automatically
Restore to the second solid state hard disk, for a user, entire data recovery procedure is transparent.What needs to be explained here is that can
With in the case where retaining the original solid state hard disk of electronic equipment, then another solid state hard disk is installed and (it is hard to be denoted as the second solid-state
Disk), can also be in the case where disassembly electronic equipment original solid state hard disk, then the second solid state hard disk is installed, that is, replace
Solid state hard disk in electronic equipment.
In implementation, the data of the second storage equipment storage are restored to the second solid state hard disk, can be used as shown in Figure 2
Mode, comprising:
Step S21: the recovery data of the second storage equipment transmission are received.
Wherein, recovery data packets include the data and the predetermined storage that the second storage equipment is read from predetermined storage area
The mark in region.
Second storage equipment (for the second solid state hard disk, is somebody's turn to do after receiving Backup Data according to solid state hard disk
Solid state hard disk is denoted as the first solid state hard disk) in the mark of abnormal physical memory cell will be in the abnormal physical memory cell
Data are stored to corresponding storage region.In the data transmission channel established between the second solid state hard disk and the second storage equipment
Afterwards, the second storage equipment reads the data of predetermined storage area, transmits to the second solid state hard disk from predetermined storage area and reads
Data and the predetermined storage area mark.
Step S22: it is deposited according to the physical memory cell of the mark of predetermined storage area and the second solid state hard disk with second
The corresponding relationship for storing up predetermined storage area in equipment, determines the physical memory cell to be processed in the second solid state hard disk.Wherein, to
Processing physical memory cell is corresponding with the predetermined storage area that the mark for restoring the predetermined storage area that data carry is characterized.
The predetermined storage area in physical memory cell and the second storage equipment in second solid state hard disk corresponds, and
And second solid state hard disk be stored with itself physical memory cell and second storage equipment in presumptive area corresponding relationship.Here
It should be noted that the mark of physical memory cell continues to use physical memory cell in the first solid state hard disk in the second solid state hard disk
Mark.
After the recovery data for receiving the transmission of the second storage equipment, the predetermined storage area in the recovery data is utilized
Mark and the second solid state hard disk physical memory cell and second storage equipment in predetermined storage area corresponding relationship,
Corresponding physical memory cell to be processed is assured that in the second solid state hard disk.
Step S23: will restore to be stored from the data that predetermined storage area is read to corresponding in data by the second storage equipment
Physical memory cell to be processed.
According to method shown in Fig. 2 carry out data recovery after, storage location of the data in the first solid state hard disk with it is identical
Storage location of the data in the second solid state hard disk be it is corresponding, realize the seamless copy of data.
Invention additionally discloses a kind of solid state hard disk, structure is as shown in figure 3, include M physical memory cell and controller
200, wherein M is the integer greater than 1, and M physical memory cell is with 100 marks in Fig. 3.
Controller 200 monitors the status information of N number of physical memory cell in solid state hard disk.Wherein, N is greater than 1 and little
In the integer of M.That is, controller 200 can monitor the status information of whole physical memory cells in solid state hard disk, it can also
Only to monitor the status information of part physical memory cell in solid state hard disk.In implementation, if the physical store in solid state hard disk
Unit can be individually removed and replaced for, then the state that can only monitor the physical memory cell that the set-up time reaches scheduled duration is believed
Breath is monitored without the status information to set-up time shorter physical memory cell.If the physics in solid state hard disk is deposited
Storage unit can not be dismantled individually, then monitor the status information of whole physical memory cells in solid state hard disk.
The status information and preset threshold of the more N number of physical memory cell of controller 200, show that solid-state is hard in comparison result
In the case that disk includes abnormal physical memory cell, the data of abnormal physical memory cell storage are read, to the second storage
Equipment backup data transmitting.Wherein, the status information of abnormal physical memory cell is lower than preset threshold.Backup Data include from
The mark of data and abnormal physical memory cell that abnormal physical memory cell is read.
Solid state hard disk disclosed by the invention is determining that physical memory cell is that abnormal physical memory cell (fails
Probability is higher) in the case where, the data that abnormal physical memory cell stores are transmitted to the second storage equipment and are backed up, from
And data is protected not to be lost, improve the reliability of solid state hard disk;In addition, solid state hard disk disclosed by the invention is only to abnormal object
The data for managing storage unit storage carry out back-up processing, therefore reduce data copy amount;Due to being transmitted to the second storage equipment
Data be as unit of physical memory cell, data present fragmentation, have preferable protectiveness.
What needs to be explained here is that the status information of physical memory cell can be the remaining life of physical memory cell.
The remaining life of physical memory cell is the erasable number of residue of physical memory cell.The control of solid state hard disk disclosed by the invention
Device processed records the erasable number of each physical memory cell, utilizes the erasable number of the limit of physical memory cell and the N of record
The erasable number of a physical memory cell, so that it may determine the erasable number of residue of N number of physical memory cell, i.e., N number of object respectively
Manage the remaining life of storage unit.
In addition, the status information of flash memory particle can also be flash memory in the case that physical memory cell is flash memory particle
The quantity of normal flash block in grain.
Present invention solid state hard disk disclosed above can be the component part of electronic equipment, and the controller of solid state hard disk is read
After the data of abnormal physical memory cell storage, it can be executed from the operating system of electronic equipment standby to the second storage equipment transmission
The operation of part data.
Invention additionally discloses a kind of solid state hard disks as shown in Figure 4.It is shown in Fig. 4 solid compared with the solid state hard disk shown in Fig. 3
State hard disk further includes communication interface 300.In implementation, which can use but be not limited to blue tooth interface and wifi connects
Mouthful.Controller 200 stores equipment backup data transmitting to second, specifically: controller is directly deposited to second by communication interface
Store up equipment backup data transmitting.
That is, present invention solid state hard disk shown in Fig. 4 directly can store equipment backup data transmitting to second, and
The operating system by electronic equipment is not needed.
Preferably, the predetermined storage area one in the physical memory cell in solid state hard disk and the second storage equipment
One is corresponding.It is passed in the mark for the data and abnormal physical memory cell for storing physical memory cell abnormal in solid state hard disk
It transports to after the second storage equipment, the second storage equipment deposits the abnormal physics according to the mark of abnormal physical memory cell
Data in storage unit are stored to corresponding storage region.
As a preferred embodiment, the controller in solid state hard disk is also used to: receiving the transmission of the second storage equipment
After restoring data, according to physical store list in the mark and solid state hard disk of the predetermined storage area for restoring to include in data
The corresponding relationship of member and predetermined storage area in the second storage equipment, determines the physical memory cell to be processed in solid state hard disk,
It will restore to be stored from the data that predetermined storage area is read to corresponding physical store to be processed in data by the second storage equipment
Unit.Wherein, physical memory cell to be processed is corresponding with the predetermined storage area that the mark of predetermined storage area is characterized.
Based on the preferred scheme, the data for being stored in the second storage equipment can be restored to solid state hard disk.When in electricity
After second solid state hard disk is installed in sub- equipment, the data for backing up to the second storage equipment by the first solid state hard disk can be restored to
Second solid state hard disk, data recovery procedure is transparent for a user, and data are seamless copies.
Invention additionally discloses a kind of electronic equipment, which includes that the present invention any one solid-state disclosed above is hard
Disk.Electronic equipment disclosed by the invention can protect the data in solid state hard disk not lose, and solid state hard disk is with higher reliable
Property.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.