CN110362276A - Trim execution efficiency method for improving and device based on solid state hard disk - Google Patents
Trim execution efficiency method for improving and device based on solid state hard disk Download PDFInfo
- Publication number
- CN110362276A CN110362276A CN201910620571.8A CN201910620571A CN110362276A CN 110362276 A CN110362276 A CN 110362276A CN 201910620571 A CN201910620571 A CN 201910620571A CN 110362276 A CN110362276 A CN 110362276A
- Authority
- CN
- China
- Prior art keywords
- trim
- information table
- host
- particle
- hard disk
- 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 40
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000013507 mapping Methods 0.000 claims abstract description 72
- 230000015654 memory Effects 0.000 claims abstract description 47
- 239000002245 particle Substances 0.000 claims description 53
- 238000004590 computer program Methods 0.000 claims description 16
- 238000010304 firing Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims 1
- 230000001965 increasing effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000007334 memory performance Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 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
- 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/0604—Improving or facilitating administration, e.g. storage management
-
- 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/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- 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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application involves a kind of Trim execution efficiency method for improving, device, computer equipment and storage medium based on solid state hard disk, wherein this method comprises: obtaining the Trim execution efficiency based on solid state hard disk promotes request;It is that corresponding mapping table generates Trim information table according to the request, wherein the Trim information table is used to record the graininess in the mapping table by Trim;The state of the Trim information table is updated, and updated Trim information table is written in DRAM;Host Trim order is returned after the completion of write-in to be completed.The present invention is by increasing a smaller Trim information table in SSD firmware, it records in mapping table by the graininess of Trim, and SSD, which only needs Trim information table to be written after flash memory, can reply host Trim completion, be greatly improved the execution efficiency of Trim order.
Description
Technical field
The present invention relates to solid state hard disk technical fields, mention more particularly to a kind of Trim execution efficiency based on solid state hard disk
Lifting 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 SSD of current main-stream is all made of flash memory as storage medium,
One of flash memory characteristics are that physical block needs that new data could be written after wiping, and the file system of host is this in order to adapt to SSD
Characteristic has specially invented Trim mechanism, and a part of data being written in SSD before host no longer needs, then host is sent
One Trim order tells that this partial data (in agreement between one section of LBA band) host is no longer necessary, implies here SSD
SSD needs for corresponding map information between this part of LBA band to be set to no mapping (Nomap), and such SSD can be by these LBA
Corresponding physical block directly wipes out, and vacates physical space rapidly.
In the conventional technology, current Trim executive mode is that SSD firmware will be corresponding between the specified LBA band of Trim order
Mapping table is set to Nomap, and flash memory then is written in updated mapping table, finally replys host Trim and completes, host requires this
A few step operations need to complete within a certain period of time, it is assumed here that are 1 second.
There is no problem by SSD of this executive mode to low capacity, because the mapping table of low capacity is also small, foot in 1 second time
It is enough to complete above several steps, but for the SSD of large capacity, mapping table is bigger, such as the SSD of 4TB, using 4KB as map unit,
Then mapping table has 4GB, and the flash memory performance of SSD, which needs to reach 4GB/s, flash memory is written by mapping table in 1 second, but at present
This performance is all not achieved in the flash memory and controller of mainstream substantially.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind may be implemented to advise under any SSD capacity
It fixes time and interior complete the Trim execution efficiency method for improving based on solid state hard disk of Trim order, device, computer equipment and deposit
Storage media.
A kind of Trim execution efficiency method for improving based on solid state hard disk, which comprises
It obtains the Trim execution efficiency based on solid state hard disk and promotes request;
It is that corresponding mapping table generates Trim information table according to the request, wherein the Trim information table is for recording institute
State the graininess in mapping table by Trim;
The state of the Trim information table is updated, and updated Trim information table is written in DRAM;
Host Trim order is returned after the completion of write-in to be completed.
Described the step of Trim information table is generated for corresponding mapping table according to the request in one of the embodiments,
Include:
Mapping table is logically cut into multistage particle according to certain granularity;
SSD is the Trim state that a 1bit is arranged in every section of particle, and the Trim state indicates whether this section of particle is led
Machine Trim falls;
The Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
The Trim state indicates the step of whether this section of particle is fallen by host Trim packet in one of the embodiments,
It includes:
The Trim state is set this section of particle of 1 expression and is fallen by host Trim;
This section of particle of clear 0 expression of Trim state be not by host Trim or indicates by host Trim and has executed
Nomap operation and write-in flash disk operation.
After replying host Trim order completed step after the completion of in one of the embodiments, described when write-in
Further include:
SSD start Trim information table internal task, the internal task be used for by set in Trim information table 1 particle pair
The mapping table answered is set to without mapping and by graininess clear 0;
SSD exits the internal task and has checked whether that host request needs to respond;
The host request is responded if having until graininess all in Trim information table is all 0.
A kind of Trim execution efficiency lifting device based on solid state hard disk, described device include:
Module is obtained, the module that obtains is used to obtain the Trim execution efficiency promotion request based on solid state hard disk;
Generation module, the generation module are used to according to the request be that corresponding mapping table generates Trim information table,
Described in Trim information table be used to record graininess in the mapping table by Trim;
State update module, the state update module are used to update the state of the Trim information table, and will be after update
Trim information table be written in DRAM;
Return module, the return module are used to return to host Trim order after the completion of write-in and be completed.
The generation module is also used in one of the embodiments:
Mapping table is logically cut into multistage particle according to certain granularity;
SSD is the Trim state that a 1bit is arranged in every section of particle, and the Trim state indicates whether this section of particle is led
Machine Trim falls;
The Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
The Trim state indicates whether this section of particle is fallen by host Trim and includes: in one of the embodiments,
The Trim state is set this section of particle of 1 expression and is fallen by host Trim;
This section of particle of clear 0 expression of Trim state be not by host Trim or indicates by host Trim and has executed
Nomap operation and write-in flash disk operation.
Described device in one of the embodiments, further include:
Internal task module, internal task of the internal task module for SSD starting Trim information table, the inside
Task is used to for the corresponding mapping table of particle for setting 1 in Trim information table being set to without mapping and by graininess clear 0;
Ask respond module, the ask respond module exit the internal task and have checked whether host for SSD
Request needs to respond;The host request is responded if having until graininess all in Trim information table is all 0.
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 Trim execution efficiency method for improving, device, computer equipment and storage medium based on solid state hard disk, passes through
It obtains the Trim execution efficiency based on solid state hard disk and promotes request;It is that corresponding mapping table generates Trim information according to the request
Table, wherein the Trim information table is used to record the graininess in the mapping table by Trim;Update the Trim information table
State, and updated Trim information table is written in DRAM;Host Trim order is returned after the completion of write-in to be completed.
The present invention is recorded in mapping table by one smaller Trim information table of increase in SSD firmware by the graininess of Trim, and
And SSD only needs that host Trim will can be replied after Trim information table write-in flash memory and completes, and is greatly improved Trim order
Execution efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram that data procedures are written in traditional technology totally;
Fig. 2 is the flow diagram of Trim implementation procedure in traditional technology;
Fig. 3 is the flow diagram of the Trim execution efficiency method for improving based on solid state hard disk in one embodiment;
Fig. 4 is the flow diagram of the Trim execution efficiency method for improving based on solid state hard disk in another embodiment;
Fig. 5 is the flow diagram of the Trim execution efficiency method for improving based on solid state hard disk in further embodiment;
Fig. 6 is the schematic diagram that Trim information table is constituted in one embodiment;
Fig. 7 is the structural block diagram of the Trim execution efficiency lifting device based on solid state hard disk in one embodiment;
Fig. 8 is the structural block diagram of the Trim execution efficiency lifting device based on solid state hard disk in another embodiment;
Fig. 9 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.
Assuming that data were written to SSD in host totally, in SSD, mapping table and logical address LBA and flash memory be physically
The corresponding relationship of location is as shown in Figure 1, then one Trim order of host initiation, Trim between the LBA band of entire SSD is fallen, then
Execute following steps:
Step 1: calculating corresponding mapping table section between LBA band of the SSD firmware according to Trim order, and update pair
The physics bulk state answered is Nomap.
Step 2: updated mapping table is written to flash memory, as shown in Figure 2.The operation is necessary, because of mapping table
Be stored in DRAM, DRAM is that data are lost in power down, were it not for this step and if leaping to third step, when the
Three steps have just completed host with regard to power down, then newest mapping table is lost in DRAM, subsequent to power on rear SSD and read out from flash memory
Old mapping table, there are mapping relations in all LBA, i.e. it is that host needs that SSD, which thinks the data on flash memory,.And
Host but thinks that SSD has known that the data being written before are all useless.This will cause host and the communication barrier of SSD, cause
The performance dramatic decrease of subsequent operation.
Step 3: (it is assumed herein that 1 second) SSD replys host Trim order completion in the time as defined in host.
The attainable performance that is sequentially written in of the flash media and controller of current main-stream does not exceed 2GB/s substantially, so
When SSD capacity is not more than 2TB, corresponding mapping table is not more than 2GB, and the program can guarantee to complete Trim order in 1 second,
Then after SSD capacity further increases, the requirement of host is not substantially met.
The present invention in view of the drawbacks of the prior art, proposes that another efficient Trim carries into execution a plan, it is expected that in any SSD
Trim order can be completed under capacity at the appointed time.
In one embodiment, as shown in figure 3, providing a kind of Trim execution efficiency promotion side based on solid state hard disk
Method, this method comprises:
Step 302, it obtains the Trim execution efficiency based on solid state hard disk and promotes request;
It step 304, is that corresponding mapping table generates Trim information table according to request, wherein Trim information table is reflected for recording
By the graininess of Trim in firing table;
Step 306, the state of Trim information table is updated, and updated Trim information table is written in DRAM;
Step 308, host Trim order is returned to after the completion of write-in to be completed.
In the conventional technology, since entire mapping table can not be written to flash memory at the appointed time, then can be mapping
Table generates a Trim information table, this Trim information table has following characteristic: firstly, the Trim information table can be buffered in
In DRAM, finally need to be written in flash memory.Secondly, the size of the Trim information table is small more than mapping table itself.In addition, should
Trim information table can describe mapping table by the information of Trim.Finally, the Trim information table in flash memory should keep newest.
Specifically, refering to what is shown in Fig. 6, logically according to certain granularity, (size of granularity can root by mapping table
According to needing to configure, it is assumed here that be 16KB) it is cut into N block, SSD firmware is that the Trim of a 1bit is arranged in the particle of each 16KB
State, it indicates whether the particle is fallen by host Trim, sets this section of particle of 1 expression and is fallen (to imply corresponding reflect by host Trim
Firing table executes Nomap operation not yet), clear 0 indicate this section of particle not by host Trim or indicate by host Trim and
Nomap operation and write-in flash disk operation are executed.
The Trim state of these 1bit forms a Trim information table, is buffered in DRAM, and each update requires will most
New table is written in flash memory, and the size of the table is SSD capacity/granularity (bit), with the SSD's of 4TB size and capacity and 16KB
For granularity, the table size be 4TB/16KB (bit)=32MB, for the mapping table of 4GB, this be it is fairly small,
And it is written to flash memory and probably need to only spend 20ms.
Corresponding Trim state is set 1 according to calculating all particles between the LBA band of Trim by SSD firmware, that is, is updated
Trim information table in DRAM, all graininess of Trim information table are all set to 1 in the present embodiment.Then, by Trim information
Table is written to flash memory.It is completed finally, SSD replys host Trim order.
In the present embodiment, request is promoted by obtaining the Trim execution efficiency based on solid state hard disk;According to the request
Trim information table is generated for corresponding mapping table, wherein the Trim information table is used to record in the mapping table by Trim
Granular state;The state of the Trim information table is updated, and updated Trim information table is written in DRAM;When write-in is completed
Host Trim order is returned afterwards to be completed.The present embodiment is by increasing a smaller Trim information table, record in SSD firmware
By the graininess of Trim in mapping table, and SSD only needs that host Trim can be replied after flash memory is written in Trim information table
It completes, is greatly improved the execution efficiency of Trim order.
In one embodiment, as shown in figure 4, providing a kind of Trim execution efficiency promotion side based on solid state hard disk
Method according to request is that the step of corresponding mapping table generates Trim information table includes: in this method
Step 402, mapping table is logically cut into multistage particle according to certain granularity;
Step 404, SSD is the Trim state that a 1bit is arranged in every section of particle, and whether Trim state indicates this section of particle
Fallen by host Trim;
Step 406, the Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
In one embodiment, this section of particle of 1 expression is set when Trim state to have been fallen by host Trim;When Trim state clear 0
This section of particle is indicated not by host Trim or indicates by host Trim and has executed Nomap operation and write-in flash memory behaviour
Make.
In combination with Trim information table shown in fig. 6 is referred to, by mapping table logically according to certain granularity (granularity
Size can configure as needed, it is assumed here that be 16KB) be cut into N block, the particle that SSD firmware is each 16KB is arranged one
The Trim state of 1bit, it indicates whether the particle is fallen by host Trim, sets this section of particle of 1 expression and has been fallen (secretly by host Trim
Show that corresponding mapping table executes Nomap operation not yet), this section of particle of clear 0 expression by host Trim or does not indicate to be led
Machine Trim and Nomap operation and write-in flash disk operation are executed.
The Trim state of these 1bit forms a Trim information table, is buffered in DRAM, and each update requires will most
New table is written in flash memory, and the size of the table is SSD capacity/granularity (bit), with the SSD's of 4TB size and capacity and 16KB
For granularity, the table size be 4TB/16KB (bit)=32MB, for the mapping table of 4GB, this be it is fairly small,
And it is written to flash memory and probably need to only spend 20ms.
In one embodiment, as shown in figure 5, providing a kind of Trim execution efficiency promotion side based on solid state hard disk
Method, after this method replys host Trim order completed step after the completion of when write-in further include:
Step 502, SSD start Trim information table internal task, internal task be used for by set in Trim information table 1
The corresponding mapping table of grain is set to without mapping and by graininess clear 0;
Step 504, SSD exits internal task and has checked whether that host request needs to respond;
Step 506, host request is responded if having until graininess all in Trim information table is all 0.
Specifically, after still assuming that data are written totally to SSD in host, the overall Trim order of a Trim is issued, is connect
Get off to be discussed in detail execute process the following steps are included:
Step 1: SSD firmware is according to calculating all particles between the LBA band of Trim, and corresponding Trim state is set
1, that is, the Trim information table in DRAM is updated, all graininess of Trim information table are all set to 1 in the example.
Step 2: Trim information table is written to flash memory.
It is completed step 3: SSD replys host Trim order.
Step 4: SSD starts the internal task of Trim mapping table when no host is requested, the function of the task is will
It sets the 1 corresponding mapping table of particle in Trim information table to be set to without mapping and by graininess clear 0, the particle of every subtask processing
Number can flexible configuration according to demand, it is assumed here that and it is N, after the corresponding mapping table of N number of particle is all set to no mapping, SSD firmware
Current mapping table and Trim information table are written in flash memory together.Can so guarantee to store in flash memory is newest
Trim information table and corresponding mapping table, if the SSD power down during the 4th step, re-powering rear SSD also can be from flash memory
Acquisition and consistent state before power down, lose without any information.
Step 5: SSD exits internal task, check whether that host request needs to respond, if there is then service host is asked
It asks, otherwise continues to execute the 4th step, until graininess all in Trim information table is all 0.
If host has been initiated between the LBA band fallen by Trim before entire Trim information table does not complete clear 0 operation also again
Read operation, SSD firmware first determines whether the graininess in the corresponding Trim information table of LBA is 1, should if it is 1 explanation
Fallen by Trim before LBA, directly as Nomap processing, the corresponding physical address of the LBA is otherwise searched from mapping table, from
Data are read in flash memory.In addition, also there is no problem for the accurate aspect of data.
With the increase of SSD capacity, the size of granularity can be increased in the present embodiment in proportion, Trim information is ensured with this
The size of table remains unchanged, i.e., the execution time of Trim order can't be by SSD capacity impact in the present embodiment.
It should be understood that although each step in the flow chart of Fig. 3-5 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-5
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 fig. 7, providing a kind of Trim execution efficiency lifting device based on solid state hard disk
700, which includes:
Module 701 is obtained, promotes request for obtaining the Trim execution efficiency based on solid state hard disk;
Generation module 702, for being that corresponding mapping table generates Trim information table according to request, wherein Trim information table is used
By the graininess of Trim in record mapping table;
State update module 703 is written to for updating the state of Trim information table, and by updated Trim information table
In DRAM;
Return module 704 is completed for returning to host Trim order after the completion of write-in.
In one embodiment, generation module 702 is also used to:
Mapping table is logically cut into multistage particle according to certain granularity;
SSD is the Trim state that a 1bit is arranged in every section of particle, and the Trim state indicates whether this section of particle is led
Machine Trim falls;
The Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
In one embodiment, Trim state indicates whether this section of particle is fallen by host Trim and includes:
Trim state is set this section of particle of 1 expression and is fallen by host Trim;
This section of particle of clear 0 expression of Trim state be not by host Trim or indicates by host Trim and has executed
Nomap operation and write-in flash disk operation.
In one embodiment, as shown in figure 8, providing a kind of Trim execution efficiency lifting device based on solid state hard disk
700, the device further include:
Internal task module 705, for the internal task of SSD starting Trim information table, internal task is for believing Trim
The 1 corresponding mapping table of particle is set in breath table to be set to without mapping and by graininess clear 0;
Ask respond module 706 exits internal task for SSD and has checked whether that host request needs to respond;If having
Host request is then responded until graininess all in Trim information table is all 0.
Specific restriction about the Trim execution efficiency lifting device based on solid state hard disk may refer to above for base
In the restriction of the Trim execution efficiency method for improving of solid 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 9.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 that a kind of Trim based on solid state hard disk is executed when the computer program is executed by processor
Improved efficiency method.
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It 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 Trim execution efficiency method for improving based on solid state hard disk, which comprises
It obtains the Trim execution efficiency based on solid state hard disk and promotes request;
It is that corresponding mapping table generates Trim information table according to the request, wherein the Trim information table is for recording described reflect
By the graininess of Trim in firing table;
The state of the Trim information table is updated, and updated Trim information table is written in DRAM;
Host Trim order is returned after the completion of write-in to be completed.
2. the Trim execution efficiency method for improving according to claim 1 based on solid state hard disk, which is characterized in that described
It is that the step of corresponding mapping table generates Trim information table includes: according to the request
Mapping table is logically cut into multistage particle according to certain granularity;
SSD is the Trim state that a 1bit is arranged in every section of particle, and whether the Trim state indicates this section of particle by host
Trim falls;
The Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
3. the Trim execution efficiency method for improving according to claim 2 based on solid state hard disk, which is characterized in that described
Trim state indicates that the step of whether this section of particle is fallen by host Trim includes:
The Trim state is set this section of particle of 1 expression and is fallen by host Trim;
This section of particle of clear 0 expression of Trim state be not by host Trim or indicates by host Trim and has executed
Nomap operation and write-in flash disk operation.
4. the Trim execution efficiency method for improving according to claim 3 based on solid state hard disk, which is characterized in that described
After replying the completed step of host Trim order after the completion of write-in further include:
SSD starts the internal task of Trim information table, and the particle that the internal task is used to that 1 will to be set in Trim information table is corresponding
Mapping table is set to without mapping and by graininess clear 0;
SSD exits the internal task and has checked whether that host request needs to respond;
The host request is responded if having until graininess all in Trim information table is all 0.
5. a kind of Trim execution efficiency lifting device based on solid state hard disk, which is characterized in that described device includes:
Module is obtained, the module that obtains is used to obtain the Trim execution efficiency promotion request based on solid state hard disk;
Generation module, the generation module are used to according to the request be that corresponding mapping table generates Trim information table, wherein institute
Trim information table is stated for recording the graininess in the mapping table by Trim;
State update module, the state update module are used to update the state of the Trim information table, and will be updated
Trim information table is written in DRAM;
Return module, the return module are used to return to host Trim order after the completion of write-in and be completed.
6. the Trim execution efficiency lifting device according to claim 5 based on solid state hard disk, which is characterized in that the life
It is also used at module:
Mapping table is logically cut into multistage particle according to certain granularity;
SSD is the Trim state that a 1bit is arranged in every section of particle, and whether the Trim state indicates this section of particle by host
Trim falls;
The Trim state of multiple 1bit collectively constitutes corresponding Trim information table and is buffered in DRAM.
7. the Trim execution efficiency lifting device according to claim 6 based on solid state hard disk, which is characterized in that described
Trim state indicates whether this section of particle is fallen by host Trim
The Trim state is set this section of particle of 1 expression and is fallen by host Trim;
This section of particle of clear 0 expression of Trim state be not by host Trim or indicates by host Trim and has executed
Nomap operation and write-in flash disk operation.
8. the Trim execution efficiency lifting device according to claim 7 based on solid state hard disk, which is characterized in that the dress
It sets further include:
Internal task module, internal task of the internal task module for SSD starting Trim information table, the internal task
For being set to the corresponding mapping table of particle for setting 1 in Trim information table without mapping and by graininess clear 0;
Ask respond module, the ask respond module exit the internal task and have checked whether host request for SSD
It needs to respond;The host request is responded if having until graininess all in Trim information table is all 0.
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 |
---|---|---|---|
CN201910620571.8A CN110362276A (en) | 2019-07-10 | 2019-07-10 | Trim execution efficiency method for improving and device based on solid state hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910620571.8A CN110362276A (en) | 2019-07-10 | 2019-07-10 | Trim execution efficiency method for improving and device based on solid state hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362276A true CN110362276A (en) | 2019-10-22 |
Family
ID=68218504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910620571.8A Pending CN110362276A (en) | 2019-07-10 | 2019-07-10 | Trim execution efficiency method for improving and device based on solid state hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362276A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825325A (en) * | 2019-10-30 | 2020-02-21 | 深圳忆联信息系统有限公司 | Mapping table dynamic loading-based SSD performance improving method and device, computer equipment and storage medium |
CN112650445A (en) * | 2020-12-11 | 2021-04-13 | 苏州浪潮智能科技有限公司 | Method and device for executing Trim by solid state disk |
WO2021082113A1 (en) * | 2019-10-31 | 2021-05-06 | 江苏华存电子科技有限公司 | Method for maintaining dataset management operation effect of non-volatile memory host controller |
CN113031866A (en) * | 2021-03-24 | 2021-06-25 | 山东华芯半导体有限公司 | Trim management method applied to SSD |
CN113867641A (en) * | 2021-09-29 | 2021-12-31 | 杭州海康存储科技有限公司 | Host memory buffer management method and device and solid state disk |
CN113971006A (en) * | 2021-10-31 | 2022-01-25 | 苏州浪潮智能科技有限公司 | Data writing method, system, storage medium and equipment based on hard disk |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461387A (en) * | 2014-12-02 | 2015-03-25 | 记忆科技(深圳)有限公司 | Method for improving reading property of solid-state hard disk for no mapping region |
CN108763100A (en) * | 2018-05-28 | 2018-11-06 | 深圳忆联信息系统有限公司 | A kind of quick TRIM methods of solid storage device and its system |
CN109144422A (en) * | 2018-08-31 | 2019-01-04 | 浪潮电子信息产业股份有限公司 | Data writing method, device and equipment for solid state disk and storage medium |
CN109240939A (en) * | 2018-08-15 | 2019-01-18 | 杭州阿姆科技有限公司 | A kind of method of quick processing solid state hard disk TRIM |
-
2019
- 2019-07-10 CN CN201910620571.8A patent/CN110362276A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461387A (en) * | 2014-12-02 | 2015-03-25 | 记忆科技(深圳)有限公司 | Method for improving reading property of solid-state hard disk for no mapping region |
CN108763100A (en) * | 2018-05-28 | 2018-11-06 | 深圳忆联信息系统有限公司 | A kind of quick TRIM methods of solid storage device and its system |
CN109240939A (en) * | 2018-08-15 | 2019-01-18 | 杭州阿姆科技有限公司 | A kind of method of quick processing solid state hard disk TRIM |
CN109144422A (en) * | 2018-08-31 | 2019-01-04 | 浪潮电子信息产业股份有限公司 | Data writing method, device and equipment for solid state disk and storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825325A (en) * | 2019-10-30 | 2020-02-21 | 深圳忆联信息系统有限公司 | Mapping table dynamic loading-based SSD performance improving method and device, computer equipment and storage medium |
WO2021082113A1 (en) * | 2019-10-31 | 2021-05-06 | 江苏华存电子科技有限公司 | Method for maintaining dataset management operation effect of non-volatile memory host controller |
CN112650445A (en) * | 2020-12-11 | 2021-04-13 | 苏州浪潮智能科技有限公司 | Method and device for executing Trim by solid state disk |
CN112650445B (en) * | 2020-12-11 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Method and device for executing Trim by solid state disk |
CN113031866A (en) * | 2021-03-24 | 2021-06-25 | 山东华芯半导体有限公司 | Trim management method applied to SSD |
CN113867641A (en) * | 2021-09-29 | 2021-12-31 | 杭州海康存储科技有限公司 | Host memory buffer management method and device and solid state disk |
CN113867641B (en) * | 2021-09-29 | 2023-06-02 | 杭州海康存储科技有限公司 | Host memory buffer management method and device and solid state disk |
CN113971006A (en) * | 2021-10-31 | 2022-01-25 | 苏州浪潮智能科技有限公司 | Data writing method, system, storage medium and equipment based on hard disk |
CN113971006B (en) * | 2021-10-31 | 2023-08-15 | 苏州浪潮智能科技有限公司 | Data writing method, system, storage medium and device based on hard disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362276A (en) | Trim execution efficiency method for improving and device based on solid state hard disk | |
US11243701B2 (en) | Data write method and solid-state drive array | |
US8583854B2 (en) | Nonvolatile storage device with NCQ supported and writing method for a nonvolatile storage device | |
CN104298606A (en) | Garbage collection action control method in SSD | |
US6034897A (en) | Space management for managing high capacity nonvolatile memory | |
EP1729304B1 (en) | Space management for managing high capacity nonvolatile memory | |
CN104298465A (en) | Block grouping method in SSD | |
CN110297606A (en) | Bad block management method, device and computer equipment based on solid state hard disk | |
CN109582227A (en) | Method, apparatus, computer equipment and storage medium is written in solid state hard disk | |
EP2397945A1 (en) | Programming method and device for a buffer cache in a solid-state disk system | |
CN106802867B (en) | Solid state storage device and data programming method thereof | |
CN110704337B (en) | Mapping table reconstruction method and device based on solid state disk and computer equipment | |
US7802072B2 (en) | Data storage device, memory management method and program for updating data recorded in each of a plurality of physically partitioned memory areas | |
US11593262B1 (en) | Garbage collection command scheduling | |
CN110209355A (en) | Full firmware read-write operation optimization method and device based on solid state hard disk | |
US20190332540A1 (en) | Storage management method, electronic device and computer readable medium | |
CN111221750B (en) | Data processing method of solid-state storage device | |
CN114253483B (en) | Command-based write cache management method and device, computer equipment and storage medium | |
CN112631953A (en) | TRIM method and device for solid state disk data, electronic equipment and storage medium | |
CN110504002B (en) | Hard disk data consistency test method and device | |
CN111737162A (en) | Solid state disk using method for quickly recovering data and computer readable storage medium | |
US11481120B2 (en) | Reducing wear on zoned storage devices for storing digital data | |
CN116580754A (en) | Solid state disk-based multiple performance testing method and device and computer equipment | |
CN109634875A (en) | Order data method for caching and processing, device, computer equipment and storage medium | |
CN111897495B (en) | Implementation method, device, computer equipment and storage medium for improving SSD writing performance |
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 |
Application publication date: 20191022 |
|
RJ01 | Rejection of invention patent application after publication |