[go: up one dir, main page]

CN111459409B - An optimized flash solid state disk heating method and flash solid state disk - Google Patents

An optimized flash solid state disk heating method and flash solid state disk Download PDF

Info

Publication number
CN111459409B
CN111459409B CN202010205061.7A CN202010205061A CN111459409B CN 111459409 B CN111459409 B CN 111459409B CN 202010205061 A CN202010205061 A CN 202010205061A CN 111459409 B CN111459409 B CN 111459409B
Authority
CN
China
Prior art keywords
flash memory
memory block
state disk
flash
residence time
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.)
Active
Application number
CN202010205061.7A
Other languages
Chinese (zh)
Other versions
CN111459409A (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202010205061.7A priority Critical patent/CN111459409B/en
Publication of CN111459409A publication Critical patent/CN111459409A/en
Application granted granted Critical
Publication of CN111459409B publication Critical patent/CN111459409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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)
  • Read Only Memory (AREA)

Abstract

The invention discloses an optimized flash memory solid-state disk heating method and a flash memory solid-state disk, and belongs to the field of flash memory storage equipment. The method comprises the following steps: recording the average residence time DT of the end of the service life of each flash memory block in the flash memory solid-state diskavgCalculating the actual reliability RBER of the flash memory block according to the average residence time of the flash memory block; comparing the RBER and CBER sizes of the flash blocks, according to DTavgAdding the values into proper positions in the corresponding list in sequence; when the flash memory solid-state disk reaches the end of the service life, only the flash memory blocks in the flash memory block list with short residence time are heated, and the flash memory blocks in the flash memory block list with long residence time are not heated. According to the invention, by considering the influence of the average residence time of the flash memory block on the reliability recovery of the flash memory, a part of unnecessary high-delay and high-energy-consumption heating operation can be reduced under the condition of not influencing the reliability of the solid state disk, and the heating efficiency of the solid state disk is improved.

Description

一种优化的闪存固态盘加热方法及闪存固态盘An optimized flash solid state disk heating method and flash solid state disk

技术领域technical field

本发明属于闪存存储设备领域,更具体地,涉及一种优化的闪存固态盘加热方法及闪存固态盘。The invention belongs to the field of flash memory storage devices, and more particularly, relates to an optimized flash memory solid state disk heating method and a flash memory solid state disk.

背景技术Background technique

闪存固态盘是一种采用闪存作为存储介质的非易失性存储设备,被广泛用于计算机存储系统中。与机械硬盘相比,闪存固态盘具有许多不同的固有特性。例如,读写速度不对称、数据异地更新、闪存芯片具有固定的擦写次数(P/E)等。当闪存固态盘中的闪存芯片的擦写次数到达厂商给定的预设阈值时,闪存固态盘将不能保证存储的数据信息的有效性,因此到达了闪存固态盘的寿命。Flash solid-state disk is a non-volatile storage device that uses flash memory as a storage medium, and is widely used in computer storage systems. Flash SSDs have many different inherent characteristics compared to mechanical hard drives. For example, the read and write speed is asymmetric, the data is updated in different places, and the flash memory chip has a fixed number of erasing and writing (P/E). When the number of times of erasing and writing of the flash memory chips in the flash solid state disk reaches the preset threshold given by the manufacturer, the flash solid state disk cannot guarantee the validity of the stored data information, so the life of the flash solid state disk is reached.

为延长闪存固态盘的寿命,在闪存固态盘中可以增加内置加热装置来实现自加热恢复技术。通过内置加热板的闪存芯片结构,这种闪存固态盘可以通过加热的方法能够一定程度上恢复其中闪存芯片的存储能力,延长闪存固态盘的寿命。在厂商预设的P/E阈值时,闪存固态盘到达使用寿命,这时对失效的闪存块进行加热操作,可以增加额外数量的擦写次数。In order to prolong the life of the flash solid state disk, a built-in heating device can be added to the flash solid state disk to realize the self-heating recovery technology. Through the flash memory chip structure with a built-in heating plate, the flash solid state disk can restore the storage capacity of the flash memory chip to a certain extent by heating, and prolong the life of the flash solid state disk. At the P/E threshold preset by the manufacturer, the flash solid state disk reaches the service life, and at this time, heating the failed flash memory block can increase an additional number of erasing and writing times.

由于加热操作比较耗时,例如接近一秒钟,每次执行加热时将负面影响正常执行的I/O读写操作,对闪存固态盘的性能造成波动。此外,在这些芯片结构中执行加热操作需要一段持续的电耗和能耗。其中尤其是某个时间段内执行大量的加热操作时,将引起极大的性能波动和增大能耗,从而不能实现稳定的闪存固态盘。Since the heating operation is time-consuming, for example, nearly one second, each time the heating is performed, the normal I/O read and write operations will be negatively affected, and the performance of the flash solid state disk will fluctuate. Furthermore, performing heating operations in these chip structures requires a sustained period of electrical and power consumption. Especially when a large number of heating operations are performed in a certain period of time, it will cause great performance fluctuations and increase energy consumption, so that a stable flash solid state disk cannot be realized.

发明内容SUMMARY OF THE INVENTION

针对现有技术加热方法的高延迟、高能耗的问题,本发明提供了一种优化的闪存固态盘加热方法及闪存固态盘,其目的在于降低不必要的加热操作,提升了固态硬盘加热的效率。In view of the problems of high delay and high energy consumption of the prior art heating method, the present invention provides an optimized flash memory solid state disk heating method and flash memory solid state disk, the purpose of which is to reduce unnecessary heating operations and improve the heating efficiency of solid state disks .

为实现上述目的,按照本发明的第一方面,提供了一种优化的闪存固态盘加热方法,该方法包括以下步骤:In order to achieve the above object, according to the first aspect of the present invention, an optimized flash memory solid state disk heating method is provided, and the method includes the following steps:

S1.记录闪存固态盘中各闪存块寿命末期的平均驻留时间DTavg,并根据闪存块的平均驻留时间,计算闪存块的实际可靠性RBER;S1. Record the average residence time DT avg at the end of the life of each flash block in the flash solid state disk, and calculate the actual reliability RBER of the flash block according to the average residence time of the flash block;

S2.比较各闪存块的实际可靠性RBER和闪存固态盘内置纠错码的可修正比特误码率CBER的大小,当RBER<CBER时,将该闪存块加入长驻留时间的闪存块列表LDT;否则,加入短驻留时间的闪存块列表SDT;在加入列表时,按照DTavg值的大小顺序地加入对应列表中的合适位置;S2. Compare the actual reliability RBER of each flash memory block and the correctable bit error rate CBER of the built-in error correction code of the flash solid state disk. When RBER<CBER, add the flash memory block to the long residence time flash block list LDT ; Otherwise, add the flash block list SDT with short residence time; when adding to the list, add the appropriate position in the corresponding list in order according to the size of the DT avg value;

S3.当闪存固态盘到达使用寿命终点时,只对短驻留时间的闪存块列表中的闪存块进行加热操作,对长驻留时间的闪存块列表中的闪存块不进行加热操作。S3. When the flash solid state disk reaches the end of its service life, the heating operation is only performed on the flash memory blocks in the flash memory block list with short residence time, and the heating operation is not performed on the flash memory blocks in the flash memory block list with long residence time.

优选地,步骤S1包括以下子步骤:Preferably, step S1 includes the following sub-steps:

S11.跟踪健康闪存块列表中的闪存块的当前擦写次数PEcurrent,获取闪存块的擦写次数上限PElimit,其中,PElimit初始化为厂商设定的擦写次数上限PEinit,当某一个闪存块的PEcurrent=PElimit-PE*时,PE*是能够影响到闪存块的可靠性恢复的擦写次数,进入步骤S12;S11. Track the current erasing times PE current of the flash memory blocks in the healthy flash memory block list, and obtain the upper limit PE limit of the erasing and writing times of the flash memory block, wherein PE limit is initialized to the upper limit of erasing and writing times PE init set by the manufacturer. When the PE current of the flash block is equal to PE limit -PE * , PE * is the number of times of erasing and writing that can affect the reliability recovery of the flash block, and the process goes to step S12;

S12.记录该闪存块在PElimit-PE*和PElimit-PE*+1的两次擦写次数之间的驻留时间

Figure BDA0002420709370000021
S12. Record the residence time of the flash memory block between two erasing times of PE limit -PE * and PE limit -PE * +1
Figure BDA0002420709370000021

S13.在该闪存块的擦写次数到达PElimit前,循环记录连续的两次擦写次数之间的驻留时间

Figure BDA0002420709370000022
当该闪存块的PEcurrent=PElimit时,进入步骤S14;S13. Before the number of times of erasing and writing of the flash memory block reaches the PE limit , circularly record the dwell time between two consecutive times of erasing and writing.
Figure BDA0002420709370000022
When PE current =PE limit of the flash memory block, go to step S14;

S14.根据闪存块已记录的多个驻留时间,计算该闪存块的平均驻留时间DTavgS14. Calculate the average residence time DTavg of the flash memory block according to the multiple recorded residence times of the flash memory block;

S15.根据闪存块的平均驻留时间DTavg,计算闪存块的实际可靠性RBER。S15. Calculate the actual reliability RBER of the flash memory block according to the average residence time DT avg of the flash memory block.

优选地,闪存块的实际可靠性RBER的计算公式为:Preferably, the calculation formula of the actual reliability RBER of the flash memory block is:

RBER=RBERinit+a*(PEcurrent+b)*ln(1+RTmax/(c+d*DTavg))RBER=RBER init +a*(PE current +b)*ln(1+RT max /(c+d*DT avg ))

其中,RBERinit是数据编程完成时的原始比特误码率,PEcurrent是当前擦写次数,RTmax是厂商要求的数据编程后需要维持的时间,DTavg是闪存块的平均驻留时间,a,b,c,d是四个公式相关系数。Among them, RBER init is the original bit error rate when data programming is completed, PE current is the current number of erasing and writing, RT max is the time required by the manufacturer to maintain data after programming, DT avg is the average residence time of the flash block, a , b, c, d are the four formula correlation coefficients.

优选地,PE*为20。Preferably, PE * is 20.

优选地,步骤S3包括以下子步骤:Preferably, step S3 includes the following sub-steps:

S31.当闪存固态盘到达使用寿命终点时,进入步骤S32;S31. When the flash solid state disk reaches the end of its service life, go to step S32;

S32.判断SDT中是否存在闪存块,若是,从短驻留时间的闪存块列表中选择具有最短驻留时间的闪存块,进入步骤S33,否则,结束;S32. determine whether there is a flash memory block in the SDT, if so, select the flash memory block with the shortest residence time from the flash memory block list of the short residence time, enter step S33, otherwise, end;

S33.对该闪存块执行一次加热操作,然后将该闪存块从SDT中删除并且放入健康闪存块列表中,进入步骤S32。S33. Perform a heating operation on the flash memory block, then delete the flash memory block from the SDT and put it into the healthy flash memory block list, and go to step S32.

为实现上述目的,按照本发明的第二方面,提供了一种闪存固态盘,该闪存固态盘包括控制模块,该控制模块采用如第一方面所述的优化的闪存固态盘加热方法,加热失效的闪存块。In order to achieve the above object, according to the second aspect of the present invention, a flash solid state disk is provided, the flash solid state disk includes a control module, the control module adopts the optimized flash memory solid state disk heating method as described in the first aspect, and the heating fails. flash block.

优选地,所述闪存固态盘的数据分配包括以下步骤:Preferably, the data allocation of the flash solid state disk includes the following steps:

(1)如果闪存固态盘中存在健康的闪存块,选择一个具有最少加热次数的闪存块作为活跃闪存块,将新到达的数据放入活跃闪存块存储;否则,进入步骤(2);(1) If there is a healthy flash memory block in the flash solid state disk, select a flash memory block with the least number of heating times as the active flash memory block, and put the newly arrived data into the active flash memory block for storage; otherwise, go to step (2);

(2)如果闪存固态盘中存在长驻留时间的闪存块列表LDT,优先从该列表上选择具有最长驻留时间的闪存块作为活跃闪存块,这时,该闪存块的擦写循环次数上限PElimit将增加PE(DTavg),其中,PE(DTavg)表示在驻留时间为DTavg情况下增加的擦写循环次数,将新到达的数据放入活跃闪存块存储;否则,进入步骤(3);(2) If there is a flash block list LDT with a long residence time in the flash solid state disk, the flash block with the longest residence time is preferentially selected from the list as the active flash block. At this time, the number of erase and write cycles of the flash block is The upper limit PE limit will increase PE(DT avg ), where PE(DT avg ) represents the increased number of erase/write cycles when the residence time is DT avg , and the newly arrived data will be stored in the active flash memory block; otherwise, enter step (3);

(3)如果闪存固态盘中存在短驻留时间的闪存块列表SDT,优先从该列表上选择具有最短驻留时间的闪存块作为活跃闪存块,当该闪存块的RBER≥CBER时,需要先执行一次加热操作,将新到达的数据放入活跃闪存块存储。(3) If there is a flash block list SDT with a short residence time in the flash solid state disk, the flash block with the shortest residence time is preferentially selected from the list as the active flash block. When the RBER of the flash block is greater than or equal to CBER, the first Perform a warm operation to place newly arrived data into active flash block storage.

总体而言,通过本发明所构思的以上技术方案,能够取得以下有益效果:In general, through the above technical solutions conceived by the present invention, the following beneficial effects can be achieved:

(1)针对传统加热方法在闪存固态盘失效时会在短时间内进行大量的闪存块加热操作,过多加热操作导致加热耗时久,并且能耗高的问题,本发明通过在闪存固态盘到达使用寿命终点时,优先对短驻留时间的闪存块列表中的闪存块进行加热操作,对长驻留时间的闪存块列表中的闪存块不进行加热操作,考虑闪存块的平均驻留时间对闪存可靠性恢复的影响,能够在不影响固态硬盘的可靠性的情况下,减少了一部分不必要的高延迟、高能耗的加热操作,提升了固态硬盘加热的效率。(1) In view of the traditional heating method, when the flash solid state disk fails, a large number of flash memory block heating operations are performed in a short time, and excessive heating operations lead to long heating time and high energy consumption. When the end of the service life is reached, the flash block in the flash block list with short residence time will be preferentially heated, and the flash block in the flash block list with long residence time will not be heated, and the average residence time of the flash block will be considered. The impact on the reliability recovery of the flash memory can reduce some unnecessary high-latency and high-energy-consuming heating operations without affecting the reliability of the solid-state drive, and improve the heating efficiency of the solid-state drive.

(2)针对传统数据分配策略没有考虑那些不需要执行加热操作的闪存块问题,本发明通过增强数据分配时的分配闪存块的优先级,解决了优化的闪存固态盘加热方法后的数据分配问题。(2) In view of the fact that the traditional data allocation strategy does not consider the problem of flash memory blocks that do not need to perform heating operations, the present invention solves the problem of data allocation after the optimized flash solid state disk heating method by enhancing the priority of allocating flash memory blocks during data allocation .

附图说明Description of drawings

图1是本发明实施例提供的一种优化的闪存固态盘加热方法流程图;FIG. 1 is a flowchart of an optimized flash solid state disk heating method provided by an embodiment of the present invention;

图2是本发明实施例提供的改进的数据分配示意图。FIG. 2 is a schematic diagram of an improved data allocation provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as there is no conflict with each other.

首先,对本发明涉及的术语进行如下解释:First, the terms involved in the present invention are explained as follows:

闪存块的驻留时间:闪存块在连续的两次擦写次数之间的时间。Flash block residence time: The time between two consecutive erase and write cycles of a flash block.

如图1所示,本发明提供了一种优化的闪存固态盘加热方法,该方法包括以下步骤:As shown in FIG. 1 , the present invention provides an optimized flash solid state disk heating method, which includes the following steps:

步骤S1.记录闪存固态盘中各闪存块寿命末期的平均驻留时间DTavg,并根据闪存块的平均驻留时间,计算闪存块的实际可靠性RBER。Step S1. Record the average residence time DT avg at the end of life of each flash block in the flash solid state disk, and calculate the actual reliability RBER of the flash block according to the average residence time of the flash block.

步骤S1包括以下子步骤:Step S1 includes the following sub-steps:

S11.跟踪健康闪存块列表中的闪存块的当前擦写次数PEcurrent,获取闪存块的擦写次数上限PElimit,其中,PElimit初始化为厂商设定的擦写次数上限PEinit,当某一个闪存块的PEcurrent=PElimit-PE*时,PE*表示能够影响到闪存块的可靠性恢复的擦写次数,进入步骤S12。S11. Track the current erasing times PE current of the flash memory blocks in the healthy flash memory block list, and obtain the upper limit PE limit of the erasing and writing times of the flash memory block, wherein PE limit is initialized to the upper limit of erasing and writing times PE init set by the manufacturer. When the PE current of the flash memory block is equal to PE limit -PE * , PE * represents the number of times of erasing and writing that can affect the reliability recovery of the flash memory block, and the process proceeds to step S12.

健康闪存块列表中的闪存块初始化为闪存固态盘中所有闪存块,随着处理的进行,一部分闪存块加入长驻留时间的闪存块列表LDT或者短驻留时间的闪存块列表SDT。The flash blocks in the healthy flash block list are initialized to all flash blocks in the flash solid state disk. As processing progresses, some flash blocks are added to the long-duration flash block list LDT or the short-duration flash block list SDT.

PE*取值范围为1至PEinit,本实施例优选为20。The value of PE* ranges from 1 to PE init , and is preferably 20 in this embodiment.

S12.记录该闪存块在PElimit-PE*和PElimit-PE*+1的两次擦写次数之间的驻留时间

Figure BDA0002420709370000051
S12. Record the residence time of the flash memory block between two erasing times of PE limit -PE * and PE limit -PE * +1
Figure BDA0002420709370000051

当闪存块的PEcurrent=PElimit-20时,记录闪存固态盘的控制器分配该闪存块作为活跃块存储新到达数据的开始时间T1。当该闪存块的PEcurrent=PElimit-19时,记录闪存固态盘的控制器分配该闪存块作为活跃块存储新到达数据的开始时间T2。根据以上两个时间,计算驻留时间DT20=T2-T1When the PE current of the flash block is equal to PE limit -20, the controller of the flash solid state disk records the start time T 1 at which the flash block is allocated as an active block to store newly arrived data. When the PE current of the flash block is equal to PE limit -19, the controller of the flash solid state disk records the start time T 2 at which the flash block is allocated as an active block to store newly arrived data. Based on the above two times, the dwell time DT 20 =T 2 -T 1 is calculated.

S13.在该闪存块的擦写次数到达PElimit前,循环记录连续的两次擦写次数之间的驻留时间

Figure BDA0002420709370000052
当该闪存块的PEcurrent=PElimit时,进入步骤S14。S13. Before the number of times of erasing and writing of the flash memory block reaches the PE limit , circularly record the dwell time between two consecutive times of erasing and writing.
Figure BDA0002420709370000052
When the PE current of the flash block is equal to PE limit , the process proceeds to step S14.

分别计算PElimit-19和PElimit-18、PElimit-18和PElimit-17......PElimit-1和PElimit之间的驻留时间DT19、DT18......DT1Calculate the dwell time between PE limit -19 and PE limit -18, PE limit -18 and PE limit -17...PE limit -1 and PE limit respectively .DT 1 .

S14.根据闪存块已记录的多个驻留时间,计算该闪存块的平均驻留时间DTavgS14. Calculate the average residence time DTavg of the flash memory block according to the multiple recorded residence times of the flash memory block.

Figure BDA0002420709370000061
Figure BDA0002420709370000061

S15.根据闪存块的平均驻留时间DTavg,计算闪存块的实际可靠性RBER。S15. Calculate the actual reliability RBER of the flash memory block according to the average residence time DT avg of the flash memory block.

闪存块的实际可靠性RBER的计算公式为:The formula for calculating the actual reliability RBER of a flash block is:

RBER=RBERinit+a*(PEcurrent+b)*ln(1+RTmax/(c+d*DTavg))RBER=RBER init +a*(PE current +b)*ln(1+RT max /(c+d*DT avg ))

其中,RBERinit是数据编程完成时的原始比特误码率,PEcurrent是当前擦写次数,RTmax表示厂商要求的数据编程后需要维持的时间,DTavg是闪存块的平均驻留时间,a,b,c,d是四个公式相关系数。Among them, RBER init is the original bit error rate when data programming is completed, PE current is the current number of erasing and writing, RT max is the time required by the manufacturer to maintain the data after programming, DT avg is the average residence time of the flash block, a , b, c, d are the four formula correlation coefficients.

步骤S2.比较各闪存块的实际可靠性RBER和闪存固态盘内置纠错码的可修正比特误码率CBER的大小,当RBER<CBER时,将该闪存块加入长驻留时间的闪存块列表LDT;否则,加入短驻留时间的闪存块列表SDT;在加入对应的列表时,按照DTavg值的大小顺序地加入对应列表中的合适位置。Step S2. Compare the actual reliability RBER of each flash memory block with the size of the correctable bit error rate CBER of the built-in error correction code of the flash solid state disk. When RBER<CBER, add the flash memory block to the list of flash memory blocks with a long residence time LDT; otherwise, add the flash memory block list SDT with short residence time; when adding the corresponding list, add it to the appropriate position in the corresponding list in order according to the size of the DT avg value.

越长的驻留时间,闪存的可靠性恢复得越多,因此,本发明重点对短驻留时间的闪存块进行加热恢复。长驻留时间的闪存块列表LDT和短驻留时间的闪存块列表SDT初始化为空。The longer the residence time is, the more the reliability of the flash memory can be recovered. Therefore, the present invention focuses on heating and recovering the flash memory block with a short residence time. The long-duration flash block list LDT and the short-duration flash block list SDT are initialized to be empty.

步骤S3.当闪存固态盘到达使用寿命终点时,只对短驻留时间的闪存块列表中的闪存块进行加热操作,对长驻留时间的闪存块列表中的闪存块不进行加热操作。Step S3. When the flash solid state disk reaches the end of its service life, the heating operation is only performed on the flash memory blocks in the flash memory block list with short residence time, and the heating operation is not performed on the flash memory blocks in the flash memory block list with long residence time.

S31.当闪存固态盘到达使用寿命终点时,进入步骤S32。S31. When the flash solid state disk reaches the end of its service life, go to step S32.

本发明中闪存固态盘到达使用寿命终点的判断标准为80%的闪存块失效。当闪存固态盘到达寿命终点时,因为磨损均衡策略,大部分的闪存块的PEcurrent都到达PElimit。这时,优先从SDT中选择具有最短驻留时间的闪存块进行判定是否执行加热操作。In the present invention, the criterion for judging that the flash memory solid state disk reaches the end of its service life is that 80% of the flash memory blocks fail. When the flash SSD reaches the end of its life, due to the wear leveling strategy, the PE current of most flash blocks reaches the PE limit . At this time, the flash memory block with the shortest residence time is preferentially selected from the SDT to determine whether to perform the heating operation.

S32.判断SDT中是否存在闪存块,若是,从短驻留时间的闪存块列表中选择具有最短驻留时间的闪存块,进入步骤S33,否则,结束。S32. Determine whether there is a flash memory block in the SDT, if yes, select the flash memory block with the shortest residence time from the list of flash memory blocks with short residence time, and proceed to step S33, otherwise, end.

循环地从SDT中选择下一个具有最短驻留时间的闪存块进行加热判定,直到SDT中所有的闪存块检测完。The next flash memory block with the shortest residence time is cyclically selected from the SDT for heating determination until all the flash memory blocks in the SDT are detected.

S33.对该闪存块执行一次加热操作,然后将该闪存块从SDT中删除并且放入健康闪存块列表中,进入步骤S32。S33. Perform a heating operation on the flash memory block, then delete the flash memory block from the SDT and put it into the healthy flash memory block list, and go to step S32.

这时该闪存块的擦写循环次数上限PElimit将增加PEi,其中,PEi表示在第i次加热后增加的擦写循环次数。At this time, the upper limit PE limit of the number of erasing and writing cycles of the flash memory block will be increased by PE i , where PE i represents the number of erasing and writing cycles increased after the i-th heating.

本发明还提供了一种闪存固态盘,该闪存固态盘包括控制模块,该控制模块采用如上述优化的闪存固态盘加热方法,加热失效的闪存块。The present invention also provides a flash memory solid state disk, the flash memory solid state disk includes a control module, and the control module adopts the above optimized flash memory solid state disk heating method to heat the failed flash memory blocks.

如图2所示,所述闪存固态盘的数据分配包括以下步骤:As shown in Figure 2, the data allocation of the flash solid state disk includes the following steps:

(1)如果闪存固态盘中存在“健康”的闪存块,选择一个具有最少加热次数的闪存块作为“活跃”闪存块,将新到达的数据放入活跃闪存块存储;否则,进入步骤(2);(1) If there is a "healthy" flash block in the flash SSD, select a flash block with the least number of heating times as the "active" flash block, and store the newly arrived data in the active flash block; otherwise, go to step (2) );

(2)如果闪存固态盘中存在长驻留时间的闪存块列表LDT,优先从该列表上选择具有最长驻留时间的闪存块作为“活跃”闪存块,这时,该闪存块的擦写循环次数上限PElimit将增加PE(DTavg),其中,PE(DTavg)表示在驻留时间为DTavg情况下增加的擦写循环次数,将新到达的数据放入活跃闪存块存储;否则,进入步骤(3);(2) If there is a flash block list LDT with a long residence time in the flash solid state disk, the flash block with the longest residence time is preferentially selected from the list as the "active" flash block. At this time, the flash memory block is erased and written. The upper limit of cycle times, PE limit , will increase PE(DT avg ), where PE(DT avg ) represents the increased number of erase/write cycles when the residence time is DT avg , and the newly arrived data will be stored in the active flash memory block; otherwise , enter step (3);

(3)如果闪存固态盘中存在短驻留时间的闪存块列表SDT,优先从该列表上选择具有最短驻留时间的闪存块作为“活跃”闪存块,当该闪存块的RBER≥CBER时,需要先执行一次加热操作,将新到达的数据放入活跃闪存块存储。(3) If there is a flash block list SDT with short residence time in the flash solid state disk, the flash block with the shortest residence time is preferentially selected from the list as the "active" flash block. When the RBER of the flash block is greater than or equal to CBER, A warm-up operation needs to be performed first to put the newly arrived data into the active flash block storage.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.

Claims (5)

1. An optimized flash memory solid state disk heating method is characterized by comprising the following steps:
s1, recording average residence time DT of each flash memory block in flash memory solid-state diskavgCalculating the actual reliability RBER of the flash memory block according to the average residence time of the flash memory block, and comprising the following substeps;
s11, tracking current erasing and writing times PE of flash memory blocks in healthy flash memory block listcurrentObtaining the upper limit PE of the erasing times of the flash memory blocklimitWherein, PElimitInitialization as manufacturer-defined upper limit of erase-write times PEinitWhen a PE of a flash blockcurrent=PElimit-PE*When, PE*If it is the number of times of erasing that can affect the reliability recovery of the flash memory block, the process proceeds to step S12;
s12, recording the flash memory block in PElimit-PE*And PElimit-PE*+1 dwell time DT between two erase countsPE*
S13, when the erasing frequency of the flash memory block reaches PElimitBefore, the dwell time DT between two continuous erasing times is recorded in a circulating wayPE*-1,......,DT1When the PE of the flash blockcurrent=PElimitThen, the process proceeds to step S14;
s14, calculating the average residence time DT of the flash memory block according to the plurality of recorded residence times of the flash memory blockavg
S15, according to the average residence time DT of the flash memory blocksavgCalculating the actual reliability RBER of the flash memory block;
RBER=RBERinit+a*(PEcurrent+b)*ln(1+RTmax/(c+d*DTavg))
wherein, RBERinitIs the raw bit error rate, PE, at the completion of the data programmingcurrentIs the current erase-write times, RTmaxIs the time required to be maintained after the data programming, DT, required by the manufactureravgIs the average residence time of the flash memory block, and a, b, c, d are the correlation coefficients of four formulas;
s2, comparing the actual reliability RBER of each flash block with the correctable bit error rate CBER of the built-in error correcting code of the flash solid-state disk, and when the RBER is used, comparing the actual reliability RBER of each flash block with the correctable bit error rate CBER of the built-in error correcting code of the flash solid-state disk<When CBER is used, the flash memory block is added into a flash memory block list LDT with long residence time; otherwise, adding a flash memory block list SDT with short residence time; when joining the list, according to DTavgThe size of the value is sequentially added to the corresponding list;
and S3, when the flash memory solid-state disk reaches the service life end, only heating the flash memory blocks in the flash memory block list with short residence time, and not heating the flash memory blocks in the flash memory block list with long residence time.
2. The method of claim 1, wherein PE is characterized in that*Is 20.
3. The method according to claim 1 or 2, characterized in that step S3 comprises the sub-steps of:
s31, when the flash memory solid-state disk reaches the service life end, the step S32 is carried out;
s32, judging whether the SDT has a flash memory block, if so, selecting the flash memory block with the shortest residence time from a flash memory block list with short residence time, and entering the step S33, otherwise, ending;
s33, heating the flash memory block once, then deleting the flash memory block from the SDT and putting the flash memory block into a healthy flash memory block list, and entering the step S32.
4. A flash memory solid state disk, characterized in that it comprises a control module, which heats failed flash memory blocks using the optimized flash memory solid state disk heating method as claimed in any one of claims 1 to 3.
5. The flash memory solid state disk of claim 4, wherein the data allocation of the flash memory solid state disk comprises the steps of:
(1) if healthy flash memory blocks exist in the flash memory solid-state disk, selecting one flash memory block with the least heating times as an active flash memory block, and putting newly arrived data into the active flash memory block for storage; otherwise, entering the step (2);
(2) if a flash memory block list LDT with long residence time exists in the flash memory solid-state disk, selecting the flash memory block with the longest residence time from the list as an active flash memory block, and at the moment, the upper limit PE of the erasing cycle times of the flash memory blocklimitWill increase PE (DT)avg) Wherein, PE (DT)avg) Denotes a dwell time of DTavgUnder the condition of increased erasing and writing cycle times, newly arrived data is put into an active flash memory block for storage; otherwise, entering the step (3);
(3) if a flash memory block list SDT with short residence time exists in the flash memory solid-state disk, selecting the flash memory block with the shortest residence time from the list as an active flash memory block, and when the RBER of the flash memory block is more than or equal to CBER, firstly executing a heating operation, and putting newly arrived data into the active flash memory block for storage.
CN202010205061.7A 2020-03-22 2020-03-22 An optimized flash solid state disk heating method and flash solid state disk Active CN111459409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010205061.7A CN111459409B (en) 2020-03-22 2020-03-22 An optimized flash solid state disk heating method and flash solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010205061.7A CN111459409B (en) 2020-03-22 2020-03-22 An optimized flash solid state disk heating method and flash solid state disk

Publications (2)

Publication Number Publication Date
CN111459409A CN111459409A (en) 2020-07-28
CN111459409B true CN111459409B (en) 2021-07-02

Family

ID=71683646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010205061.7A Active CN111459409B (en) 2020-03-22 2020-03-22 An optimized flash solid state disk heating method and flash solid state disk

Country Status (1)

Country Link
CN (1) CN111459409B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816836B (en) * 2022-06-27 2022-09-02 北京得瑞领新科技有限公司 Recovery method and device of equivalent residence time, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk
CN208819597U (en) * 2018-09-13 2019-05-03 攀枝花学院 A high-stability hard disk based on heat-assisted storage technology

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010511266A (en) * 2006-11-29 2010-04-08 ラムバス・インコーポレーテッド Integrated circuit with built-in heating circuit to reverse operational degeneration
CN102522121B (en) * 2011-12-13 2015-09-02 记忆科技(深圳)有限公司 The method that solid state hard disc is repaired automatically and solid state hard disc thereof
CN102915211A (en) * 2012-09-04 2013-02-06 邹粤林 Method for improving flash memory chip writing speed, flash memory system and controller thereof
TWI506642B (en) * 2012-12-07 2015-11-01 Phison Electronics Corp Memory repairing method, and memory controller and memory storage apparatus using the same
TWI633553B (en) * 2017-03-14 2018-08-21 Powerchip Technology Corporation Flash memory device and refresh method thereof
TWI653587B (en) * 2017-09-22 2019-03-11 財團法人資訊工業策進會 Dispatching method and system based on multiple levels of steady state production rate in working benches
US10887416B2 (en) * 2018-05-07 2021-01-05 International Business Machines Corporation Efficient high availability and storage efficiency in a multi-site object storage environment
CN109656482B (en) * 2018-12-19 2022-03-25 哈尔滨工业大学 Write hot page prediction method based on memory access

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377152A (en) * 2012-04-26 2013-10-30 深圳市朗科科技股份有限公司 Write operation control method and write operation device for solid state disk
CN208819597U (en) * 2018-09-13 2019-05-03 攀枝花学院 A high-stability hard disk based on heat-assisted storage technology

Also Published As

Publication number Publication date
CN111459409A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US8738987B2 (en) Memory controller and memory management method
TWI474335B (en) System, method, and computer program product for increasing a lifetime of a plurality of blocks of memory
CN106462493B (en) The mitigation of solid-state memory damage
TWI490871B (en) Method for preventing read-disturb, memory control circuit unit and memory storage apparatus
EP2397945A1 (en) Programming method and device for a buffer cache in a solid-state disk system
US9324435B2 (en) Data transmitting method, memory control circuit unit and memory storage apparatus
JP2013522776A (en) Multi-level cell self-RAID flash data protection
CN104898982B (en) Data transmission method, memory control circuit unit and memory storage device
CN111078149A (en) Memory management method, memory storage device, and memory control circuit unit
CN102356382A (en) Dram buffer management device and method
JP5259138B2 (en) Storage device
US20120030435A1 (en) Memory device, memory management device, and memory management method
TWI875072B (en) Memory system and method thereof, and computer-readable medium
US20190377518A1 (en) Data storage device, operating method of the same, and electronic system including the same
CN104794063A (en) A control method of a solid-state storage device with a resistive memory
CN103871480B (en) Memory repair method, memory controller and memory storage device
CN105320464A (en) Method for preventing read interference, memory control circuit unit and memory device
US9778862B2 (en) Data storing method for preventing data losing during flush operation, memory control circuit unit and memory storage apparatus
CN103678162B (en) System data storage method, memory controller and memory storage device
CN111459409B (en) An optimized flash solid state disk heating method and flash solid state disk
JP7177338B2 (en) MEMORY CONTROLLER DEVICE, MEMORY DEVICE HAVING MEMORY CONTROLLER DEVICE, AND MEMORY CONTROL METHOD
JP2012521032A (en) SSD controller and operation method of SSD controller
CN106205699A (en) Memory management method, memory storage device and memory control circuit unit
CN104461379A (en) Method for improving stability of NAND and NAND
CN103853666B (en) Memory, its storage controller and data writing method

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