CN110119250A - Non-volatile memory medium data processing method and non-volatile memory medium - Google Patents
Non-volatile memory medium data processing method and non-volatile memory medium Download PDFInfo
- Publication number
- CN110119250A CN110119250A CN201910397714.3A CN201910397714A CN110119250A CN 110119250 A CN110119250 A CN 110119250A CN 201910397714 A CN201910397714 A CN 201910397714A CN 110119250 A CN110119250 A CN 110119250A
- Authority
- CN
- China
- Prior art keywords
- value
- recycling
- operational parameter
- valid data
- data page
- 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/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- 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
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
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)
- Read Only Memory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention provides a kind of non-volatile memory medium data processing method and non-volatile memory medium, is related to technical field of memory.This method comprises: obtaining the first operational parameter value of storage unit;The reading and writing data performance of first operational parameter value characterization storage unit;When the first operational parameter value meets recycling condition, then the valid data page in fail data block is recycled;When the first operational parameter value is unsatisfactory for recycling condition, then the recycling without valid data page.When executing the recycling of valid data page, when being unsatisfactory for recycling condition, the recycling of valid data page or the recycling without valid data page can be suspended, bus bandwidth is conceded for reading and writing data, improve the efficiency of reading and writing data.
Description
Technical field
The present invention relates to technical field of memory, in particular to a kind of non-volatile memory medium data processing method
And non-volatile memory medium.
Background technique
During use, the case where there are partial data failures, fail data occupies solid state hard disk to solid state hard disk
Data block causes the waste in solid state hard disk space.Generally use garbage reclamation (Garbage Collection, abbreviation GC) plan
Slightly, which is used to arrange the valid data page in data block to be recycled, and valid data page is transferred to clear position, is formed new
Data block, invalid data page is not transferred, then stays in data block to be recycled.After valid data page is transferred, treat back
It receives data block and carries out whole erasing operation, complete GC work.
Currently, GC strategy uses idle trigger mechanism, that is, when detecting the read-write of host no data, GC is triggered, when available
When space is not less than default available space threshold value, then stop GC.
Start GC, the transfer of data page can occupy bus bandwidth.If host needs to read data while carrying out GC,
But since GC is when available space is not less than default available space threshold value, can just it stop.Therefore, current GC strategy will cause
The runnability of reading data course reduces.
Summary of the invention
It is an object of the present invention in view of the deficiency of the prior art, provide a kind of non-volatile memory medium number
According to processing method and non-volatile memory medium, to improve the performance of non-volatile memory medium reading and writing data.
To achieve the above object, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of non-volatile memory medium data processing methods, comprising: obtain
First operational parameter value of storage unit;First operational parameter value characterizes the reading and writing data performance of the storage unit;When
First operational parameter value meets recycling condition, then recycles the valid data page in fail data block;When first operation
Parameter value is unsatisfactory for recycling condition, then the recycling without the valid data page.
Optionally, described when first operational parameter value is unsatisfactory for recycling condition, then without the valid data page
Recycling, comprising: when first operational parameter value meets pause condition, then suspend the recycling of the valid data page.
Optionally, first operational parameter value includes: the first IOPS value and the first bandwidth value;It is described to work as first fortune
Row parameter value meets recycling condition, then recycles the valid data page in fail data block, comprising: when the first IOPS value is less than
First default IOPS value, and first bandwidth value then recycles the valid data page less than the first preset bandwidth value.
Optionally, first operational parameter value includes: the first IOPS value and the first bandwidth value;It is described to work as first fortune
Row parameter value meets pause condition, then suspends the recycling of the valid data page, comprising: when the first IOPS value is greater than second
Default IOPS value or first bandwidth value are greater than the second preset bandwidth value, then suspend the recycling of the valid data page.
Optionally, first operational parameter value includes: the available space value of the storage unit;It is described to work as described first
Operational parameter value meets recycling condition, then recycles the valid data page in fail data block, comprising: when the available space value is small
When the first pre-set space threshold value, judge whether the read-write type of multiple continuous datas is reading data type;If
It is no, then recycle the valid data page.
Optionally, described to meet pause condition when first operational parameter value, then suspend returning for the valid data page
It receives, comprising: when the available space value is greater than or equal to the second pre-set space threshold value, then suspend returning for the valid data page
It receives;The second pre-set space threshold value is greater than the first pre-set space threshold value.
Optionally, described to meet pause condition when first operational parameter value, then suspend returning for the valid data page
It receives, comprising: if the read-write type of the multiple continuous data is the reading data type, obtain the multiple consecutive numbers
According to number;If the number is greater than predetermined number, the second operational parameter value is obtained;Second operational parameter value characterizes institute
State the reading data performance of storage unit;When second operational parameter value meets the pause condition, then suspend it is described effectively
The recycling of data page.
Optionally, second operational parameter value includes: the 2nd IOPS value and the second bandwidth value;It is described to work as second fortune
Row parameter value meets the pause condition, then suspends the recycling of the valid data page, comprising: if the 2nd IOPS value is greater than
Third presets IOPS value or second bandwidth value is greater than third preset bandwidth value, then suspends the recycling of the valid data page.
Second aspect, the embodiment of the invention also provides a kind of non-volatile memory mediums, comprising: obtains module, recycling
Module and pause module;The acquisition module, for obtaining the first operational parameter value of storage unit;First operating parameter
Value characterizes the reading and writing data performance of the storage unit;The recycling module, for meeting back when first operational parameter value
Receipt part then recycles the valid data page in fail data block;The pause module, for working as first operational parameter value not
Meet recycling condition, then the recycling without the valid data page.
Optionally, first operational parameter value includes: the first IOPS value and the first bandwidth value;The recycling module, tool
Body is used to work as the first IOPS value IOPS value default less than first, and first bandwidth value is less than the first preset bandwidth value,
Then recycle the valid data page.
Non-volatile memory medium data processing method provided by the embodiments of the present application and non-volatile memory medium, when non-
Volatile storage medium when being unsatisfactory for recycling condition, can be conceded in recycling valid data page without the recycling of valid data page
Read-write of the bus bandwidth to execute data improves the read-write of data so that the recycling of valid data page does not influence number read-write
Energy.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of non-volatile memory medium structural schematic diagram provided by the present application;
Fig. 2 is a kind of non-volatile memory medium capacity schematic diagram provided by the present application;
Fig. 3 is that a kind of non-volatile memory medium provided by the present application executes GC functional schematic;
Fig. 4 is the non-volatile memory medium data processing method flow diagram that one embodiment of the application provides;
Fig. 5 is the non-volatile memory medium data processing method flow diagram that another embodiment of the application provides;
Fig. 6 is the reading and writing data number schematic diagram of non-volatile memory medium;
Fig. 7 is the data traffic schematic diagram of non-volatile memory medium;
Fig. 8 is first bandwidth value the-the one IOPS value coordinate of the non-volatile memory medium that one embodiment of the application provides
Figure;
Fig. 9 is that first the-the one IOPS value of bandwidth value of the non-volatile memory medium that another embodiment of the application provides is sat
It marks on a map;
Figure 10 is the non-volatile memory medium data processing method flow diagram that another embodiment of the application provides;
Figure 11 is the non-volatile memory medium structural schematic diagram that one embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.
Fig. 1 is a kind of non-volatile memory medium structural schematic diagram provided by the present application, which can
With but be not limited only to: Nand flash memory, NOR flash memory.Referring to Fig. 1, which includes: controller 101 and storage
Unit 102.
Wherein, controller 101 controls read-write, erasing and the recycling of data page that storage unit 102 carries out data.It deposits
The number of storage unit 102 is at least one.
It is illustrated so that non-volatile memory medium in the prior art executes GC strategy as an example below, Fig. 2 mentions for the application
Supply a kind of non-volatile memory medium capacity schematic diagram, as shown in Fig. 2, when storage unit 102 available space value be less than or
When equal to the first pre-set space threshold value, i.e. the first remaining space of remaining space off-capacity capacity, returning for valid data page is carried out
The erasing with fail data block is received, until available space value is greater than or equal to the second pre-set space threshold value, i.e. remaining space capacity
More than or equal to the second remaining space capacity.
Optionally, in the GC strategy of the prior art, when meeting GC as shown in Figure 2 and starting condition, GC function is executed.
Fig. 3 is that a kind of non-volatile memory medium provided by the present application executes GC functional schematic, and in conjunction with Fig. 1, the control of controller 101 is deposited
Storage unit 102 carries out the recycling of valid data page and the erasing of fail data block, as shown in figure 3, block1 is pending GC function
The data block of energy.Data page A and B are valid data page, and remainder data page is fail data page.By having in data block block1
Effect data page A and B are transported in new data block block2, complete the recycling of valid data page and then by data block
Block1 erasing, obtains a data block block11.Data block block11 can be used for carrying data page.
Current GC strategy generallys use idle trigger mechanism, i.e., when no data is read, executes GC function.But GC function
Execution must until available space capacity to stop waterline could terminating, when needing to carry out reading data, due to significant figure
It needs to occupy bus bandwidth according to the recycling of page, therefore read-write data can be impacted, streamability is caused to decline.
In view of the above-mentioned problems, following embodiments of the application provide a kind of technical solution, core improvement is, is holding
When row GC function, setting recycling and pause condition, i.e., according to reading and writing data and available space the case where, execute GC function.
The technical solution of the application is illustrated combined with specific embodiments below, Fig. 4 provides for one embodiment of the application
Non-volatile memory medium data processing method flow diagram, which can be by the corresponding control of above-mentioned Fig. 1
Device 101 executes, as shown in figure 4, this method comprises:
S201, the first operational parameter value for obtaining storage unit.The data that first operational parameter value characterizes storage unit are read
Write performance.
S202, when the first operational parameter value meets recycling condition, then recycle the valid data page in fail data block.
S203, recycling condition is unsatisfactory for when the first operational parameter value, then the recycling without valid data page.
When the first operational parameter value of non-volatile memory medium meets recycling condition, in the case where executing GC function, inspection
It measures the first fortune and deposits parameter and be unsatisfactory for recycling condition, then do not recycle valid data page, concede bus bandwidth, for reading and writing data.
Non-volatile memory medium data processing method provided in this embodiment, when non-volatile memory medium executes GC function
Can, that is, when recycling valid data page, meets pause condition, the recycling of valid data page can be suspended.Suspend GC function, concedes bus
Bandwidth ensure that the continuous performance of reading and writing data, ensured the working efficiency of non-volatile memory medium for reading and writing data.
Optionally, the first operational parameter value includes: the first IOPS value and the first bandwidth value.IOPS(Input/Output
Operations Per Second) be read-write per second number.First IOPS value is that the every second data of non-volatile memory medium is read
The total degree for taking and being written, the first bandwidth value are the occupied bandwidth of reading and writing data, introduce the first IOPS value and the first bandwidth value,
To provide a kind of parameter for judging to execute or suspend GC function, one kind is given below based on the first IOPS value and the first bandwidth value
The mode in the cards of GC strategy is executed, specifically, on the basis of fig. 4, Fig. 5 provides non-for another embodiment of the application
Volatile storage medium data processing method flow diagram, as shown in figure 5, S202, comprising:
S202-1, when the first IOPS value IOPS value default less than first, and the first bandwidth value is less than the first preset bandwidth value,
Then recycle the erasing of valid data page and fail data block.
Optionally, Fig. 6 is the reading and writing data number schematic diagram of non-volatile memory medium, as shown in fig. 6,1 second is divided
For n piece, every read-write number is then recorded.In Fig. 6, ordinate I O table shows every read-write number, when abscissa T is indicated
Between, the calculating of the first IOPS value is as follows:
Wherein, IOPS is to calculate resulting IOPS value.
Fig. 7 is then the data traffic schematic diagram of non-volatile memory medium is remembered as shown in fig. 7, being divided into n piece for 1 second
Record every data traffic.In Fig. 7, ordinate BW indicates every data traffic, and abscissa T indicates time, the first bandwidth
The calculating of value is as follows:
Wherein, BWPS is to calculate resulting bandwidth value.
It should be noted that n is the integer more than or equal to 1, such as n is 100, i.e., was divided into 100 1 second.Pass through
Each second is divided into n piece, the first IOPS value and the first bandwidth value can be accurately detected, guarantee accurately trigger and
Suspend GC.
When the first IOPS value IOPS value default less than first, and when the first bandwidth value is less than the first preset bandwidth value, data
Read that occupied bus bandwidth is smaller, total bandwidth is enough to support storage unit while carrying out reading and writing data and valid data page
Recycling.
When the first IOPS value IOPS value default less than first, and when the first bandwidth value is less than the first preset bandwidth value, as long as
The valid data page of recycling in need, all executable GC function.
With continued reference to Fig. 5, S203, comprising:
S203-1, when the first operational parameter value meets pause condition, then suspend the recycling of valid data page.
S203-1, comprising: when the first IOPS value is greater than the second default IOPS value or the first bandwidth value greater than the second default band
Width values then suspend the recycling of valid data page.
It should be noted that being preset when the first IOPS value is greater than the second default IOPS value or the first bandwidth value greater than second
When bandwidth value, bus bandwidth is not enough to support the recycling of reading and writing data and valid data page simultaneously, and therefore, it is necessary to suspend significant figure
According to the recycling of page, bus bandwidth is conceded for reading and writing data, to guarantee the continuity of reading and writing data.
Optionally, Fig. 8 is first the-the one IOPS of bandwidth value of the non-volatile memory medium that one embodiment of the application provides
It is worth coordinate diagram, as shown in figure 8, the first default IOPS value is equal to the second default IOPS value, is indicated in fig. 8 with y1.First is default
Bandwidth value is equal to the second preset bandwidth value, is indicated in fig. 8 with x1.As the first IOPS value IOPS value y1 default less than first, and
When first bandwidth value is less than the first preset bandwidth value x1, i.e., in a-quadrant shown in Fig. 8, GC function is executed, carries out valid data
The recycling of page.When the first IOPS value is greater than the first default IOPS value y1 or the first bandwidth value is greater than the first preset bandwidth value x1,
In the region C i.e. shown in Fig. 8, suspend the recycling of valid data page.
Optionally, Fig. 9 is the first bandwidth value-the first of the non-volatile memory medium that another embodiment of the application provides
IOPS value coordinate diagram, as shown in figure 9, the first default IOPS value is indicated with y1, the second default IOPS value is indicated with y2, and first is default
Bandwidth indicates that the second pre-set bandwidths are indicated with x2 with x1.First default IOPS value y1 IOPS value y2 default less than second, first is pre-
If bandwidth value x1 is less than the second preset bandwidth value x2.Between the first default default IOPS value y2 of IOPS value y1 and second and
B area between first preset bandwidth value x1 and the second preset bandwidth value x2 is buffer area.When the first IOPS value is less than first
Default IOPS value y1, and when the first bandwidth value is less than the first preset bandwidth value x1, i.e., a-quadrant shown in Fig. 9, then recycling is effectively
The erasing of data page and fail data block, the first IOPS value then detected are greater than the first default IOPS value y1 but less than second
When default IOPS value y2 and/or the first bandwidth value are greater than the first preset bandwidth value x1 but less than the second preset bandwidth value x2, i.e.,
B area shown in Fig. 9 still recycles the erasing of valid data page and fail data block.
Similar, when the first IOPS value is greater than the second default IOPS value y2 or the first bandwidth value greater than the second pre-set bandwidths
The recycling of valid data page and the erasing of fail data block are then suspended in value x2, i.e., the region C shown in Fig. 8, then detected
One IOPS value is greater than the first default IOPS value y1 but is greater than first less than the second default IOPS value y2 and/or the first bandwidth value
Preset bandwidth value x1 but when less than the second preset bandwidth value x2, i.e., B area shown in Fig. 9 still suspends valid data page
The erasing of recycling and fail data block.
Be arranged buffer area can prevent it is non-volatile caused by the temporary fluctuation of IOPS value and bandwidth value because of reading and writing data
The switching of the state of property storage medium.Cause GC recycling or reading and writing data continuity not strong.
Optionally, on the basis of fig. 4, this gives another mode in the cards for executing GC strategy,
First operational parameter value includes: the available space value of storage unit, and available space value indicates the residue of current time storage unit
Capacity introduces available space value, and to provide, another judgement is executed or the parameter of pause GC function, Figure 10 are another reality of the application
The non-volatile memory medium data processing method flow diagram of example offer, as shown in Figure 10, S202 are provided, comprising:
S202-2, when available space value be less than or equal to the first pre-set space threshold value when, judge the reading of multiple continuous datas
Write whether type is reading data type.
S202-3, if it is not, then recycle valid data page and erasing fail data block.
, if available space value is less than or equal to the first pre-set space threshold value, the number being written can be used for continued reference to Fig. 2
It is few according to number of blocks, influence the normal read-write of data.Therefore, GC function is executed, recycling valid data page is used for the write-in of data, with
Guarantee the data read-write efficiency of non-volatile memory medium.
It should be noted that being preset when the first IOPS value is greater than the second default IOPS value or the first bandwidth value greater than second
Bandwidth value when available space value is less than or equal to the first pre-set space threshold value, is read even if pause GC function concedes bandwidth for data
It writes, since data number of blocks available for writing is few, the readwrite performance of non-volatile memory medium still will receive influence, therefore,
In the situation, it should execute GC function, recycle valid data page.
With continued reference to Figure 10, S203, comprising:
S203-2, when available space value be greater than or equal to the second pre-set space threshold value when, then suspend valid data page return
Receive the erasing with fail data block.Second pre-set space threshold value is greater than the first pre-set space threshold value.
The second pre-set space threshold value can be greater than or equal to continued reference to Fig. 2, available space value, the quantity of available block can
To guarantee to be normally written data, at this point, the recycling of pause valid data page and the erasing of fail data block, concede bus bandwidth confession
Reading and writing data guarantees the efficiency of reading and writing data.
Optionally, with continued reference to as shown in Figure 10, S203, comprising:
If the read-write type of S203-3, multiple continuous datas are when reading data type, to obtain multiple continuous datas
Number.
If S203-4, number are greater than predetermined number, the second operational parameter value is obtained.The characterization storage of second operational parameter value
The reading data performance of unit.
In reading data, data write-in is carried out without using data block.If of the multiple continuous datas detected
Number is greater than predetermined number, it is determined that data are continuously to be read.
S203-5, when the second operational parameter value meets pause condition, then suspend the recycling of valid data page.
If returning for data page can be suspended when data are continuously read and the second operational parameter value meets pause condition
It receives, concedes bandwidth for the reading of data, guarantee the continuous performance of reading data.
Optionally, a kind of possible implementation of S203-5 are as follows:
If the 2nd IOPS value is greater than, third presets IOPS value or the second bandwidth value is greater than third preset bandwidth value, suspends
The recycling of valid data page.
It should be noted that the 2nd IOPS value is the number of reading data per second, the second bandwidth value is reading data occupancy
Bandwidth value.
Optionally, the 2nd IOPS value can through the foregoing embodiment in formula (1) calculate and obtain, the second bandwidth value can pass through
Formula (2) in above-described embodiment, which calculates, to be obtained.
Optionally, when detection data is written, then continuous data, which is read, interrupts, and the recycling for suspending valid data page is restored
To recycle valid data page.
Optionally, when the reading that data are not detected, it is greater than the second default IOPS value or the first bandwidth in the first IOPS value
When value is greater than the second preset bandwidth value, the recycling for suspending valid data page can be reverted to recycling valid data page.
It should be noted that be in execution GC function in above-described embodiment, in recycling fail data block after valid data page,
It further include that the fail data block that will have been recycled is wiped.It further include the erasing for suspending fail data block when suspending GC function.
Be given below it is a kind of for executing the non-volatile memory medium of above method class embodiment, specifically, Figure 11 is
The non-volatile memory medium structural schematic diagram that one embodiment of the application provides, as shown in figure 11, comprising: obtain module 301, return
Receive module 302 and pause module 303.
Module 301 is obtained, for obtaining the first operational parameter value of storage unit;The characterization storage of first operational parameter value is single
The reading and writing data performance of member.
Recycling module 302 then recycles effective in fail data block for meeting recycling condition when the first operational parameter value
Data page.
Suspend module 303, for being unsatisfactory for recycling condition when the first operational parameter value, then without time of valid data page
It receives.
Optionally, the first operational parameter value includes: the first IOPS value and the first bandwidth value.
Recycling module 302 is specifically used for when the first IOPS value IOPS value default less than first, and the first bandwidth value is less than the
One preset bandwidth value then recycles valid data page.Optionally, operational parameter value includes: the first IOPS value and the first bandwidth value;
Suspend module 303, is specifically used for being greater than the when the first IOPS value is greater than the second default IOPS value or the first bandwidth value
Two preset bandwidth values then suspend the recycling of valid data page.
It should be noted that acquisition module 301, recycling module 302 referring to the corresponding embodiment of Fig. 1, in the present embodiment
With the function of pause module 303, can be realized by the controller 101 in Fig. 1.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein not
It repeats again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including element.
These are only the preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification,
Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter are under
Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of non-volatile memory medium data processing method characterized by comprising
Obtain the first operational parameter value of storage unit;First operational parameter value characterizes the reading and writing data of the storage unit
Performance;
When first operational parameter value meets recycling condition, then the valid data page in fail data block is recycled;
When first operational parameter value is unsatisfactory for recycling condition, then the recycling without the valid data page.
2. non-volatile memory medium data processing method as described in claim 1, which is characterized in that the first operation ginseng
Numerical value includes: the first IOPS value and the first bandwidth value;It is described to meet recycling condition when first operational parameter value, then recycle mistake
Imitate the valid data page in data block, comprising:
When the first IOPS value IOPS value default less than first, and first bandwidth value is less than the first preset bandwidth value, then
Recycle the valid data page.
3. non-volatile memory medium data processing method as described in claim 1, which is characterized in that described to work as described first
Operational parameter value is unsatisfactory for recycling condition, then the recycling without the valid data page, comprising:
When first operational parameter value meets pause condition, then suspend the recycling of the valid data page.
4. non-volatile memory medium data processing method as claimed in claim 3, which is characterized in that the first operation ginseng
Numerical value includes: the first IOPS value and the first bandwidth value;It is described to meet pause condition when first operational parameter value, then suspend institute
State the recycling of valid data page, comprising:
When the first IOPS value is greater than the second default IOPS value or first bandwidth value greater than the second preset bandwidth value, then
Suspend the recycling of the valid data page;First default IOPS value is less than the described second default IOPS value.
5. non-volatile memory medium data processing method as described in claim 1, which is characterized in that the first operation ginseng
Numerical value includes: the available space value of the storage unit;It is described to meet recycling condition when first operational parameter value, then it recycles
Valid data page in fail data block, comprising:
When the available space value is less than or equal to the first pre-set space threshold value, judge that the read-write type of multiple continuous datas is
No is reading data type;
If it is not, then recycling the valid data page.
6. non-volatile memory medium data processing method as claimed in claim 5, which is characterized in that described to work as described first
Operational parameter value meets pause condition, then suspends the recycling of the valid data page, comprising:
When the available space value is greater than or equal to the second pre-set space threshold value, then suspend the recycling of the valid data page;
The second pre-set space threshold value is greater than the first pre-set space threshold value.
7. non-volatile memory medium data processing method as claimed in claim 5, which is characterized in that described to work as described first
Operational parameter value meets pause condition, then suspends the recycling of the valid data page, comprising:
If the read-write type of the multiple continuous data is the reading data type, the multiple continuous data is obtained
Number;
If the number is greater than predetermined number, the second operational parameter value is obtained;It is deposited described in the second operational parameter value characterization
The reading data performance of storage unit;
When second operational parameter value meets the pause condition, then suspend the recycling of the valid data page.
8. non-volatile memory medium data processing method as claimed in claim 7, which is characterized in that the second operation ginseng
Numerical value includes: the 2nd IOPS value and the second bandwidth value;It is described to meet the pause condition when second operational parameter value, then temporarily
Stop the recycling of the valid data page, comprising:
If the 2nd IOPS value is greater than, third presets IOPS value or second bandwidth value is greater than third preset bandwidth value,
Suspend the recycling of the valid data page.
9. a kind of non-volatile memory medium characterized by comprising obtain module, recycling module and pause module;
The acquisition module, for obtaining the first operational parameter value of storage unit;Described in the first operational parameter value characterization
The reading and writing data performance of storage unit;
The recycling module then recycles having in fail data block for meeting recycling condition when first operational parameter value
Imitate data page;
The pause module, for being unsatisfactory for recycling condition when first operational parameter value, then without the valid data
The recycling of page.
10. non-volatile memory medium as claimed in claim 9, which is characterized in that first operational parameter value includes:
One IOPS value and the first bandwidth value;
The recycling module is specifically used for working as the first IOPS value IOPS value default less than first, and first bandwidth value
Less than the first preset bandwidth value, then the valid data page is recycled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910397714.3A CN110119250B (en) | 2019-05-13 | 2019-05-13 | Nonvolatile storage medium data processing method and nonvolatile storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910397714.3A CN110119250B (en) | 2019-05-13 | 2019-05-13 | Nonvolatile storage medium data processing method and nonvolatile storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110119250A true CN110119250A (en) | 2019-08-13 |
CN110119250B CN110119250B (en) | 2023-02-10 |
Family
ID=67522301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910397714.3A Active CN110119250B (en) | 2019-05-13 | 2019-05-13 | Nonvolatile storage medium data processing method and nonvolatile storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110119250B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544110A (en) * | 2013-10-08 | 2014-01-29 | 华中科技大学 | Block-level continuous data protection method based on solid-state disc |
US20150026390A1 (en) * | 2013-07-17 | 2015-01-22 | Lite-On It Corporation | Garbage collection control method for solid state drive |
CN105630638A (en) * | 2014-10-31 | 2016-06-01 | 国际商业机器公司 | Equipment and method for distributing cache for disk array |
CN106527971A (en) * | 2016-10-08 | 2017-03-22 | 华中科技大学 | Method for improving read performance of SSD during junk recovery period |
CN108733579A (en) * | 2017-04-13 | 2018-11-02 | 三星电子株式会社 | The method and solid-state disk of the window of opportunity prompt of consistency operation in solid-state disk are provided |
CN108984116A (en) * | 2018-06-14 | 2018-12-11 | 浙江大华技术股份有限公司 | A kind of flow control method and device of solid state hard disk garbage reclamation bandwidth |
CN109558334A (en) * | 2017-09-27 | 2019-04-02 | 北京忆恒创源科技有限公司 | Junk data recovery method and solid storage device |
-
2019
- 2019-05-13 CN CN201910397714.3A patent/CN110119250B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026390A1 (en) * | 2013-07-17 | 2015-01-22 | Lite-On It Corporation | Garbage collection control method for solid state drive |
CN103544110A (en) * | 2013-10-08 | 2014-01-29 | 华中科技大学 | Block-level continuous data protection method based on solid-state disc |
CN105630638A (en) * | 2014-10-31 | 2016-06-01 | 国际商业机器公司 | Equipment and method for distributing cache for disk array |
CN106527971A (en) * | 2016-10-08 | 2017-03-22 | 华中科技大学 | Method for improving read performance of SSD during junk recovery period |
CN108733579A (en) * | 2017-04-13 | 2018-11-02 | 三星电子株式会社 | The method and solid-state disk of the window of opportunity prompt of consistency operation in solid-state disk are provided |
CN109558334A (en) * | 2017-09-27 | 2019-04-02 | 北京忆恒创源科技有限公司 | Junk data recovery method and solid storage device |
CN108984116A (en) * | 2018-06-14 | 2018-12-11 | 浙江大华技术股份有限公司 | A kind of flow control method and device of solid state hard disk garbage reclamation bandwidth |
Also Published As
Publication number | Publication date |
---|---|
CN110119250B (en) | 2023-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100487632C (en) | Dual media storage device | |
US8145828B2 (en) | Flash memory-mounted storage apparatus | |
TWI416513B (en) | A system and method for managing adjacent track interference in a hard disk drive | |
US20140143476A1 (en) | Usage of cache and write transaction information in a storage device | |
US10249338B2 (en) | Shingled magnetic recording storage system during vibration | |
CN105493051A (en) | Adaptive cache memory controller | |
KR20090017238A (en) | Solid state drive, data storing method thereof, and computing system including the same | |
CN101236789A (en) | Method and apparatus for detecting static data area, wear-leveling, and merging data units | |
TW200941499A (en) | Hybrid flash memory storage device and method of controlling the same | |
US9710375B2 (en) | Writing an address conversion table for nonvolatile memory wear leveling | |
CN106776362A (en) | The control method and device of memory | |
US9384125B2 (en) | Method for accessing flash memory having pages used for data backup and associated memory device | |
CN103942151A (en) | Data storage method and device for flash memory | |
CN103218274A (en) | Failure accumulation preventing method and solid state disk | |
CN102981969A (en) | Method for deleting repeated data and solid hard disc thereof | |
CN100433195C (en) | Flash memory medium data writing method | |
CN102298543A (en) | Memory management method and memory management device | |
CN109582216A (en) | Data storage device and data processing method of memory device | |
US7920352B2 (en) | Magnetic disk apparatus and data storage method | |
US20180196622A1 (en) | Nonvolatile memory device, and storage apparatus having nonvolatile memory device | |
CN105320468A (en) | Semiconductor memory device, memory controller, and control method of memory controller | |
CN102279809A (en) | Method for redirecting write in and garbage recycling in solid hard disk | |
CN103092765A (en) | Solid state storage system, solid state storage device and data writing method | |
CN108874574A (en) | A kind of garbage reclamation processing method and relevant apparatus | |
CN104932830A (en) | Information processing method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |