CN106201346A - A kind of data processing method and storage device - Google Patents
A kind of data processing method and storage device Download PDFInfo
- Publication number
- CN106201346A CN106201346A CN201610509986.4A CN201610509986A CN106201346A CN 106201346 A CN106201346 A CN 106201346A CN 201610509986 A CN201610509986 A CN 201610509986A CN 106201346 A CN106201346 A CN 106201346A
- Authority
- CN
- China
- Prior art keywords
- territory
- data
- target storage
- write
- written
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
This application provides a kind of data processing method and storage device, data processing method includes: when receiving data to be written, determines the territory, target storage of data to be written;Detection territory, target storage, it is thus achieved that the first testing result, the first testing result characterizes the attribute character in territory, target storage;When attribute character meets pre-conditioned, with the write operation to territory, target storage of first strategy execution;When attribute character is unsatisfactory for pre-conditioned, with the write operation to territory, target storage of second strategy execution.No matter the attribute character in territory, target storage how, i.e., the memory block no matter territory, target storage has been also time bad memory block, data processing method and storage device that the application provides can be written into data write territory, target storage, this makes memory block bad in storage device be utilized, the i.e. memory space of storage device is extended, and substantially increases the utilization rate of storage device.
Description
Technical field
The present invention relates to data processing field, a kind of data processing method and storage device.
Background technology
The type of storage device has a lot, has the memory space of a kind of storage device to carry out with the form of data block one by one
Divide, such as, SSD (Solid State Drives, solid state hard disc).When using such storage device, permissible
Its data block is carried out the most erasable to be stored in different data, and along with storage device uses the prolongation of time, data block
Erasable number of times the most gradually increases, and accordingly, in storage device, the number of bad block the most gradually increases.Wherein, bad block refers in read-write
During system discovery be marked as, owing to some data block produces the error in data that cannot correct, the data that cannot use
Block, say, that after a certain data block is marked as bad block, system stores data by not recycling labeled bad block.
Due to the limited storage space of storage device, therefore, along with in storage device, bad number of blocks gets more and more, accordingly
, the data volume that storage device can store is the most fewer and feweri.Therefore, how to utilize the bad block in storage device, to guarantee to deposit
The memory space of storage equipment becomes the technical problem that those skilled in the art are urgently to be resolved hurrily.
Summary of the invention
In view of this, the invention provides a kind of data processing method and storage device, in order to solve in prior art, deposit
In storage equipment, bad number of blocks gets more and more, the data volume problem the most less and less causing storage device to store, its technology
Scheme is as follows:
A kind of data processing method, it is characterised in that the method includes:
When receiving data to be written, determine the territory, target storage of described data to be written;
Detecting territory, described target storage, it is thus achieved that the first testing result, described first testing result characterizes described target and deposits
The attribute character in storage area territory;
When described attribute character meets pre-conditioned, with the first strategy execution, the write in territory, described target storage is grasped
Make;
When described attribute character be unsatisfactory for described pre-conditioned time, with the second strategy to territory, described target storage perform write
Enter operation.
Wherein, territory, described target storage is detected, it is thus achieved that the first testing result, including:
Detect the reading writing information in territory, described target storage, it is thus achieved that the read-write ginseng that territory, described target storage is written and read
Number.
Wherein, the attribute character in territory, described target storage that described first testing result characterizes meet pre-conditioned specifically
For:
The read-write parameter being written and read territory, described target storage is more than preset value.
Wherein, the described write operation with the first strategy execution to described memory area, including:
Preset backup quantity by first and write identical with the described first default backup quantity in territory, described target storage
The data described to be written of number;
Described with the second strategy to territory, described target storage perform write operation, including:
Preset backup quantity by second to write in territory, described target storage and described second backup quantity equal parts
Data described to be written;
Wherein, the described first default backup quantity presets backup quantity more than described second.
Preferably, described data processing method also includes:
To when being read out with the data in described first strategy write territory, described target storage, preset verification by first
Figure place carries out error correction to described data;
To when being read out with the data in described second strategy write territory, described target storage, preset verification by second
Figure place carries out error correction to described data;
Wherein, the described first default verification figure place presets verification figure place more than described second.
Preferably, in described data to be written are preset period of time, reading times is less than the data of preset times.
Preferably, described data processing method also includes:
During territory, described target storage read-write data, if it occur that the error in data that cannot correct, then will
Described target storage domain identifier is unavailable memory area.
A kind of storage device, including: controller and memory element;
Described memory element, is used for storing data;
Described controller, for when receiving data to be written, determines described number to be written from described memory element
According to territory, target storage, detect territory, described target storage, it is thus achieved that the first testing result, described first testing result characterize institute
State the attribute character in territory, target storage;When described attribute character meets pre-conditioned, with the first strategy execution to described mesh
The write operation of mark memory area;When described attribute character be unsatisfactory for described pre-conditioned time, with the second strategy execution to described
The write operation in territory, target storage.
Wherein, the described controller in territory, described detection described target storage, specifically for detecting described target storage
The reading writing information in territory, it is thus achieved that the read-write parameter that territory, described target storage is written and read.
Wherein, the attribute character in territory, described target storage that described first testing result characterizes meet pre-conditioned specifically
For: the read-write parameter being written and read territory, described target storage is more than preset value.
Wherein, the described described controller with the first strategy execution to the write operation of described memory area, specifically for
Preset backup quantity by first to write in territory, described target storage and the described first institute presetting backup quantity equal parts
State data to be written;
The described described controller that territory, described target storage performs write operation with the second strategy, specifically for by the
Two default backup quantity write in territory, described target storage and back up the described to be written of quantity equal parts with described second
Data;
Wherein, the described first default backup quantity presets backup quantity more than described second.
Preferably, described controller, it is additionally operable to the data with described first strategy write territory, described target storage
When being read out, preset verification figure place by first and described data are carried out error correction, be additionally operable to described second strategy write
When the data in territory, described target storage are read out, preset verification figure place by second and described data are carried out error correction;Wherein, institute
State the first default verification figure place and preset verification figure place more than described second.
Preferably, in described data to be written are preset period of time, reading times is less than the data of preset times.
Preferably, described controller, it is additionally operable to the territory, described target storage of described memory element read-write data
During, if it occur that the error in data that cannot correct, then it is unavailable memory area by described target storage domain identifier.
Technique scheme has the advantages that
The data processing method of present invention offer and storage device, when receiving data to be written, it is possible to detect to be written
Enter the attribute character in the territory, target storage of data, can determine that the write-in policy to data to be written based on this attribute character, tool
Body, if attribute character meets pre-conditioned, then by the write operation to territory, target storage of first strategy execution, otherwise,
By second strategy execution different from the first strategy write operation to territory, target storage, it can be seen that, no matter target stores
The attribute character in region is how, i.e. the memory block no matter territory, target storage has been also time bad memory block, present invention offer
Data processing method and storage device can be written into data write territory, target storage, and this makes bad depositing in storage device
Storage block is utilized, i.e. the memory space of storage device is extended, and substantially increases the utilization rate of storage device.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to
The accompanying drawing provided obtains other accompanying drawing.
One schematic flow sheet of the data processing method that Fig. 1 provides for the embodiment of the present invention;
Another schematic flow sheet of the data processing method that Fig. 2 provides for the embodiment of the present invention;
One structural representation of the storage device that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of data processing method, be applied to a storage device, refer to Fig. 1, it is shown that
The schematic flow sheet of the method, the method may include that
Step S101: when receiving data to be written, determines the territory, target storage of data to be written.
Wherein, data to be written can but be not limited to the private data preset, it is also possible to be to read in preset period of time time
Number, less than the data of preset times, is the data that user is rarely employed.
Step S102: detection territory, target storage, it is thus achieved that the first testing result.
Wherein, the first testing result characterizes the attribute character in territory, target storage.Concrete, detect territory, target storage,
Obtain the first testing result, including: the reading writing information in detection territory, target storage, it is thus achieved that territory, target storage is written and read
Read-write parameter.
Step S103a: when attribute character meets pre-conditioned, with the write to territory, target storage of first strategy execution
Operation.
Wherein, the attribute character in territory, target storage that the first testing result characterizes meets pre-conditioned particularly as follows: to mesh
The read-write parameter that mark memory area is written and read is more than preset value, and such as, read-write parameter is the read-write to territory, target storage time
Number, if to the read-write number of times in territory, target storage more than preset times, showing that territory, target storage is bad memory block, then with
The write operation to memory area of first strategy execution.
Step S103b: when attribute character is unsatisfactory for pre-conditioned, writes territory, target storage with the second strategy execution
Enter operation.
Wherein, the attribute character in territory, target storage that the first testing result characterizes meets pre-conditioned particularly as follows: to mesh
The read-write parameter that mark memory area is written and read is less than or equal to preset value, and such as, read-write parameter is the read-write to target area
Number of times, if read-write number of times is less than or equal to preset times, shows territory, target storage memory block preferably, then with the second strategy
Perform the write operation to memory area.
The data processing method that the embodiment of the present invention provides, when receiving data to be written, it is possible to detect number to be written
According to the attribute character in territory, target storage, can determine that the write-in policy to data to be written based on this attribute character, concrete,
If attribute character meets pre-conditioned, then by the write operation to territory, target storage of first strategy execution, otherwise, by with the
The write operation to territory, target storage of one tactful the second different strategy execution, it can be seen that, regardless of territory, target storage
Attribute character is how, i.e. the memory block no matter territory, target storage has been also time bad memory block, the embodiment of the present invention can be by
Data to be written write territory, target storage, this makes memory block bad in storage device be utilized, i.e. the depositing of storage device
Storage space is extended, and substantially increases the utilization rate of storage device.
Refer to Fig. 2, it is shown that the schematic flow sheet of the another kind of data processing method that the embodiment of the present invention provides, application
In a storage device, the method may include that
Step S201: when receiving data to be written, determines the territory, target storage of data to be written.
Wherein, data to be written can but be not limited to the private data preset, it is also possible to be to read in preset period of time time
Number, less than the data of preset times, is the data that user is rarely employed.
Step S202: detection territory, target storage, it is thus achieved that the first testing result.
Wherein, the first testing result characterizes the attribute character in territory, target storage.Concrete, detect territory, target storage,
Obtain the first testing result, including: the reading writing information in detection territory, target storage, it is thus achieved that territory, target storage is written and read
Read-write parameter.
Step S203a: when attribute character meets pre-conditioned, grasps the write of memory area with the first strategy execution
Make.
Wherein, the attribute character in territory, target storage that the first testing result characterizes meets pre-conditioned particularly as follows: to mesh
The read-write parameter that mark memory area is written and read is more than preset value, and such as, read-write parameter is the read-write to territory, target storage time
Number, if to the read-write number of times in territory, target storage more than preset times, show that territory, target storage is bad memory block, then
With the write operation to memory area of first strategy execution.
Step S204a: to when being read out with the data in the first strategy write territory, target storage, preset school by first
Test figure place and data are carried out error correction.
Step S203b: when attribute character is unsatisfactory for pre-conditioned, performs write with the second strategy to territory, target storage
Operation.
Wherein, the attribute character in territory, target storage that the first testing result characterizes is unsatisfactory for pre-conditioned particularly as follows: right
The read-write parameter that territory, target storage is written and read is less than or equal to preset value, and such as, read-write parameter is to territory, target storage
Read-write number of times, if read-write number of times is less than or equal to preset times, then with the first strategy execution, territory, target storage is write
Enter operation.
It should be noted that before territory, target storage is performed write operation, if in territory, target storage there being storage
Data, then need first the data in territory, target storage to be wiped.
Step S204b: to when being read out with the data in the second strategy write territory, target storage, preset school by second
Test figure place and data are carried out error correction.
Wherein, first preset check bit and preset check bit more than second.
In the present embodiment, when the read-write parameter in territory, target storage is more than preset value, show that territory, target storage is
The memory block of block, now with the write operation to memory area of first strategy execution, concrete, preset backup quantity by first and exist
In territory, target storage, write and the first data to be written presetting backup quantity equal parts, be i.e. written into data in target
Memory area writes many parts.Exemplary, data to be written are x, are written into data and write five parts in territory, target storage,
Assume that the data read out are x, x, x, y, x, then this digital display should be so x, in this way, is equivalent to data
Read error carried out error correction.
When the read-write number of times in territory, target storage is less than or equal to preset value, show the storage preferably of territory, target storage
Block, now performs write operation with the second strategy to territory, target storage, concrete, presets backup quantity by second and deposits in target
Write and the second data to be written backing up quantity equal parts in storage area territory, wherein, second presets backup quantity less than second
Preset backup quantity.That is, when territory, target storage memory block preferably, it is normally written, and not be used in target storage
Territory writes the data of more part.
Ablation process in the case of contrasting two kinds is it is found that the embodiment of the present invention is to the data in the bad memory block of write
The mode taking the most backups of data redundancy writes, and this makes, when the data writing territory, target storage are read out,
Can therefrom pick out just data.
It addition, when carrying out digital independent, in order to improve error correction effect during digital independent, write compared to the second strategy
For entering the data in territory, target storage, the embodiment of the present invention is used more with the data acquisition in the first strategy write territory, target storage
Many check bit carry out error correction to data.Exemplary, in the write read-write number of times memory area less than or equal to preset value
Data when being read out, when i.e. reading data from good memory block, use bit check bit up to a hundred to carry out error correction, and to writing
Enter to read and write number of times more than preset value memory area in data be read out time, i.e. from bad memory block read data time,
Use more check bit to carry out error correction, thus obtain more preferable error correction effect.
In the present embodiment, if territory, target storage is the memory area that attribute character is more than preset value, then to
During territory, target storage read-write data, if it occur that the error in data that cannot correct, then by target storage domain identifier
For unavailable memory area, if being i.e. bad memory block before territory, target storage, in its read-write data of follow-up re-using,
If it degenerates further, the most do not recycle this memory area.
The data processing method that the present invention provides, when receiving data to be written, it is possible to detect the mesh of data to be written
The attribute character of mark memory area, can determine that the write-in policy to data to be written based on this attribute character, concrete, if belonged to
Property feature meet pre-conditioned, then by the write operation to territory, target storage of first strategy execution, otherwise, by and the first strategy
The the second different strategy execution write operation to territory, target storage, it can be seen that, the attribute regardless of territory, target storage is special
How levy, i.e. the memory block no matter territory, target storage has been also time bad memory block, the storage device of present invention offer can
Be written into data write territory, target storage, this makes memory block bad in storage device be utilized, i.e. storage device
Memory space is extended, and substantially increases the utilization rate of storage device.
The embodiment of the present invention additionally provides a kind of storage device, refers to Fig. 3, it is shown that but the structural representation of this storage device
Figure, including: controller 301 and memory element 302.Wherein:
Memory element 302, is used for storing data.
Controller 301, for when receiving data to be written, determines the mesh of data to be written from memory element 302
Mark memory area, detects territory, target storage, it is thus achieved that the first testing result, and the first testing result characterizes the genus in territory, target storage
Property feature;When the attribute character in territory, target storage meets pre-conditioned, with the first strategy execution to territory, target storage
Write operation;When the attribute character in territory, target storage is unsatisfactory for pre-conditioned, with the second strategy, territory, target storage is held
Row write operation.
The storage device that the embodiment of the present invention provides, when receiving data to be written, it is possible to detect data to be written
The attribute character in territory, target storage, can determine that the write-in policy to data to be written based on this attribute character, concrete, if
Attribute character meets pre-conditioned, then by the write operation to territory, target storage of first strategy execution, otherwise, press and the first plan
The the second the most different strategy execution write operation to territory, target storage, it can be seen that, regardless of the attribute in territory, target storage
Feature is how, i.e. the memory block no matter territory, target storage has been also time bad memory block, the storage of embodiment of the present invention offer
Equipment can be written into data write territory, target storage, and this makes memory block bad in storage device be utilized, i.e. deposits
The memory space of storage equipment is extended, and substantially increases the utilization rate of storage device.
In the storage device that above-described embodiment provides, the controller in detection territory, target storage, specifically for detection mesh
The reading writing information of mark memory area, it is thus achieved that the read-write parameter that territory, target storage is written and read.
In the storage device that above-described embodiment provides, the attribute character in the territory, target storage that the first testing result characterizes
Meet pre-conditioned particularly as follows: the read-write parameter being written and read territory, target storage is more than preset value.
In the storage device that above-described embodiment provides, with the control to the write operation of memory area of first strategy execution
Device, writes and the first default backup quantity equal parts specifically for presetting backup quantity by first in territory, target storage
Data to be written.
In the storage device that above-described embodiment provides, with the second strategy, territory, target storage is performed the control of write operation
Device processed, writes and the institute of the second backup quantity equal parts specifically for presetting backup quantity by second in territory, target storage
State data to be written.
Wherein, the first default backup quantity presets backup quantity more than described second.
In the storage device that above-described embodiment provides, controller, it is additionally operable to the first strategy write target storage
When the data in region are read out, preset verification figure place by first and data are carried out error correction, be additionally operable to writing with the second strategy
Enter the data in territory, target storage when being read out, preset verification figure place by second and described data are carried out error correction.Wherein, first
Preset check bit and preset check bit more than second.
Preferably, in data to be written are preset period of time, reading times is less than the data of preset times.
In the storage device that above-described embodiment provides, controller, it is additionally operable to the territory, target storage of memory element
During read-write data, if it occur that the error in data that cannot correct, then it is unavailable storage by target storage domain identifier
Region.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, identical similar portion sees mutually.
In several embodiments provided herein, it should be understood that disclosed method, device and equipment, permissible
Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit
Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or
The coupling each other discussed or direct-coupling or communication connection can be by between some communication interfaces, device or unit
Connect coupling or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be each
Unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (14)
1. a data processing method, it is characterised in that the method includes:
When receiving data to be written, determine the territory, target storage of described data to be written;
Detecting territory, described target storage, it is thus achieved that the first testing result, described first testing result characterizes described target storage
The attribute character in territory;
When described attribute character meets pre-conditioned, with the write operation to territory, described target storage of first strategy execution;
When described attribute character be unsatisfactory for described pre-conditioned time, with the write to territory, described target storage of second strategy execution
Operation.
Data processing method the most according to claim 1, it is characterised in that detect territory, described target storage, it is thus achieved that the
One testing result, including:
Detect the reading writing information in territory, described target storage, it is thus achieved that the read-write parameter that territory, described target storage is written and read.
Data processing method the most according to claim 2, it is characterised in that the described mesh that described first testing result characterizes
Mark memory area attribute character meet pre-conditioned particularly as follows:
The read-write parameter being written and read territory, described target storage is more than preset value.
Data processing method the most according to claim 1, it is characterised in that described with the first strategy execution to described storage
The write operation in region, including:
Preset backup quantity by first to write in territory, described target storage and the described first default backup quantity equal parts
Data described to be written;
Described with the second strategy to territory, described target storage perform write operation, including:
Preset backup quantity by second to write in territory, described target storage and the institute of described second backup quantity equal parts
State data to be written;
Wherein, the described first default backup quantity presets backup quantity more than described second.
5. according to the data processing method described in any one in claim 1-4, it is characterised in that described method also includes:
To when being read out with the data in described first strategy write territory, described target storage, preset verification figure place by first
Described data are carried out error correction;
To when being read out with the data in described second strategy write territory, described target storage, preset verification figure place by second
Described data are carried out error correction;
Wherein, the described first default verification figure place presets verification figure place more than described second.
Data processing method the most according to claim 1, it is characterised in that described data to be written are reading in preset period of time
Take the number of times data less than preset times.
Data processing method the most according to claim 1, it is characterised in that described method also includes:
During reading and writing data to territory, described target storage, if it occur that the error in data that cannot correct, then by described
Target storage domain identifier is unavailable memory area.
8. a storage device, it is characterised in that including: controller and memory element;
Described memory element, is used for storing data;
Described controller, for when receiving data to be written, determines described data to be written from described memory element
Territory, target storage, detects territory, described target storage, it is thus achieved that the first testing result, and described first testing result characterizes described mesh
The attribute character of mark memory area;When described attribute character meets pre-conditioned, with the first strategy execution, described target is deposited
The write operation in storage area territory;When described attribute character be unsatisfactory for described pre-conditioned time, with the second strategy execution to described target
The write operation of memory area.
Storage device the most according to claim 8, it is characterised in that the described control in territory, described detection described target storage
Device processed, specifically for detecting the reading writing information in territory, described target storage, it is thus achieved that be written and read territory, described target storage
Read-write parameter.
Storage device the most according to claim 9, it is characterised in that the described target that described first testing result characterizes
The attribute character of memory area meets pre-conditioned particularly as follows: the read-write parameter being written and read territory, described target storage is more than
Preset value.
11. storage devices according to claim 8, it is characterised in that described with the first strategy execution to described memory block
The described controller of the write operation in territory, specifically for by first preset backup quantity write in territory, described target storage and
Described first data described to be written presetting backup quantity equal parts;
The described described controller that territory, described target storage performs write operation with the second strategy, specifically for pre-by second
Equipment number amount writes and the data described to be written of described second backup quantity equal parts in territory, described target storage;
Wherein, the described first default backup quantity presets backup quantity more than described second.
12. storage devices described in any one in-11 according to Claim 8, it is characterised in that described controller, are additionally operable to
To when being read out with the data in described first strategy write territory, described target storage, preset verification figure place to institute by first
State data and carry out error correction, be additionally operable to when the data writing territory, described target storage with described second strategy are read out,
Preset verification figure place by second and described data are carried out error correction;Wherein, described first to preset verification figure place second pre-more than described
If verification figure place.
13. storage devices according to claim 8, it is characterised in that described data to be written are reading in preset period of time
Number of times is less than the data of preset times.
14. storage devices according to claim 8, it is characterised in that described controller, are additionally operable to single to described storage
During territory, the described target storage read-write data of unit, if it occur that the error in data that cannot correct, then by described target
Memory area is designated unavailable memory area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610509986.4A CN106201346B (en) | 2016-06-30 | 2016-06-30 | A kind of data processing method and storage equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610509986.4A CN106201346B (en) | 2016-06-30 | 2016-06-30 | A kind of data processing method and storage equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106201346A true CN106201346A (en) | 2016-12-07 |
CN106201346B CN106201346B (en) | 2019-06-25 |
Family
ID=57462844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610509986.4A Active CN106201346B (en) | 2016-06-30 | 2016-06-30 | A kind of data processing method and storage equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201346B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144770A (en) * | 2018-08-02 | 2019-01-04 | 联想(北京)有限公司 | The data processing method and device of storage system |
CN110597469A (en) * | 2019-10-23 | 2019-12-20 | Oppo广东移动通信有限公司 | Storage partition write protection method and device and computer readable storage medium |
CN111176552A (en) * | 2018-11-12 | 2020-05-19 | 三星电子株式会社 | Method for operating storage device, storage device and storage system comprising storage device |
CN114415961A (en) * | 2022-01-21 | 2022-04-29 | 珠海奔图电子有限公司 | Bad block processing method of Nand flash memory, electronic equipment and storage medium |
CN111176552B (en) * | 2018-11-12 | 2024-06-04 | 三星电子株式会社 | Method of operating a storage device, storage device and storage system comprising the same |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6000039A (en) * | 1991-04-01 | 1999-12-07 | Hitachi, Ltd. | Data reconstruction method and system wherein timing of data reconstruction is controlled in accordance with conditions when a failure occurs |
US6728913B1 (en) * | 2000-02-25 | 2004-04-27 | Advanced Micro Devices, Inc. | Data recycling in memory |
US20080244035A1 (en) * | 2007-03-30 | 2008-10-02 | Nec Corporation | Remote copy system and remote copy method |
US20110191521A1 (en) * | 2009-07-23 | 2011-08-04 | Hitachi, Ltd. | Flash memory device |
CN103257830A (en) * | 2012-02-17 | 2013-08-21 | 联想(北京)有限公司 | Storage cell accessing method and storage cell |
US8527722B1 (en) * | 2012-04-24 | 2013-09-03 | Hitachi, Ltd. | Selecting a snapshot method based on cache memory consumption |
US8589646B2 (en) * | 2009-10-13 | 2013-11-19 | Fujitsu Limited | Storage apparatus and method for storage apparatus |
CN103514096A (en) * | 2012-06-18 | 2014-01-15 | 群联电子股份有限公司 | Data storage method, memory controller and memory storage device |
US8767467B2 (en) * | 2011-06-21 | 2014-07-01 | Micron Technology, Inc. | In-field block retiring |
CN105095101A (en) * | 2015-08-03 | 2015-11-25 | 昆腾微电子股份有限公司 | Method and device for writing data in memorizer and intelligent card |
CN105224254A (en) * | 2015-09-29 | 2016-01-06 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
CN105373350A (en) * | 2015-11-23 | 2016-03-02 | 联想(北京)有限公司 | Data management method and device |
CN105630705A (en) * | 2015-06-10 | 2016-06-01 | 上海磁宇信息科技有限公司 | Data storage device and read-write method applying block replacement table |
-
2016
- 2016-06-30 CN CN201610509986.4A patent/CN106201346B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6000039A (en) * | 1991-04-01 | 1999-12-07 | Hitachi, Ltd. | Data reconstruction method and system wherein timing of data reconstruction is controlled in accordance with conditions when a failure occurs |
US6728913B1 (en) * | 2000-02-25 | 2004-04-27 | Advanced Micro Devices, Inc. | Data recycling in memory |
US20080244035A1 (en) * | 2007-03-30 | 2008-10-02 | Nec Corporation | Remote copy system and remote copy method |
US20110191521A1 (en) * | 2009-07-23 | 2011-08-04 | Hitachi, Ltd. | Flash memory device |
US8589646B2 (en) * | 2009-10-13 | 2013-11-19 | Fujitsu Limited | Storage apparatus and method for storage apparatus |
US8767467B2 (en) * | 2011-06-21 | 2014-07-01 | Micron Technology, Inc. | In-field block retiring |
CN103257830A (en) * | 2012-02-17 | 2013-08-21 | 联想(北京)有限公司 | Storage cell accessing method and storage cell |
US8527722B1 (en) * | 2012-04-24 | 2013-09-03 | Hitachi, Ltd. | Selecting a snapshot method based on cache memory consumption |
CN103514096A (en) * | 2012-06-18 | 2014-01-15 | 群联电子股份有限公司 | Data storage method, memory controller and memory storage device |
CN105630705A (en) * | 2015-06-10 | 2016-06-01 | 上海磁宇信息科技有限公司 | Data storage device and read-write method applying block replacement table |
CN105095101A (en) * | 2015-08-03 | 2015-11-25 | 昆腾微电子股份有限公司 | Method and device for writing data in memorizer and intelligent card |
CN105224254A (en) * | 2015-09-29 | 2016-01-06 | 联想(北京)有限公司 | A kind of data processing method and electronic equipment |
CN105373350A (en) * | 2015-11-23 | 2016-03-02 | 联想(北京)有限公司 | Data management method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144770A (en) * | 2018-08-02 | 2019-01-04 | 联想(北京)有限公司 | The data processing method and device of storage system |
CN109144770B (en) * | 2018-08-02 | 2020-11-20 | 联想(北京)有限公司 | Data processing method and device of storage system |
CN111176552A (en) * | 2018-11-12 | 2020-05-19 | 三星电子株式会社 | Method for operating storage device, storage device and storage system comprising storage device |
CN111176552B (en) * | 2018-11-12 | 2024-06-04 | 三星电子株式会社 | Method of operating a storage device, storage device and storage system comprising the same |
CN110597469A (en) * | 2019-10-23 | 2019-12-20 | Oppo广东移动通信有限公司 | Storage partition write protection method and device and computer readable storage medium |
CN114415961A (en) * | 2022-01-21 | 2022-04-29 | 珠海奔图电子有限公司 | Bad block processing method of Nand flash memory, electronic equipment and storage medium |
CN114415961B (en) * | 2022-01-21 | 2023-10-27 | 珠海奔图电子有限公司 | Bad block processing method of Nand flash memory, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106201346B (en) | 2019-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103927251B (en) | Log management method for embedded system | |
CN104461390B (en) | Write data into the method and device of imbricate magnetic recording SMR hard disks | |
CN103608784B (en) | Method for creating network volumes, data storage method, storage device and storage system | |
CN106873908A (en) | Date storage method and device | |
CN103942151A (en) | Data storage method and device for flash memory | |
CN106201346A (en) | A kind of data processing method and storage device | |
CN104216796A (en) | Data backup and recovery method and electronic device | |
CN100437504C (en) | Hard disc data backup system and method | |
CN110007858B (en) | Storage space allocation method and device | |
CN107731262A (en) | A kind of storage disk bad block management method, device, equipment and readable storage medium storing program for executing | |
CN102096561A (en) | Hierarchical data storage processing method, device and storage equipment | |
CN105404533A (en) | Program upgrading method and apparatus | |
CN106201652A (en) | A kind of data processing method and virtual machine | |
CN102025758B (en) | Method, device and system for recovering data copy in distributed system | |
CN106326014A (en) | Resource access method and device | |
CN109144754A (en) | A kind of method for testing reliability and device | |
CN111324549B (en) | Memory and control method and device thereof | |
CN110858122B (en) | Method and device for storing data | |
CN104932830A (en) | Information processing method and electronic device | |
CN107659652A (en) | A kind of method and device of cloud backup | |
CN104246716B (en) | The processing method and equipment of memory space object | |
CN105528180A (en) | Data storage method, apparatus and device | |
CN106816175A (en) | The control method and device of memory | |
CN107863127A (en) | A kind of storage device memory cell selecting method and device | |
CN110032474A (en) | A kind of snapshot, which occupies, holds method for determination of amount, system and associated component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |