CN110471863A - Data write-read method, device and computer equipment based on solid state hard disk - Google Patents
Data write-read method, device and computer equipment based on solid state hard disk Download PDFInfo
- Publication number
- CN110471863A CN110471863A CN201910743941.7A CN201910743941A CN110471863A CN 110471863 A CN110471863 A CN 110471863A CN 201910743941 A CN201910743941 A CN 201910743941A CN 110471863 A CN110471863 A CN 110471863A
- Authority
- CN
- China
- Prior art keywords
- data
- page
- hard disk
- solid state
- state hard
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000007787 solid Substances 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000015654 memory Effects 0.000 claims abstract description 56
- 238000004590 computer program Methods 0.000 claims description 16
- 230000007257 malfunction Effects 0.000 claims description 6
- 230000007246 mechanism Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims 1
- 210000003205 muscle Anatomy 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 11
- 230000008901 benefit Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 9
- 239000003990 capacitor Substances 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000032683 aging Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000001965 increasing effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0253—Garbage collection, i.e. reclamation of unreferenced memory
-
- 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/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- 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/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/0647—Migration mechanisms
-
- 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)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
This application involves a kind of data write-read method, device, computer equipment and storage medium based on solid state hard disk, wherein this method comprises: obtaining the data write request based on solid state hard disk;Lower page of data and upper page data are written to the nextpage and upper page of TLC Physical Page according to the data write request;It will be in the correspondence Physical Page of the lower page of data and upper page data write-in SLC physical block;Lower page of data is returned to host and upper page data is successfully written flash memory.The present invention does not have the characteristic of shared page problem using SLC mode, by technology of the data backup of nextpage and upper page in TLC physical block in SLC physical block, the shared page problem of 3D TLC flash memory has been solved perfectly, and there is the advantage of low cost compared with prior art.
Description
Technical field
The present invention relates to solid state hard disk technical fields, and reading side is written more particularly to a kind of data based on solid state hard disk
Method, device, computer equipment and storage medium.
Background technique
Currently, SSD (solid state hard disk) has been widely used in various occasions, since it is adapted in performance, power consumption, environment
The outstanding index of property etc., just gradually replaces traditional hard disk.The storage medium of SSD consumer level market current main-stream is TLC
Flash memory, with big, the at low cost advantage of capacity.However certain TLC flash memories have shared page (shared page) characteristic, i.e. TLC
The TLC Physical Page of flash memory is made of nextpage, upper page and outer page, this lower outer page three are shared page, is write to TLC Physical Page
The step of entering are as follows: nextpage and upper page is written in the first step;Second step, write-in nextpage, upper page and outer page.Wherein, so-called shared
Page problem is in case of powered-off fault in second step, then not only failure is written in the data of outer page, is successfully written down before
Data in page and upper page can also lose.The loss of data of nextpage and upper page is unacceptable for host, because
SSD master control just informs that host nextpage and the data of upper page are successfully written into flash memory before two steps.
In the conventional technology, the way of current main-stream is to configure backup power source for SSD, after powered-off fault occurs, immediately
Start backup power source to power to SSD, it is ensured that second step write-in normally completes, and fundamentally evades shared page problem.
But the shortcomings that traditional technology it is obvious that i.e. increase cost, be to increase capacitor after all, for consumer level SSD, cost is
Very sensitive.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind and solve shared in the case where not increasing cost reasons
Data write-read method, device, computer equipment and the storage medium based on solid state hard disk of page problem.
A kind of data write-read method based on solid state hard disk, which comprises
Obtain the data write request based on solid state hard disk;
Lower page of data and upper page data are written to the nextpage and upper page of TLC Physical Page according to the data write request;
It will be in the correspondence Physical Page of the lower page of data and upper page data write-in SLC physical block;
Lower page of data is returned to host and upper page data is successfully written flash memory.
In one of the embodiments, in the step for being successfully written flash memory to host return lower page of data and upper page data
After rapid further include:
TLC physical block is written into outer page data;
Outer page data, which is returned, to host is successfully written flash memory.
In one of the embodiments, the method also includes:
Obtain the data read request based on solid state hard disk;
Lower page of data and the upper page data in TLC physical block are read according to the data read request;
Judge whether the lower page of data read and upper page data malfunction;
If so, the correspondence physics page data in reading SLC physical block is to host.
The step of correspondence physics page data in the reading SLC physical block is to host in one of the embodiments,
Later further include:
Valid data in TLC physical block are subjected to data-moving by garbage reclamation mechanism.
A kind of data write-in reading device based on solid state hard disk, described device include:
First obtains module, and the first acquisition module is for obtaining the data write request based on solid state hard disk;
First writing module, first writing module are used for lower page of data and upper page according to the data write request
The nextpage and upper page of data write-in TLC Physical Page;
Second writing module, second writing module are used to the lower page of data and upper page data SLC physics is written
In the correspondence Physical Page of block;
First return module, first return module is used to return to lower page of data to host and upper page data is successfully written
Flash memory.
Described device in one of the embodiments, further include:
Third writing module, the third writing module are used to outer page data TLC physical block is written;
Second return module, second return module, which is used to return to outer page data to host, is successfully written flash memory.
Described device in one of the embodiments, further include:
Second obtains module, and the second acquisition module is for obtaining the data read request based on solid state hard disk;
Data read module, the data read module are used to be read in TLC physical block according to the data read request
Lower page of data and upper page data;
Judge whether the lower page of data read and upper page data malfunction;
If so, the correspondence physics page data in reading SLC physical block is to host.
Described device in one of the embodiments, further include:
Data-moving module, the data-moving module are used to pass through garbage reclamation mechanism for significant figure in TLC physical block
According to progress data-moving.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
The step of computer program, the processor realizes above-mentioned any one method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of above-mentioned any one method is realized when row.
Above-mentioned data write-read method, device, computer equipment and storage medium based on solid state hard disk, passes through acquisition
Data write request based on solid state hard disk;TLC object is written into lower page of data and upper page data according to the data write request
Manage the nextpage and upper page of page;It will be in the correspondence Physical Page of the lower page of data and upper page data write-in SLC physical block;It is returned to host
It returns lower page of data and upper page data is successfully written flash memory.The present invention does not have the characteristic of shared page problem using SLC mode,
By technology of the data backup of nextpage and upper page in TLC physical block in SLC physical block, 3D TLC flash memory has been solved perfectly
Shared page problem, and there is the advantage of low cost compared with prior art.
Detailed description of the invention
Fig. 1 is the schematic diagram of Shared Page distribution in physical block in traditional technology;
Fig. 2 is the schematic diagram that backup power source solves the problems, such as shared page in traditional technology;
Fig. 3 is the flow diagram of the data write-read method based on solid state hard disk in one embodiment;
Fig. 4 is the flow diagram of the data write-read method based on solid state hard disk in another embodiment;
Fig. 5 is the flow diagram of the data write-read method based on solid state hard disk in further embodiment;
Fig. 6 is the schematic diagram for passing through SLC physical block backup nextpage and upper page in one embodiment;
Fig. 7 is the schematic diagram that process is written in data in one embodiment;
Fig. 8 is the schematic diagram of reading data process in one embodiment;
Fig. 9 is the structural block diagram of the data write-in reading device in one embodiment based on solid state hard disk;
Figure 10 is the structural block diagram of the data write-in reading device in another embodiment based on solid state hard disk;
Figure 11 is the structural block diagram of the data write-in reading device in further embodiment based on solid state hard disk;
Figure 12 is the structural block diagram of the data write-in reading device in another embodiment based on solid state hard disk;
Figure 13 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
In the conventional technology, it is assumed that the shared page in flash memory physical block is distributed every number as shown in Figure 1, in Fig. 1
Word indicates the small Physical Page (nextpage or upper page or outer page) of a 16KB, and data are written in SSD master control since small Physical Page 0, write
Entering process at any time may power down.
Currently, the write-in of the TLC Physical Page (48KB) of flash memory is divided into two steps: the first step, nextpage (16KB) and upper page is written
(16KB);Second step, write-in nextpage (16KB), upper page (16KB) and outer page (16KB).Specifically, in Fig. 1 76,77,154
For shared page, SSD can inform the 16KB of host nextpage and the 16KB of upper page after nextpage 76 and upper page 77 successfully complete
Data have been written into flash memory, power down is abnormal during SSD master control writes page 76, upper page 77 and outer page 154, due to shared
Page characteristic, then not only failure is written in the data of outer page 154, and the data for being successfully written nextpage 76 and upper page 77 before can also lose
It loses.
Existing technology provides a backup power source for SSD, as shown in Fig. 2, backup power source generally all has a few tens of milliseconds
Standby electric energy power, and the write time of a TLC Physical Page be 1 to 2 milliseconds, when nextpage, upper page and outer page write-in when main power source
It is abnormal power down, backup power source can power in starting at the first time, can guarantee that nextpage, upper page and outer page normally complete write-in behaviour
Make, SSD master control can stop subsequent write operation after being written successfully, to fundamentally evade Shared Page problem
Occur.
However, the shortcomings that prior art, includes at least: firstly, cost improves, in consumer field, monolithic SSD a little
Cost reaches 10,000,000 million ranks in sales volume, and the promotion of totle drilling cost can not be ignored.Secondly, capacitor can aging, with making
Increased with the time, capacitor meeting aging, standby electric energy power can be decreased obviously, and standby Electricity Functional will be unstable.
Based on above-mentioned technical problem, the invention proposes a kind of data write-read method based on solid state hard disk, it is expected that
It can technically solve the problems, such as shared page, to release the dependence to capacitor, reduce cost.
It in one embodiment, should as shown in figure 3, providing a kind of data write-read method based on solid state hard disk
Method includes:
Step 302, the data write request based on solid state hard disk is obtained;
Step 304, according to data write request by lower page of data and the upper page data write-in nextpage of TLC Physical Page and upper
Page;
It step 306, will be in the correspondence Physical Page of lower page of data and upper page data write-in SLC physical block;
Step 308, lower page of data is returned to host and upper page data is successfully written flash memory.
Specifically, in the present embodiment, in order to solve the problems, such as shared page in technology, to reduce standby electricity
The cost of this material of source.There are also another characteristics for the physical block of TLC flash memory, it can is arranged to the use of SLC mode, SLC
Physical block has a characteristic that read or write speed ratio TLC physical block is fast;Can storing data capacity be TLC physical block 1/3;It writes
Entering mode is one shot, i.e., natural the problem of shared page is not present;Possess the longer service life than TLC physical block, it can
It is much higher that erasing times are written.
Our purpose is in fact: writing during page, upper page and outer page after powered-off fault, the number in nextpage and upper page
According to also saving in a flash memory.It does not require to have to be stored in the nextpage and upper page of this TLC Physical Page.Therefore, such as Fig. 6 institute
Show, for convenience of describing, we simplify the positional relationship (shared of actually distinct producer of shared page in TLC physical block
Page positional relationship is also different), i.e., small Physical Page 0,1,10 is shared page;2,3,11 be shared page;4,5,
12 be shared page, and grey parts are invalid small Physical Page.The sequence that small Physical Page is written in master control is 0,1,2,3,4,5,6,
7.......The physical block of two SLC modes is arranged in we, under special backup is currently written in the TLC physical block of data
Page and upper page data.
Specifically, firstly, according to data write request by lower page of data and upper page data write-in TLC Physical Page nextpage and
Upper page.It then, will be in the correspondence Physical Page of lower page of data and upper page data write-in SLC physical block.Finally, returning to nextpage to host
Data and upper page data are successfully written flash memory.
In the present embodiment, by obtaining the data write request based on solid state hard disk;According to data write request will under
The nextpage and upper page of page data and upper page data write-in TLC Physical Page;SLC physical block is written into lower page of data and upper page data
In corresponding Physical Page;Lower page of data is returned to host and upper page data is successfully written flash memory.The present embodiment does not have using SLC mode
The characteristic of shared page problem, it is complete by technology of the data backup of nextpage and upper page in TLC physical block in SLC physical block
U.S.A solves the problems, such as the shared page of 3D TLC flash memory, and has the advantage of low cost compared with prior art.
It in one embodiment, should as shown in figure 4, providing a kind of data write-read method based on solid state hard disk
Method includes:
Step 402, the data write request based on solid state hard disk is obtained;
Step 404, according to data write request by lower page of data and the upper page data write-in nextpage of TLC Physical Page and upper
Page;
It step 406, will be in the correspondence Physical Page of lower page of data and upper page data write-in SLC physical block;
Step 408, lower page of data is returned to host and upper page data is successfully written flash memory;
Step 410, TLC physical block is written into outer page data;
Step 412, outer page data is returned to host be successfully written flash memory.
Specifically, in conjunction with reference Fig. 6,7, providing a kind of data write-in process in the present embodiment includes:
The first step chooses in Fig. 6 TLC physical block as current write-in block, and wipes two SLC objects in a Fig. 6
Manage block.
Small Physical Page 0 and page 1 is written in second step, master control, first TLC Physical Page in TLC physical block in write-in Fig. 6 first
The nextpage of (48KB) and upper page then allow the data of small Physical Page 0 and page 1 that first SLC Physical Page in SLC physical block is written again
(16KB) and second Physical Page (16KB), later SSD master control reply host data and are successfully written into flash memory.That is this data are deposited
Two positions on flash memory, and the speed ratio that SLC physical block is written is very fast.
Small Physical Page 2 to 9 is written according to second step describing mode in third step.
Small Physical Page 10 is written in 4th step, master control, then writes direct in Fig. 6 in TLC physical block first TLC Physical Page
Outer page, then SSD master control replys this data of host and is successfully written into flash memory.
Process is written referring to Fig. 7 in data in Shared page.
And so on, portion is write again in SLC physical block after the data of nextpage and upper page in Fig. 6 TLC physical block are write,
Positional relationship corresponds as shown in Figure 6, and portion need to be only written in the data of outer page in TLC physical block.When TLC physical block
It writes, the two primary SLC physical blocks are wiped in master control when reselecting a new TLC physical block, as under new TLC physical block
The data backup of page and upper page.
When powered-off fault during above-mentioned four step, the then small write-in of Physical Page 10 failure, since master control is replied not yet
The state of the small Physical Page 10 of host, so host oneself knows that 10 do not complete, this will not throw into question, due to flash memory
The characteristic of shared page forms the nextpage and upper page (small Physical Page 0 of share relationship in TLC physical block with small Physical Page 10
With 1) loss of data, but due to the data of small Physical Page 0 and 1 have backup in SLC physical block in the first step, so
Subsequent host can still read the data in Physical Page 0 and 1.
It in one embodiment, should as shown in figure 5, providing a kind of data write-read method based on solid state hard disk
Method further include:
Step 502, the data read request based on solid state hard disk is obtained;
Step 504, lower page of data and the upper page data in TLC physical block are read according to data read request;
Step 506, judge whether the lower page of data read and upper page data malfunction;
Step 508, if so, the correspondence physics page data in reading SLC physical block is to host.
In one embodiment, it is also wrapped after reading the step of correspondence physics page data in SLC physical block is to host
It includes: valid data in TLC physical block is carried out by data-moving by garbage reclamation mechanism.
Specifically, in conjunction with reference Fig. 6,8, providing a kind of reading data process in the present embodiment includes:
The first step, master control can read the data of small Physical Page 0 and 1 in TLC physical block according to mapping table first, and discovery data are wrong
Accidentally.
Second step, master control corresponding position from SLC physical block read correct data, are then passed to host.
Third step, due to Physical Page corrupted data in TLC physical block, starting garbage reclamation program will have in TLC physical block
Data-moving is imitated to new TLC physical block, the data of small Physical Page 0 and 1 of damage are obtained from SLC physical block.
The process for reading Shared page nextpage and upper page is as shown in Figure 8.
In the above-described embodiments, there is no the characteristic of shared page problem using SLC mode, by nextpage in TLC physical block
The shared page problem of 3D TLC flash memory has been solved perfectly in technology of the data backup in SLC physical block with upper page, from
And the dependence to capacitor is released, reduce cost.
It should be understood that although each step in the flow chart of Fig. 3-8 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-8
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 9, providing a kind of data write-in reading device 900 based on solid state hard disk,
The device includes:
First obtains module 901, for obtaining the data write request based on solid state hard disk;
First writing module 902, for TLC Physical Page to be written in lower page of data and upper page data according to data write request
Nextpage and upper page;
Second writing module 903, for will lower page of data and upper page data write-in SLC physical block correspondence Physical Page in;
First return module 904, for being successfully written flash memory to host return lower page of data and upper page data.
In one embodiment, as shown in Figure 10, a kind of data write-in reading device based on solid state hard disk is provided
900, the device further include:
Third writing module 905, for TLC physical block to be written in outer page data;
Second return module 906 is successfully written flash memory for returning to outer page data to host.
In one embodiment, as shown in figure 11, a kind of data write-in reading device based on solid state hard disk is provided
900, the device further include:
Second obtains module 907, for obtaining the data read request based on solid state hard disk;
Data read module 908, for reading lower page of data and upper number of pages in TLC physical block according to data read request
According to;
Judge whether the lower page of data read and upper page data malfunction;
If so, the correspondence physics page data in reading SLC physical block is to host.
In one embodiment, as shown in figure 12, a kind of data write-in reading device based on solid state hard disk is provided
900, the device further include:
Data-moving module 909 is removed for valid data in TLC physical block to be carried out data by garbage reclamation mechanism
It moves.
Specific restriction about the data write-in reading device based on solid state hard disk may refer to above for based on solid
The restriction of the data write-read method of state hard disk, details are not described herein.
In one embodiment, a kind of computer equipment is provided, internal structure chart can be as shown in figure 13.The calculating
Machine equipment includes processor, memory and the network interface connected by device bus.Wherein, the processing of the computer equipment
Device is for providing calculating and control ability.The memory of the computer equipment includes non-volatile memory medium, built-in storage.It should
Non-volatile memory medium is stored with operating device, computer program and database.The built-in storage is non-volatile memories Jie
The operation of operating device and computer program in matter provides environment.The network interface of the computer equipment is used for and external end
End passes through network connection communication.To realize a kind of data write-in based on solid state hard disk when the computer program is executed by processor
Read method.
It will be understood by those skilled in the art that structure shown in Figure 13, only part relevant to application scheme
The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set
Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor are realized when executing computer program in above each embodiment of the method
The step of.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
The step in above each embodiment of the method is realized when machine program is executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of data write-read method based on solid state hard disk, which comprises
Obtain the data write request based on solid state hard disk;
Lower page of data and upper page data are written to the nextpage and upper page of TLC Physical Page according to the data write request;
It will be in the correspondence Physical Page of the lower page of data and upper page data write-in SLC physical block;
Lower page of data is returned to host and upper page data is successfully written flash memory.
2. the data write-read method according to claim 1 based on solid state hard disk, which is characterized in that described to master
After the step of machine return lower page of data and upper page data are successfully written flash memory further include:
TLC physical block is written into outer page data;
Outer page data, which is returned, to host is successfully written flash memory.
3. the data write-read method according to claim 2 based on solid state hard disk, which is characterized in that the method is also
Include:
Obtain the data read request based on solid state hard disk;
Lower page of data and the upper page data in TLC physical block are read according to the data read request;
Judge whether the lower page of data read and upper page data malfunction;
If so, the correspondence physics page data in reading SLC physical block is to host.
4. the data write-read method according to claim 3 based on solid state hard disk, which is characterized in that in the reading
After the step of correspondence physics page data in SLC physical block is to host further include:
Valid data in TLC physical block are subjected to data-moving by garbage reclamation mechanism.
5. reading device is written in a kind of data based on solid state hard disk, which is characterized in that described device includes:
First obtains module, and the first acquisition module is for obtaining the data write request based on solid state hard disk;
First writing module, first writing module are used for lower page of data and upper page data according to the data write request
The nextpage and upper page of TLC Physical Page is written;
Second writing module, second writing module are used to the lower page of data and upper page data SLC physical block is written
In corresponding Physical Page;
First return module, first return module is used to return to lower page of data to host and upper page data is successfully written sudden strain of a muscle
It deposits.
6. reading device is written in the data according to claim 5 based on solid state hard disk, which is characterized in that described device is also
Include:
Third writing module, the third writing module are used to outer page data TLC physical block is written;
Second return module, second return module, which is used to return to outer page data to host, is successfully written flash memory.
7. reading device is written in the data according to claim 6 based on solid state hard disk, which is characterized in that described device is also
Include:
Second obtains module, and the second acquisition module is for obtaining the data read request based on solid state hard disk;
Data read module, under the data read module is used to be read in TLC physical block according to the data read request
Page data and upper page data;
Judge whether the lower page of data read and upper page data malfunction;
If so, the correspondence physics page data in reading SLC physical block is to host.
8. reading device is written in the data according to claim 7 based on solid state hard disk, which is characterized in that described device is also
Include:
Data-moving module, the data-moving module be used for by garbage reclamation mechanism by valid data in TLC physical block into
Row data-moving.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 4 institute when executing the computer program
The step of stating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of Claims 1-4 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910743941.7A CN110471863A (en) | 2019-08-13 | 2019-08-13 | Data write-read method, device and computer equipment based on solid state hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910743941.7A CN110471863A (en) | 2019-08-13 | 2019-08-13 | Data write-read method, device and computer equipment based on solid state hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110471863A true CN110471863A (en) | 2019-11-19 |
Family
ID=68511756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910743941.7A Pending CN110471863A (en) | 2019-08-13 | 2019-08-13 | Data write-read method, device and computer equipment based on solid state hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471863A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448778A (en) * | 2021-07-15 | 2021-09-28 | 华东师范大学 | Backup method for key data in hybrid SSD |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130054903A1 (en) * | 2011-08-24 | 2013-02-28 | Novatek Microelectronics Corp. | Memory device and writing method thereof |
CN103389881A (en) * | 2012-05-08 | 2013-11-13 | 索尼公司 | Control device, storage device, and data writing method |
CN105808371A (en) * | 2014-12-31 | 2016-07-27 | 深圳市硅格半导体有限公司 | Data backup and recovery method, control chip and storage device |
US20170047124A1 (en) * | 2015-08-10 | 2017-02-16 | Sandisk Enterprise Ip Llc | Low Read Data Storage Management |
CN108139970A (en) * | 2015-11-16 | 2018-06-08 | 桑迪士克科技有限责任公司 | For writing direct the system and method for multilevel cell memory |
CN108170381A (en) * | 2017-12-28 | 2018-06-15 | 湖南国科微电子股份有限公司 | A kind of SLC Block to XLC Block data migration methods |
CN108549588A (en) * | 2018-03-27 | 2018-09-18 | 深圳忆联信息系统有限公司 | A method of eliminating TLC flash memory multi-disc program fails |
-
2019
- 2019-08-13 CN CN201910743941.7A patent/CN110471863A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130054903A1 (en) * | 2011-08-24 | 2013-02-28 | Novatek Microelectronics Corp. | Memory device and writing method thereof |
CN103389881A (en) * | 2012-05-08 | 2013-11-13 | 索尼公司 | Control device, storage device, and data writing method |
CN105808371A (en) * | 2014-12-31 | 2016-07-27 | 深圳市硅格半导体有限公司 | Data backup and recovery method, control chip and storage device |
US20170047124A1 (en) * | 2015-08-10 | 2017-02-16 | Sandisk Enterprise Ip Llc | Low Read Data Storage Management |
CN108139970A (en) * | 2015-11-16 | 2018-06-08 | 桑迪士克科技有限责任公司 | For writing direct the system and method for multilevel cell memory |
CN108170381A (en) * | 2017-12-28 | 2018-06-15 | 湖南国科微电子股份有限公司 | A kind of SLC Block to XLC Block data migration methods |
CN108549588A (en) * | 2018-03-27 | 2018-09-18 | 深圳忆联信息系统有限公司 | A method of eliminating TLC flash memory multi-disc program fails |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448778A (en) * | 2021-07-15 | 2021-09-28 | 华东师范大学 | Backup method for key data in hybrid SSD |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10445231B2 (en) | Method and system for storage device metadata management and processing | |
US9164848B2 (en) | Variable partitioning in a hybrid memory subsystem | |
CN101198939B (en) | Storage of flash memory management | |
US8448023B2 (en) | Approach for data integrity in an embedded device environment | |
KR101303524B1 (en) | Metadata redundancy schemes for non-volatile memories | |
CN105224478B (en) | A kind of formation of mapping table, update and restoration methods and electronic equipment | |
CN105243025B (en) | A kind of formation of mapping table and loading method, electronic equipment | |
US8296504B2 (en) | Data management method and flash memory storage system and controller using the same | |
CN103150125B (en) | Method for prolonging service life of power-down protection date buffer memory and smart card | |
Lee et al. | Shortcut-JFS: A write efficient journaling file system for phase change memory | |
US20090031098A1 (en) | Variable partitioning in a hybrid memory subsystem | |
CN104756088A (en) | Flexible wear management for non-volatile memory | |
CN107799150A (en) | The error mitigation of 3D nand flash memories | |
WO2009015309A1 (en) | Power interrupt recovery in a hybrid memory subsystem | |
CN101923448A (en) | Method for reading and writing conversion layer of NAND flash memory | |
TW201001425A (en) | Ad hoc flash memory reference cells | |
US10579483B2 (en) | Storing a compact flash physical-to-host logical address mapping table on power loss | |
WO2009015306A2 (en) | Capacitor save energy verification | |
CN112035294A (en) | Security log file system, and implementation method and medium thereof | |
CN107992431A (en) | A kind of power-off protection method of nand flash memory invalid data recycling | |
CN109101437A (en) | Data storage method and terminal | |
CN106406750A (en) | Data operation method and system | |
CN104461917A (en) | Nor Flash-based regional cycle storage method | |
CN110471863A (en) | Data write-read method, device and computer equipment based on solid state hard disk | |
US11347433B2 (en) | Method for performing sudden power off recovery management, associated memory device and controller thereof, and associated 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |