CN112214168A - Method for setting cold and hot data of solid state disk and data storage system - Google Patents

Method for setting cold and hot data of solid state disk and data storage system Download PDF

Info

Publication number
CN112214168A
CN112214168A CN202011033898.4A CN202011033898A CN112214168A CN 112214168 A CN112214168 A CN 112214168A CN 202011033898 A CN202011033898 A CN 202011033898A CN 112214168 A CN112214168 A CN 112214168A
Authority
CN
China
Prior art keywords
data
written
solid state
cold
hot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011033898.4A
Other languages
Chinese (zh)
Other versions
CN112214168B (en
Inventor
陈圣
杜奇方
曹祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Zhicunheyi Information Technology Co ltd
Original Assignee
Hunan Zhicunheyi Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hunan Zhicunheyi Information Technology Co ltd filed Critical Hunan Zhicunheyi Information Technology Co ltd
Priority to CN202011033898.4A priority Critical patent/CN112214168B/en
Publication of CN112214168A publication Critical patent/CN112214168A/en
Application granted granted Critical
Publication of CN112214168B publication Critical patent/CN112214168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-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)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a method for setting cold and hot data of a solid state disk and a data storage system, wherein the method comprises the following steps: acquiring update information of data to be written through a host connected with the solid state disk through signals; determining, by the host, a hot and cold level of the data to be written according to the update information; and sending a storage instruction to the solid state disk according to the cold and hot levels, wherein the storage instruction comprises the cold and hot levels of the data to be written. The technical scheme of the invention aims to solve the problem of low judgment efficiency caused by self judgment of the cold and hot degree of the data to be written by the solid state disk.

Description

Method for setting cold and hot data of solid state disk and data storage system
Technical Field
The invention relates to the technical field of data storage, in particular to a method for setting cold and hot data of a solid state disk and a data storage system applying the method for setting the cold and hot data of the solid state disk.
Background
When data is written into the solid state disk, due to the characteristics of the flash memory, the data can be written only by erasing the data first and cannot be overwritten. When writing a new data, it can not be changed directly at the position of the old data, and must be written to a new position. After the new location is written, the data in the old location becomes garbage data. The garbage data can occupy the space of the flash memory, when the available space of the flash memory is insufficient, the flash memory conversion layer needs to perform garbage recovery, namely, effective data on a plurality of flash memory blocks are moved out and written into a certain new flash memory block, and then the flash memory blocks are erased to obtain available flash memory blocks so as to realize garbage recovery.
Each Erase wears out the flash block, so flash block life is measured by the P/E number (Program/Erase Count). The continuous updating of user written data causes the number of erasures to increase. Those Data that are often being updated we call Hot Data. On the other hand, Data that is updated infrequently is called Cold Data.
In the related art, when data is written into a solid state disk, monitoring of the frequency or time of the written data needs to be realized through a firmware algorithm of the solid state disk, so that a hot/cold data hierarchy is determined, and then the data is written into a corresponding position area according to the hierarchy.
The related hot/cold data hierarchy determination method mainly has the following two problems:
1. the determination efficiency is low and the error is large. The related mode depends on the algorithm excessively, each algorithm has respective advantages and short boards, certain misjudgment probability exists, the misjudgment probability is realized through solid state disk firmware, the solid state disk main control chip has heavy processing work, a large number of instructions need to be queued, and therefore judgment efficiency is limited.
2. The overhead of a main control chip of the solid state disk is occupied, and the performance is influenced. The above-mentioned conventional determination method needs to be executed by the main control chip of the solid state disk, which increases the overhead of the main control chip and affects the main control processing efficiency, thereby affecting the performance of the solid state disk.
Disclosure of Invention
The invention mainly aims to provide a method for setting cold and hot data of a solid state disk, and aims to solve the problem of low judgment efficiency caused by self judgment of the cold and hot degree of data to be written by the solid state disk.
In order to achieve the above object, the present invention provides a method for setting hot and cold data of a solid state disk, where the solid state disk includes a plurality of data flash memory blocks; the method for setting the cold and hot data of the solid state disk comprises the following steps:
acquiring update information of data to be written through a host connected with the solid state disk through signals;
determining, by the host, a hot and cold level of the data to be written according to the update information;
and sending a storage instruction to the solid state disk according to the cold and hot levels, wherein the storage instruction comprises the cold and hot levels of the data to be written.
Preferably, the step of issuing a storage instruction to the solid state disk according to the hot and cold hierarchy, where the storage instruction includes the hot and cold hierarchy of the data to be written, includes:
acquiring the wear degree of each data flash memory block;
and determining a first data flash memory block which can achieve wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block.
Preferably, after the step of determining a first data flash block capable of achieving wear leveling according to the hot and cold levels of the data to be written and the wear level of each data flash block, the method further includes:
and feeding back response information of the first data flash memory block to the storage instruction.
Preferably, the step of obtaining the update information of the data to be written by the host connected to the solid state disk by signals includes:
acquiring a write-in data source of the data to be written through the host;
judging the use frequency of the data to be written according to the source of the written data by the host;
and determining the updating information of the data to be written according to the using frequency.
Preferably, the step of determining a first data flash block capable of achieving wear leveling according to the hot and cold levels of the data to be written and the wear level of each data flash block includes:
determining a wear level of each of the data flash blocks according to the wear level of each of the data flash blocks;
when the data to be written belongs to a cold data hierarchy, determining the data flash memory block corresponding to the cold data hierarchy as the first data flash memory block;
when the data to be written belongs to a hot data hierarchy, determining the data flash memory block corresponding to the hot data hierarchy as the first data flash memory block.
Preferably, the step of issuing a storage instruction to the solid state disk according to the hot and cold hierarchy includes:
triggering a solid state disk driving program through a host, and issuing a storage instruction to the solid state disk.
Preferably, the step of feeding back response information of the first data flash block to the storage instruction includes:
after the solid state disk detects the storage instruction, acquiring data item state information of the first data flash memory block fed back by the solid state disk according to the storage instruction;
after the step of feeding back the response information of the first data flash block to the storage command, the method further includes:
judging whether the write-in operation is executed or not according to the data item state information;
adjusting the write operation when the write operation is not performed.
Preferably, the step of determining whether a write operation is performed according to the data item status information includes:
acquiring the state of the data item state information;
when the state is enabled, determining that the first data flash memory block has received the storage information, but the data to be written is not written yet;
when the status is in writing, determining that the first data flash memory block has received part of the data to be written, and the data to be written is not written in the whole first data flash memory block;
when the state is full, determining that the first data flash memory block is written with complete data to be written;
and when the state is offline, determining that the first data flash memory block is closed and the item of the data to be written is written.
Preferably, the step of adjusting the write operation when the write operation is not performed comprises:
when the state is off-line, determining a second data flash memory block which can reach wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block;
and executing a write operation according to the second data flash block so as to keep the wear balance of each data flash block of the solid state disk.
In addition, in order to achieve the above object, the present invention further provides a data storage system, which includes a solid state disk and a host, which are in signal connection with each other; the data storage system is applied to the method for setting the cold and hot data of the solid state disk.
In the technical scheme of the invention, the host computer in signal connection with the solid state disk acquires the update information of the data to be written; and determining the cold and hot levels of the data to be written according to the updating information through the host, and then sending a storage instruction to the solid state disk according to the cold and hot levels, wherein the storage instruction comprises the cold and hot levels of the data to be written. Therefore, the cold and hot levels of the data to be written are judged by the host without the solid state disk, so that the overhead of the solid state disk main control chip is reduced, the main control processing efficiency of the solid state disk is improved, and the performance of the solid state disk is improved. Furthermore, the actual situation that the data is updated by the host is combined, the judgment of the cold and hot levels of the data to be written can be more accurate, the solid state disk is prevented from judging the cold and hot levels by adopting an algorithm, the judgment error caused by the fact that the solid state disk judges the cold and hot levels by adopting the algorithm is large, and the reduction of the processing efficiency of the solid state disk caused by the fact that the solid state disk judges the cold and hot levels by adopting the.
Drawings
FIG. 1 is a block diagram of a data storage system according to the present invention;
FIG. 2 is a flowchart illustrating a method for setting hot and cold data of a solid state disk according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for setting hot and cold data of a solid state disk according to a second embodiment of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
Referring to fig. 1 and fig. 2, to achieve the above object, a first embodiment of the present invention provides a method for setting hot and cold data of a solid state disk, where the solid state disk includes a plurality of data flash memory blocks; the method for setting the cold and hot data of the solid state disk comprises the following steps:
step S10, acquiring the update information of the data to be written through a host connected with the solid state disk through signals; specifically, the update information includes an update frequency and/or an update time.
Step S20, determining the cold and hot levels of the data to be written according to the update information by the host;
step S30, sending a storage instruction to the solid state disk according to the hot and cold hierarchy, where the storage instruction includes the hot and cold hierarchy of the data to be written. The storage instruction further comprises starting position information of a logical block address of the solid state disk, length information of the logical block address, data cold and hot degree of the logical block address and control information of the logical block address, wherein the control information comprises enabling or closing of the logical block address data item.
In the technical scheme of the invention, the host computer in signal connection with the solid state disk acquires the update information of the data to be written; and determining the cold and hot levels of the data to be written according to the updating information through the host, and then sending a storage instruction to the solid state disk according to the cold and hot levels, wherein the storage instruction comprises the cold and hot levels of the data to be written. Therefore, the cold and hot levels of the data to be written are judged by the host without the solid state disk, so that the overhead of the solid state disk main control chip is reduced, the main control processing efficiency of the solid state disk is improved, and the performance of the solid state disk is improved. Furthermore, the actual situation that the data is updated by the host is combined, the judgment of the cold and hot levels of the data to be written can be more accurate, the solid state disk is prevented from judging the cold and hot levels by adopting an algorithm, the judgment error caused by the fact that the solid state disk judges the cold and hot levels by adopting the algorithm is large, and the reduction of the processing efficiency of the solid state disk caused by the fact that the solid state disk judges the cold and hot levels by adopting the.
On the NVMe solid state disk, whether the data written into the storage device by the host is hot or cold is judged, and the garbage recovery and the service life of the solid state disk are influenced. The hot/cold data hierarchy of the data to be written is most known as the host, and the determination of the hot/cold data hierarchy of the data to be written by the solid state disk in the related art is realized by an algorithm. The invention judges the data written into the storage device by the solid state disk host to be hot or cold data, and the host judges the data and drives the driving program to issue instructions to specify which data are hot/cold data. Therefore, the solid state disk can store data to a proper area more accurately.
By the technical scheme of the embodiment, hot data can be written in the flash memory blocks with relatively low erasing times as much as possible, and cold data can be written in the flash memory blocks with more erasing times as much as possible, so that the maintenance of wear balance is facilitated. The determination of hot/cold data is considered mainly in terms of frequency and time, and a combination of both.
Specifically, the method for acquiring the update information of the data to be written through the host connected with the solid state disk through the signal includes: the updating information of the data to be written is obtained through a bloom filter, the updating information of the data to be written is obtained through direct address counting based on a window, and at least one of the updating information of the data to be written is obtained through a page replacement algorithm.
Referring to fig. 3, based on the first embodiment of the method for setting cold and hot data of a solid state disk according to the present invention, the second embodiment of the method for setting cold and hot data of a solid state disk according to the present invention further includes, after the step S30:
step S40, obtaining the abrasion degree of each data flash memory block;
step S50, determining a first data flash block that can achieve wear leveling according to the hot and cold levels of the data to be written and the wear level of each data flash block.
In this embodiment, the wear degree of each flash memory block of the solid state disk is first obtained, and then the first data flash memory block into which data to be written is to be stored is determined by using a mechanism for realizing wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block.
In this embodiment, the steps S40 and S50 are preferably performed by the solid state disk, because the host can accurately obtain the temperature of the data to be written, and the wear degree of each data flash block in the solid state disk and the storage state of the solid state disk can be directly and accurately determined.
In the prior art, the cold and hot degree of data written in the solid state disk determines the erasing times of the data. The cold data updating frequency is low, the erasing times of the corresponding storage area are less, and the abrasion is low; on the contrary, the hot data updating frequency is high, the corresponding storage area has more erasing times and high abrasion. According to the method and the device, the first data flash memory block into which the data to be written is stored is determined according to the cold and hot degrees of the data to be written and the wear degree of each flash memory block, so that all flash memory blocks can share the data to be written according to the cold and hot degrees of the data to be written, the erase times are distributed evenly, data are not written into some flash memory blocks all the time, and data are not written into some flash memory blocks all the time, so that the flash memory blocks which write the data frequently are changed into bad blocks due to P/E exhaustion. Therefore, data are distributed to each flash memory block in a wear balance mode, the wear degree of each flash memory block is close to the wear degree of each flash memory block, and the high performance and the service life of the solid state disk are guaranteed.
Based on the second embodiment of the method for setting cold and hot data of a solid state disk of the present invention, in a third embodiment of the method for setting cold and hot data of a solid state disk of the present invention, after the step S50, the method further includes:
step S60, feeding back response information of the first data flash block to the storage command.
Since there may be more than one data to be written, data may be continuously written to the solid state disk for a certain period of time, and the first data flash block matching according to the cold and hot degree of the current data to be written may have multiple states, for example: and data can be written, data is being written or data can not be written, so that the response information of the first data flash memory block to the storage instruction is fed back, whether the data to be written is successfully stored or not is favorably determined, and the storage error of the data to be written is avoided.
Based on the first to third embodiments of the method for setting cold and hot data of a solid state disk of the present invention, in a fourth embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S10 includes:
step S11, acquiring a write-in data source of the data to be written through the host;
step S12, judging the use frequency of the data to be written by the host according to the source of the written data;
step S13, determining the update information of the data to be written according to the usage frequency.
In the technical scheme of the invention, the host can obtain the write-in data source of the data to be written. For example, the host is provided with a plurality of software, the use frequency of some software is high, and data can be written into the hard disk in the use process of the software, so that the host can consider that the data generated by the software is frequently updated at a high probability and can be used as a judgment basis for cold and hot data, and compared with a solid state disk, the CPU and the memory of the host can achieve higher processing efficiency.
On the other hand, the host takes over the judgment work of the solid state disk, the processing load of the main control chip is reduced, and the performance of the solid state disk is improved in a phase-changing manner.
The source of data to be written may be the source software. And determining the cold and hot degree of the data to be written according to the starting frequency of the source software.
For example, the software a is installed on the host, and the host may detect the number of times of activation, determine whether the activation is frequent according to the number of times of activation, and determine the cold and hot degree of the data to be written, in which the data source is the software a, according to whether the activation is frequent.
The source of the data to be written can also be a source position, and the cold and hot degree of the data to be written is determined according to the data updating frequency of the source position.
For example, a user frequently stores files on a desktop, and when it is detected that data to be written originates from the desktop, it is determined that the data belongs to hot data.
Based on the second embodiment or the third embodiment of the method for setting cold and hot data of a solid state disk of the present invention, in a fifth embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S50 includes:
step S51, determining a wear level of each of the data flash blocks according to the wear level of each of the data flash blocks;
step S52, when the data to be written belongs to a cold data hierarchy, determining the data flash block corresponding to the cold data hierarchy as the first data flash block, specifically, determining the data flash block with a relatively high wear level as the first data flash block;
step S53, when the data to be written belongs to a hot data hierarchy, determining the data flash block corresponding to the hot data hierarchy as the first data flash block, specifically, determining the data flash block with a relatively low wear level as the first data flash block.
Specifically, the cold and hot levels to which data is to be written include a cold level and a hot level, the cold level is divided into a plurality of levels according to the update condition, and the hot level is divided into a plurality of levels according to the update condition.
There may be more than one wear level. In this embodiment, the wear level may be determined according to the number of times each data flash block is erased.
Based on the first to fifth embodiments of the method for setting cold and hot data of a solid state disk of the present invention, in a sixth embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S30 includes:
and step S31, triggering the solid state disk driving program through the host, and issuing a storage instruction to the solid state disk.
The host computer can issue a storage instruction through a driver of the NVMe solid state disk, where the storage instruction can specify a data form of a Logical Block Address (LBA) segment of the solid state disk, where the data form is a Logical Block Address data item, and the storage instruction content includes:
(1) start LBA address (LBA start position);
(2) LBA Length (Length of LBA);
(3) LBA Data Type (LBA Data modality);
(4) Enable/Disable LBA Area (Enable or Disable LBA data item)
The LBA data type represents the hot and cold levels of the LBA data, and represents the extent of hot data to cold data in the LBA run.
The host sets the instruction contents of the items (1) to (4) in the logic block address section in the form of a storage instruction by taking the logic block address as a unit through an NVME solid state disk drive mode, and enables the logic block address section to be a logic block address data item.
Based on the third embodiment of the method for setting cold and hot data of a solid state disk of the present invention, in a seventh embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S60 includes:
step S61, when the solid state disk detects the storage instruction, acquiring data item status information of the first data flash memory block, which is fed back by the solid state disk according to the storage instruction;
step S62, after the step of feeding back the response information of the first data flash block to the storage command, the method further includes:
step S63, according to the data item status information, judging whether the write operation is executed;
step S64, when the write operation is not executed, adjusting the write operation.
Specifically, a data item state memory buffer area is preset on the host, the state of the logical block address data item is set to be enabled, and the logical block address data item is placed on the host memory buffer area supported by the NVME solid state disk, so that the NVME solid state disk drive is monitored and fed back to the host.
Based on the seventh embodiment of the method for setting cold and hot data of a solid state disk of the present invention, in the eighth embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S63 includes:
step S631, acquiring the status of the data item status information;
step S632, when the status is enabled, determining that the first data flash block has received the storage information, but the data to be written has not been written;
step S633, when the status is in writing, determining that the first data flash block has received a part of the data to be written, and the data to be written has not yet fully written the entire first data flash block;
step S634, when the status is full, determining that the first data flash block has written the complete data to be written;
step S635, when the status is offline, determining that the first data flash block has closed the item in which the data to be written is written.
Specifically, the first three states represent that the first data flash block has been completed or is being processed for the storage instruction; the fourth state indicates that the first data flash block cannot execute the storage command.
Based on the seventh embodiment of the method for setting cold and hot data of a solid state disk of the present invention, in the ninth embodiment of the method for setting cold and hot data of a solid state disk of the present invention, the step S64 includes:
step S641, when the state is off-line, determining a second data flash memory block which can reach wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block;
step S642, performing a write operation according to the second data flash block, so that the solid state disk keeps wear balance of each data flash block.
Since the fourth state indicates that the first data flash block cannot execute the storage instruction, in order to ensure normal storage of the data to be written and achieve the effect of wear balance, at this time, the solid state disk determines the second data flash block capable of achieving wear balance again according to the cold and hot levels of the data to be written and the wear degree of each data flash block. It will be readily appreciated that the first data flash block exceeds or is equal to the second data flash block in the effectiveness of maintaining wear leveling, and therefore has a higher priority for data storage than the second data flash block after determining the degree of warmth to which the data is to be written.
Further, after step S642, the method further includes:
feeding back response information of the second data flash block to the storage instruction;
if the response information of the second data flash memory block to the storage instruction is that the data to be written is being written or is completely written, ending the storage of the data to be written;
if the response information of the second data flash memory block to the storage instruction is that the data to be written cannot be written, acquiring the response information of the first data flash memory block to the storage instruction again;
if the response information fed back again by the first data flash memory block is that the data to be written is being written or is completely written, finishing the storage of the data to be written;
if the response information fed back again by the first data flash memory block indicates that the data to be written cannot be written, determining a third data flash memory block which can achieve wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block;
and executing a write operation according to the second data flash block so as to keep the wear balance of each data flash block of the solid state disk.
It is easy to understand that after the cold and hot degrees of the data to be written are determined, the data storage priorities of the first data flash memory block, the second data flash memory block and the third data flash memory block are sequentially reduced. And when the response information of the second data flash memory block to the storage instruction is that the data to be written cannot be written, feeding back the response information of the first data flash memory block to the storage instruction again, so that the data to be written can be written into the storage block which achieves the optimal wear balance effect.
In addition, in order to achieve the above object, the present invention further provides a data storage system, which includes a solid state disk and a host, which are in signal connection with each other; the data storage system is applied to the method for setting the cold and hot data of the solid state disk.
Since the technical solution of the data storage system of this embodiment at least includes all the technical solutions of the above embodiment of the method for setting hot and cold data of a solid state disk, at least all the technical effects of the above embodiments are achieved, and details are not repeated here.
In the description herein, references to the description of the term "one embodiment," "another embodiment," or "first through xth embodiments," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, method steps, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for setting cold and hot data of a solid state disk is characterized in that the solid state disk comprises a plurality of data flash memory blocks; the method for setting the cold and hot data of the solid state disk comprises the following steps:
acquiring update information of data to be written through a host connected with the solid state disk through signals;
determining, by the host, a hot and cold level of the data to be written according to the update information;
and sending a storage instruction to the solid state disk according to the cold and hot levels, wherein the storage instruction comprises the cold and hot levels of the data to be written.
2. The method according to claim 1, wherein after the step of issuing a storage instruction to the solid state disk according to the hot and cold hierarchy, the storage instruction including the hot and cold hierarchy of the data to be written, the method further comprises:
acquiring the wear degree of each data flash memory block;
and determining a first data flash memory block which can achieve wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block.
3. The method according to claim 2, wherein after the step of determining the first data flash block capable of achieving wear leveling according to the hot and cold levels of the data to be written and the wear level of each data flash block, the method further comprises:
and feeding back response information of the first data flash memory block to the storage instruction.
4. The method for setting cold and hot data of the solid state disk according to claim 1, wherein the step of obtaining the update information of the data to be written by a host computer in signal connection with the solid state disk comprises:
acquiring a write-in data source of the data to be written through the host;
judging the use frequency of the data to be written according to the source of the written data by the host;
and determining the updating information of the data to be written according to the using frequency.
5. The method according to claim 2, wherein the step of determining the first data flash block capable of achieving wear leveling according to the hot and cold levels of the data to be written and the wear level of each data flash block comprises:
determining a wear level of each of the data flash blocks according to the wear level of each of the data flash blocks;
when the data to be written belongs to a cold data hierarchy, determining the data flash memory block corresponding to the cold data hierarchy as the first data flash memory block;
when the data to be written belongs to a hot data hierarchy, determining the data flash memory block corresponding to the hot data hierarchy as the first data flash memory block.
6. The method according to claim 1, wherein the step of issuing a storage instruction to the solid state disk according to the hot and cold hierarchy level comprises:
triggering a solid state disk driving program through a host, and issuing a storage instruction to the solid state disk.
7. The method according to claim 3, wherein the step of feeding back the response information of the first data flash block to the storage command comprises:
after the solid state disk detects the storage instruction, acquiring data item state information of the first data flash memory block fed back by the solid state disk according to the storage instruction;
after the step of feeding back the response information of the first data flash block to the storage command, the method further includes:
judging whether the write-in operation is executed or not according to the data item state information;
adjusting the write operation when the write operation is not performed.
8. The method of claim 7, wherein the step of determining whether a write operation is performed according to the status information of the data item comprises:
acquiring the state of the data item state information;
when the state is enabled, determining that the first data flash memory block has received the storage information, but the data to be written is not written yet;
when the status is in writing, determining that the first data flash memory block has received part of the data to be written, and the data to be written is not written in the whole first data flash memory block;
when the state is full, determining that the first data flash memory block is written with complete data to be written;
and when the state is offline, determining that the first data flash memory block is closed and the item of the data to be written is written.
9. The method of claim 7, wherein the step of adjusting the write operation when the write operation is not performed comprises:
when the state is off-line, determining a second data flash memory block which can reach wear balance according to the cold and hot levels of the data to be written and the wear degree of each data flash memory block;
and executing a write operation according to the second data flash block so as to keep the wear balance of each data flash block of the solid state disk.
10. A data storage system is characterized by comprising a solid state disk and a host which are in signal connection with each other; the data storage system is applied to the method for setting the cold and hot data of the solid state disk as claimed in any one of claims 1 to 9.
CN202011033898.4A 2020-09-27 2020-09-27 Method for setting cold and hot data of solid state disk and data storage system Active CN112214168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011033898.4A CN112214168B (en) 2020-09-27 2020-09-27 Method for setting cold and hot data of solid state disk and data storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011033898.4A CN112214168B (en) 2020-09-27 2020-09-27 Method for setting cold and hot data of solid state disk and data storage system

Publications (2)

Publication Number Publication Date
CN112214168A true CN112214168A (en) 2021-01-12
CN112214168B CN112214168B (en) 2022-10-11

Family

ID=74051995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011033898.4A Active CN112214168B (en) 2020-09-27 2020-09-27 Method for setting cold and hot data of solid state disk and data storage system

Country Status (1)

Country Link
CN (1) CN112214168B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968650A (en) * 2022-06-22 2022-08-30 北京得瑞领新科技有限公司 Data inspection method and device, medium and SSD device
WO2022262623A1 (en) * 2021-06-16 2022-12-22 华为技术有限公司 Data exchange method and apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799534A (en) * 2012-07-18 2012-11-28 上海宝存信息科技有限公司 Storage system and method based on solid state medium and cold-hot data identification method
CN103250143A (en) * 2012-12-28 2013-08-14 华为技术有限公司 Data storage method and storage device
CN106155579A (en) * 2015-04-27 2016-11-23 广明光电股份有限公司 The method of solid state hard disc dynamic storing conversion layer data
CN107577428A (en) * 2017-08-31 2018-01-12 郑州云海信息技术有限公司 A kind of date storage method and device
CN107908358A (en) * 2017-10-25 2018-04-13 记忆科技(深圳)有限公司 A kind of method of reduction NVMe solid state disk writes amplification
CN109524046A (en) * 2018-09-05 2019-03-26 广东工业大学 A kind of flash memory abrasion equalization algorithm of low memory consumption
CN109799958A (en) * 2019-01-17 2019-05-24 湖南大学 Solid state hard disk and its data processing method
US20200159419A1 (en) * 2018-11-19 2020-05-21 Alibaba Group Holding Limited System and method for optimization of global data placement to mitigate wear-out of write cache and nand flash
CN111708481A (en) * 2020-04-24 2020-09-25 浙江大学 Solid State Disk (SSD) double-area wear leveling method based on super block

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799534A (en) * 2012-07-18 2012-11-28 上海宝存信息科技有限公司 Storage system and method based on solid state medium and cold-hot data identification method
CN103250143A (en) * 2012-12-28 2013-08-14 华为技术有限公司 Data storage method and storage device
CN106155579A (en) * 2015-04-27 2016-11-23 广明光电股份有限公司 The method of solid state hard disc dynamic storing conversion layer data
CN107577428A (en) * 2017-08-31 2018-01-12 郑州云海信息技术有限公司 A kind of date storage method and device
CN107908358A (en) * 2017-10-25 2018-04-13 记忆科技(深圳)有限公司 A kind of method of reduction NVMe solid state disk writes amplification
CN109524046A (en) * 2018-09-05 2019-03-26 广东工业大学 A kind of flash memory abrasion equalization algorithm of low memory consumption
US20200159419A1 (en) * 2018-11-19 2020-05-21 Alibaba Group Holding Limited System and method for optimization of global data placement to mitigate wear-out of write cache and nand flash
CN109799958A (en) * 2019-01-17 2019-05-24 湖南大学 Solid state hard disk and its data processing method
CN111708481A (en) * 2020-04-24 2020-09-25 浙江大学 Solid State Disk (SSD) double-area wear leveling method based on super block

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022262623A1 (en) * 2021-06-16 2022-12-22 华为技术有限公司 Data exchange method and apparatus
CN114968650A (en) * 2022-06-22 2022-08-30 北京得瑞领新科技有限公司 Data inspection method and device, medium and SSD device
CN114968650B (en) * 2022-06-22 2023-02-10 北京得瑞领新科技有限公司 Data inspection method and device, medium and SSD device

Also Published As

Publication number Publication date
CN112214168B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US20200167083A1 (en) Techniques for controlling recycling of blocks of memory
US8819358B2 (en) Data storage device, memory system, and computing system using nonvolatile memory device
US9830098B1 (en) Method of wear leveling for data storage device
US8200904B2 (en) System and method for clearing data from a cache
US9329797B2 (en) Method and system for adjusting block erase or program parameters based on a predicted erase life
KR101498673B1 (en) Solid state drive, data storing method thereof, and computing system including the same
US8504762B2 (en) Flash memory storage device with data interface
US7849275B2 (en) System, method and a computer program product for writing data to different storage devices based on write frequency
US8347024B2 (en) Memory system monitoring data erasing time or writing time
CN112214168B (en) Method for setting cold and hot data of solid state disk and data storage system
US11436140B2 (en) Memory control system for setting garbage collection frequency higher in dirty mode
KR20090082365A (en) End of life recovery and resizing of memory cards
JP2014106918A (en) Information processing apparatus, and control method and program thereof
US20220413758A1 (en) Efficient Handling of Background Operations for Improving Sustained Performance of Host Reads and Writes
US11256432B2 (en) Memory controller and memory system
US20220413757A1 (en) Write Performance by Relocation During Sequential Reads
US20210304827A1 (en) Memory system and method capable of performing wear leveling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant