[go: up one dir, main page]

CN106844227A - Solid state hard disc abrasion equilibrium method and device based on grouping mechanism - Google Patents

Solid state hard disc abrasion equilibrium method and device based on grouping mechanism Download PDF

Info

Publication number
CN106844227A
CN106844227A CN201710026799.5A CN201710026799A CN106844227A CN 106844227 A CN106844227 A CN 106844227A CN 201710026799 A CN201710026799 A CN 201710026799A CN 106844227 A CN106844227 A CN 106844227A
Authority
CN
China
Prior art keywords
physical
physical block
physical blocks
erasing
blocks
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
Application number
CN201710026799.5A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710026799.5A priority Critical patent/CN106844227A/en
Publication of CN106844227A publication Critical patent/CN106844227A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Read Only Memory (AREA)

Abstract

The present invention relates to technical field of memory, the invention discloses a kind of solid state hard disc abrasion equilibrium method based on grouping mechanism, including:Physical block in solid state hard disc is divided into multiple and physics number of blocks identical group;Record the erasable number of times of each physical block;After carrying out erasable operation with physical block in group, will be resequenced according to its erasable number of times with the physical block of group, obtained the information sequence of this group of new physical block;If predetermined condition is reached with the erasable number of times of two physical blocks on the information sequence of a physical block, by the data exchange of above-mentioned two physical block.The invention also discloses a kind of solid state hard disc abrasion equilibrium device based on grouping mechanism, including:Physical block grouping module, logging modle, order module, data exchange judge module.The present invention improves the service efficiency of physical block in solid state hard disc, realizes the optimization of abrasion equilibrium performance.

Description

基于分组机制的固态硬盘磨损均衡方法及装置Solid state disk wear leveling method and device based on grouping mechanism

技术领域technical field

本发明涉及存储技术领域,尤其涉及一种基于分组机制的固态硬盘磨损均衡方法及装置。The invention relates to the field of storage technology, in particular to a grouping mechanism-based solid state disk wear leveling method and device.

背景技术Background technique

固态硬盘(Solid State Disk,简称SSD)是一种基于永久性存储器,如闪存,或非永久性存储器,同步动态随机存取存储器(SDRAM)的计算机外部存储设备。固态硬盘闪存(SSD)具有擦写次数限制的问题,如果一个块被持续多次的擦写而其它的块没有被擦写,那么这个块会很块地被磨损坏,从而极大地影响了SSD的寿命。SSD引入了磨损均衡(Wear-leveling)技术来实现擦写操作尽量均匀地分布在所有的块上,从而最大化SSD的使用寿命。磨损均衡分为动态Wear-leveling和静态Wear-leveling。动态磨损均衡只会处理正在变化的和未使用的数据区域,而不会去处理己有数据的区域,避免了让电脑操作系统端的应用程序重复不断地对同一个存储数据块区域进行擦除/写入,从而导致让整个存储单元出现永久性损坏,更严重地导致固态硬盘报废。静态磨损均衡会在发觉已有数据的区域磨损度数明显小于平均磨损度时候对它们进行搬运操作来达到磨损均衡。Solid State Disk (SSD for short) is a computer external storage device based on permanent memory, such as flash memory, or non-permanent memory, Synchronous Dynamic Random Access Memory (SDRAM). Solid-state drive flash memory (SSD) has the problem of erasing and writing times limit. If a block is repeatedly erased and other blocks are not erased, then this block will be worn out, which greatly affects the SSD. lifespan. SSD introduces wear leveling (Wear-leveling) technology to realize that erasing and writing operations are distributed as evenly as possible on all blocks, thereby maximizing the service life of SSD. Wear leveling is divided into dynamic wear-leveling and static wear-leveling. Dynamic wear leveling will only deal with the changing and unused data area, and will not deal with the existing data area, avoiding the application program on the computer operating system side to repeatedly erase/write the same storage data block area Writing, resulting in permanent damage to the entire storage unit, and more seriously causing the solid state drive to be scrapped. Static wear leveling will move them to achieve wear leveling when it is found that the wear degree of the area with existing data is significantly lower than the average wear degree.

当前厂商的控制器中各家的算法可以说是相似而又有各自的长项与优势,相似之处就是每家控制器都会将存储在中的数据区分开来,经常访问的数据统一称之为热数据,不经常访问的数据都是统一称之为冷数据。如果进行完全均衡的擦写策略,那么冷数据就会被搬移,以容纳热数据。这样会带来额外的擦写开销(写放大),从而降低了SSD的整体寿命。所以采用一种优化的策略既能保证磨损均衡,又能降低写放大效应,以达到SSD使用寿命的最大化,成为亟待解决的问题。The algorithms of each of the current controllers of the manufacturers can be said to be similar but have their own strengths and advantages. The similarity is that each controller will distinguish the data stored in it, and the data that is frequently accessed is collectively called For hot data, infrequently accessed data are collectively referred to as cold data. If a fully balanced erase and write strategy is implemented, then cold data will be moved to accommodate hot data. This will bring additional erasing overhead (write amplification), thereby reducing the overall life of the SSD. Therefore, adopting an optimized strategy can not only ensure wear leveling, but also reduce the write amplification effect, so as to maximize the service life of SSD, which has become an urgent problem to be solved.

发明内容Contents of the invention

针对以上技术问题,本发明的目的是提供一种基于分组机制的固态硬盘磨损均衡方法及装置,提高了固态硬盘内物理块的使用效率,实现了磨损均衡性能的优化。In view of the above technical problems, the purpose of the present invention is to provide a method and device for solid state hard disk wear leveling based on grouping mechanism, which improves the use efficiency of physical blocks in solid state hard drives and realizes the optimization of wear leveling performance.

为达到上述目的,本发明通过以下技术方案实现:In order to achieve the above object, the present invention is achieved through the following technical solutions:

本发明提供一种基于分组机制的固态硬盘磨损均衡方法,包括以下步骤:The present invention provides a method for leveling wear of a solid state disk based on a grouping mechanism, comprising the following steps:

S1:将固态硬盘内的物理块划分为多个且物理块数量相同的组;S1: Divide the physical blocks in the solid state disk into multiple groups with the same number of physical blocks;

S2:记录每个物理块的擦写次数;S2: Record the number of erasing and writing of each physical block;

S3:对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;S3: After the physical block is erased and written, the physical blocks of the same group are reordered according to their erasing and writing times, and a new information sequence of the physical block of the group is obtained;

S4:若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。S4: If the erasing times of the two physical blocks in the information sequence of the same physical block meet a predetermined condition, exchange the data of the two physical blocks.

进一步地,在步骤S1之前,还包括:建立数据结构维护每个物理块的信息;Further, before step S1, it also includes: establishing a data structure to maintain information of each physical block;

进一步地,步骤S2具体包括:Further, step S2 specifically includes:

记录初始状态时每个物理块的擦写次数;Record the number of erasing and writing of each physical block in the initial state;

将同组的物理块根据其擦写次数进行排序,得到初始状态时本组物理块的信息序列;Sorting the physical blocks of the same group according to their erasing times to obtain the information sequence of the physical blocks of this group in the initial state;

对物理块进行擦写操作后,将该物理块的擦写次数加一。After the erasing and writing operation is performed on the physical block, the number of erasing and writing times of the physical block is increased by one.

进一步地,步骤S4具体包括:Further, step S4 specifically includes:

判断同个物理块的信息序列上的物理块的擦写次数最大值是否达到阈值,若达到,则依次将同个物理块的信息序列上处于对称位置且擦写次数的差值满足预定数值的两个物理块的数据进行互换,同时将互换数据的两个物理块的擦写次数加一,再将互换数据的两个物理块和其对应逻辑块的映射表更新,得到更新擦写次数和映射关系后的物理块的信息序列,跳转到步骤S1继续执行;若未达到,则继续步骤S2记录同组的物理块的擦写次数。Judging whether the maximum value of the erasing times of the physical block on the information sequence of the same physical block reaches the threshold value, if it reaches the threshold, then sequentially place the information sequence of the same physical block in a symmetrical position and the difference of the erasing times meets the predetermined value The data of the two physical blocks is exchanged, and at the same time, the number of erasing and writing of the two physical blocks of the exchanged data is increased by one, and then the mapping table of the two physical blocks of the exchanged data and their corresponding logical blocks is updated to obtain an updated erase After the write times and the information sequence of the physical block after the mapping relationship, jump to step S1 and continue to execute; if not, continue to step S2 to record the erasing times of the physical blocks in the same group.

进一步地,所述排序是按照由小到大或由大到小进行。Further, the sorting is performed from small to large or from large to small.

进一步地,所述数据结构是双链表结构。Further, the data structure is a double linked list structure.

进一步地,所述每个物理块对应一个物理地址,每个物理块对应一个逻辑块,每个逻辑块对应一个逻辑地址,所述物理地址和逻辑地址具有唯一的映射关系。Further, each physical block corresponds to a physical address, each physical block corresponds to a logical block, each logical block corresponds to a logical address, and the physical address and the logical address have a unique mapping relationship.

进一步地,所述阈值为每组内物理块的数量的50倍。Further, the threshold is 50 times the number of physical blocks in each group.

本发明还提供了基于上述的基于分组机制的固态硬盘磨损均衡方法的基于分组机制的固态硬盘磨损均衡装置,包括:The present invention also provides a solid state disk wear leveling device based on a grouping mechanism based on the above grouping mechanism based solid state disk wear leveling method, including:

物理块分组模块,用于将固态硬盘内的物理块划分为多个且物理块数量相同的组;The physical block grouping module is used to divide the physical blocks in the solid state disk into multiple groups with the same number of physical blocks;

记录模块,用于记录每个物理块的擦写次数;A recording module for recording the number of erasing and writing of each physical block;

排序模块,用于对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;The sorting module is used to reorder the physical blocks of the same group according to the number of times of erasing and writing after the physical blocks are erased and written, and obtain a new information sequence of the physical blocks of this group;

数据交换判断模块:用于若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。Data exchange judging module: used for exchanging the data of the above two physical blocks if the erasing times of the two physical blocks in the information sequence of the same physical block meet a predetermined condition.

进一步地,还包括:物理块信息维护模块,用于建立数据结构维护每个物理块的信息。Further, it also includes: a physical block information maintenance module, which is used to establish a data structure to maintain the information of each physical block.

进一步地,所述数据交换判断模块进一步还包括:翻译模块,用于将物理块的物理地址翻译成对应逻辑块的逻辑地址;数据交换判断模块进一步还包括:映射表更新模块,用于将互换数据的两个物理块和其对应逻辑块的映射表更新。Further, the data exchange judging module further includes: a translation module, which is used to translate the physical address of the physical block into a logical address of the corresponding logical block; the data exchange judging module further includes: a mapping table updating module, which is used to translate the The mapping table between the two physical blocks of data exchange and their corresponding logical blocks is updated.

与现有技术相比,本发明一种基于分组机制的固态硬盘磨损均衡方法的有益效果如下:Compared with the prior art, the beneficial effects of a grouping mechanism-based solid state disk wear leveling method of the present invention are as follows:

1.本发明基于分组机制,当同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换,更新物理块和其对应逻辑块的映射表,提高了固态硬盘内物理块的使用效率,从而实现了磨损均衡性能的优化;1. The present invention is based on a grouping mechanism. When the erasing times of two physical blocks on the information sequence of the same physical block reach a predetermined condition, the data of the two physical blocks are exchanged, and the physical block and its corresponding logical block are updated. The mapping table improves the utilization efficiency of the physical blocks in the solid-state hard disk, thereby realizing the optimization of wear leveling performance;

2.本发明物理块的分组可以根据物理块使用率和可用的存储空间,动态地进行调整,可以将局部的写操作过多的物理块的逻辑地址均衡映射到全物理存储空间,从而避免局部数据过热,实现了全局固态硬盘内物理块的磨损均衡性能的优化,最大限度地延长了固态硬盘的使用寿命;2. The grouping of the physical blocks of the present invention can be dynamically adjusted according to the utilization rate of the physical blocks and the available storage space, and the logical addresses of the physical blocks with too many local write operations can be evenly mapped to the full physical storage space, thereby avoiding partial The data is overheated, which realizes the optimization of the wear leveling performance of the physical blocks in the global solid-state hard disk, and prolongs the service life of the solid-state hard disk to the greatest extent;

3.本发明采用双链表数据结构,便于对其进行排序,双链表结构还可包含所指向链表的头尾指针,从而可以直接获取序列成员的pe_cnt_min和pe_cnt_max,使得由于进行了擦写操作而擦写次数加一的物理块在物理块的信息序列中的顺序暂时不进行调整,排序也只对少量物理块进行位置调整,从而节省了不必要的开销;3. the present invention adopts double-linked list data structure, is convenient to it sorting, and double-linked list structure can also comprise the head and tail pointer of pointed linked list, thereby can directly obtain the pe_cnt_min and pe_cnt_max of sequence member, make because erase operation has been carried out and erase The order of the physical block whose write count is increased by one in the information sequence of the physical block will not be adjusted temporarily, and the sorting will only adjust the position of a small number of physical blocks, thus saving unnecessary overhead;

4.本发明由于物理块的分组可以根据物理块使用率和可用的存储空间,动态地进行调整,故每组内物理块的数量也会动态调整,进而设定的阈值也会动态调整,从而实现了磨损均衡性能的优化。4. In the present invention, the grouping of physical blocks can be dynamically adjusted according to the utilization rate of physical blocks and the available storage space, so the number of physical blocks in each group will also be dynamically adjusted, and then the set threshold will also be dynamically adjusted, so that Optimized wear leveling performance.

一种基于分组机制的固态硬盘磨损均衡装置的有益效果与一种基于分组机制的固态硬盘磨损均衡方法的有益效果类似,在此不再赘述。The beneficial effect of a solid state disk wear leveling device based on a grouping mechanism is similar to the beneficial effect of a solid state disk wear leveling method based on a grouping mechanism, and will not be repeated here.

附图说明Description of drawings

图1为本发明基于分组机制的固态硬盘磨损均衡方法的流程示意图之一。FIG. 1 is one of the flow diagrams of the solid state disk wear leveling method based on the grouping mechanism in the present invention.

图2为本发明中实施例1中物理块在初始状态时的示意图。FIG. 2 is a schematic diagram of a physical block in an initial state in Embodiment 1 of the present invention.

图3为本发明中实施例1中物理块进行排序后的示意图。Fig. 3 is a schematic diagram of sorting physical blocks in Embodiment 1 of the present invention.

图4为本发明中实施例1中物理块更新擦写次数进行排序后的示意图。FIG. 4 is a schematic diagram of sorting physical block update erasing times in Embodiment 1 of the present invention.

图5为本发明中实施例1中物理块进行数据交换及更新映射后的示意图。FIG. 5 is a schematic diagram of data exchange and update mapping of physical blocks in Embodiment 1 of the present invention.

图6为本发明基于分组机制的固态硬盘磨损均衡方法的流程示意图之二。FIG. 6 is the second schematic flow diagram of the solid state disk wear leveling method based on the grouping mechanism of the present invention.

图7为本发明基于分组机制的固态硬盘磨损均衡装置的结构示意图之一。FIG. 7 is one of the structural schematic diagrams of the solid state disk wear leveling device based on the grouping mechanism of the present invention.

图8为本发明基于分组机制的固态硬盘磨损均衡装置的结构示意图之二。FIG. 8 is the second schematic diagram of the structure of the solid state disk wear leveling device based on the grouping mechanism of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

下面对下列实施例中出现的名词及概念进行解释说明:The nouns and concepts appearing in the following examples are explained below:

固态硬盘:英文全称Solid State Drives,简称SSD,用固态电子存储芯片阵列而制成的硬盘,由控制单元和存储单元(FLASH芯片或DRAM芯片)组成,控制单元主要包括特定型号固态硬盘中的固件程序,闪存转换层和闪存控制器等控制模块,存储单元主要是由半导体公司生产的闪存存储颗粒。Solid state drive: English full name Solid State Drives, referred to as SSD, a hard disk made of solid state electronic memory chip array, composed of a control unit and a storage unit (FLASH chip or DRAM chip), the control unit mainly includes the firmware in a specific type of solid state drive The program, the control module such as the flash conversion layer and the flash controller, and the storage unit are mainly flash storage particles produced by semiconductor companies.

下面结合附图和具体实施方式对本发明一种基于分组机制的固态硬盘磨损均衡方法及装置作进一步地说明:A method and device for wear leveling of solid-state hard drives based on grouping mechanism of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments:

实施例1Example 1

如图1所示,一种基于分组机制的固态硬盘磨损均衡方法,包括以下步骤:As shown in Figure 1, a grouping mechanism-based solid state disk wear leveling method includes the following steps:

步骤S101:依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组,每组内物理块的数量为N;Step S101: According to the usage rate and available storage space of the physical blocks in the solid-state hard disk, divide the physical blocks in the solid-state hard disk into multiple groups with the same number of physical blocks, and the number of physical blocks in each group is N;

步骤S102:记录每个物理块的擦写次数;Step S102: Record the erasing and writing times of each physical block;

步骤S103:对物理块进行擦写操作后,将同组的物理块根据其擦写次数由小到大进行重新排序,得到新的本组物理块的信息序列;Step S103: After performing the erasing and writing operation on the physical blocks, reorder the physical blocks in the same group according to their erasing and writing times from small to large, and obtain a new information sequence of the physical blocks in this group;

步骤S104:若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。Step S104: If the number of erasing and writing times of two physical blocks in the information sequence of the same physical block reaches a predetermined condition, exchange the data of the two physical blocks.

上述步骤S102具体包括:记录初始状态时每个物理块的擦写次数;将同组的物理块根据其擦写次数进行排序,得到初始状态时本组物理块的信息序列;对物理块进行擦写操作后,将该物理块的擦写次数加一。The above step S102 specifically includes: recording the erasing times of each physical block in the initial state; sorting the physical blocks of the same group according to their erasing times to obtain the information sequence of the physical blocks in the group in the initial state; erasing the physical blocks After the write operation, add one to the erasing and writing times of the physical block.

上述步骤S104具体包括:判断同个物理块的信息序列上的物理块的擦写次数最大值是否达到阈值,若达到,则依次将同个物理块的信息序列上处于对称位置且擦写次数的差值满足预定数值的两个物理块的数据进行互换,同时将互换数据的两个物理块的擦写次数加一,再将互换数据的两个物理块和其对应逻辑块的映射表更新,得到更新擦写次数和映射关系后的物理块的信息序列,然后跳转到步骤S101继续执行;若未达到,则继续步骤S102记录同组的物理块的擦写次数。The above step S104 specifically includes: judging whether the maximum value of the erasing times of the physical blocks on the information sequence of the same physical block reaches the threshold value, and if it reaches the threshold, then successively set the information sequence of the same physical block at a symmetrical position and the number of times of erasing and writing The data of the two physical blocks whose difference satisfies the predetermined value is exchanged, and at the same time, the erasing times of the two physical blocks of the exchanged data are increased by one, and then the mapping between the two physical blocks of the exchanged data and their corresponding logical blocks Update the table to obtain the information sequence of the physical block after updating the number of erasing times and the mapping relationship, and then jump to step S101 to continue execution; if not, continue to step S102 to record the erasing times of the physical blocks in the same group.

上述每个物理块对应一个物理地址,每个物理块对应一个逻辑块,每个逻辑块对应一个逻辑地址,所述物理地址和逻辑地址具有唯一的映射关系。Each physical block above corresponds to a physical address, each physical block corresponds to a logical block, each logical block corresponds to a logical address, and the physical address and logical address have a unique mapping relationship.

作为一种可实施方式,依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组,一般来说尽量选择擦写次数差异较大的物理块进行分组,这样可以将此磨损平衡策略的效果较好的发挥出来,每组内物理块的数量为N,N为大于2的自然数,如N=8;As a possible implementation, according to the usage rate of the physical blocks in the solid-state hard disk and the available storage space, the physical blocks in the solid-state hard disk are divided into multiple groups with the same number of physical blocks. Physical blocks with large differences are grouped, so that the effect of this wear-balancing strategy can be better exerted. The number of physical blocks in each group is N, and N is a natural number greater than 2, such as N=8;

请参考图2,该组内的物理块分别记为A、B、C、D、E、F、G和H,对应的逻辑块分别即为a、b、c、d、e、f、g和h,上述每个物理块的物理地址和对应逻辑块的逻辑地址存在一一对应的映射关系,记录初始状态时每个物理块的擦写次数(pe_cnt),A为5,B为8,C为2,D为6,E为10,F为1,G为4,H为7;Please refer to Figure 2, the physical blocks in this group are respectively marked as A, B, C, D, E, F, G and H, and the corresponding logical blocks are respectively a, b, c, d, e, f, g and h, there is a one-to-one mapping relationship between the physical address of each physical block and the logical address of the corresponding logical block, and the number of erasing and writing (pe_cnt) of each physical block in the initial state is recorded, A is 5, B is 8, C is 2, D is 6, E is 10, F is 1, G is 4, H is 7;

请参考图3,将8个物理块依据擦写次数(pe_cnt)由小到大进行排序,得到初始状态时本组物理块的信息序列,pe_cnt_min指向擦写次数(pe_cnt)最小的物理块,pe_cnt_max指向擦写次数(pe_cnt)最大的物理块;Please refer to Figure 3, sort the 8 physical blocks according to the erasing times (pe_cnt) from small to large, and get the information sequence of the physical blocks in this group in the initial state, pe_cnt_min points to the physical block with the smallest erasing times (pe_cnt), pe_cnt_max Point to the physical block with the largest erasing times (pe_cnt);

请参考图4,对物理块进行擦写操作后,就更新其擦写次数(pe_cnt)。对物理块进行多次擦写操作后,A为34,B为47,C为20,D为36,E为50,F为12,G为28,H为41,将同组的物理块根据其擦写次数(pe_cnt)由小到大进行重新排序,得到新的本组物理块的信息序列,pe_cnt_min指向擦写次数(pe_cnt)最小的物理块,pe_cnt_max指向擦写次数(pe_cnt)最大的物理块;Please refer to Figure 4, after the erase operation is performed on the physical block, its erase count (pe_cnt) is updated. After multiple erasing and writing operations on physical blocks, A is 34, B is 47, C is 20, D is 36, E is 50, F is 12, G is 28, and H is 41. The erasing times (pe_cnt) are reordered from small to large to obtain the information sequence of the new physical block of this group, pe_cnt_min points to the physical block with the smallest erasing times (pe_cnt), and pe_cnt_max points to the physical block with the largest erasing times (pe_cnt). Piece;

请参考图5,设置物理块的擦写次数最大值的阈值设置为50*N,N为每组内物理块的数量,同个物理块的信息序列上处于对称位置两个物理块的擦写次数的差值的预定数值设置为10。此时,n=1,阈值为50,物理块E的擦写次数已经达到50,并且在此序列中与物理块E处于对称位置上的是物理块F,物理块E与物理块F的擦写次数的差值也大于10,于是将物理块E与物理块F的数据进行交换,并将物理块E与物理块F的擦写次数加1,更新物理块E与物理块F的映射表,同理,物理块B与物理块C、物理块G与物理块H的擦写次数的差值也大于10,于是也将物理块B与物理块C的数据进行交换,更新物理块B与物理块C的映射表,将物理块B与物理块C的擦写次数加1,物理块G与物理块H的数据进行交换,并更新物理块G与物理块H的映射表,将物理块G与物理块H的擦写次数加1;而物理块A与物理块D的擦写次数的差值小于10,则不进行数据交换、擦写次数加1和映射表的更新,最后得到更新擦写次数和映射关系后的物理块的信息序列;依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块重新划分为多个且物理块数量相同的组,进行下一循环,可以将局部的写操作过多的物理块的逻辑地址均衡映射到全物理存储空间,从而避免局部数据过热,延长存储介质的使用寿命。Please refer to Figure 5, the threshold for setting the maximum number of erasing times of a physical block is set to 50*N, N is the number of physical blocks in each group, and the information sequence of the same physical block is in a symmetrical position for erasing two physical blocks The predetermined numerical value of the difference of times is set to ten. At this point, n=1, the threshold is 50, the number of erasing and writing of the physical block E has reached 50, and the physical block F is in a symmetrical position with the physical block E in this sequence, and the erasure of the physical block E and the physical block F The difference in the number of writes is also greater than 10, so the data of the physical block E and the physical block F are exchanged, and the number of erasing and writing of the physical block E and the physical block F is increased by 1, and the mapping table of the physical block E and the physical block F is updated , in the same way, the difference between physical block B and physical block C, physical block G and physical block H is also greater than 10, so the data of physical block B and physical block C are also exchanged, and physical block B and physical block are updated. For the mapping table of physical block C, add 1 to the erasing times of physical block B and physical block C, exchange the data of physical block G and physical block H, and update the mapping table of physical block G and physical block H, and convert the physical block The erasing times of G and physical block H are increased by 1; and the difference between the erasing times of physical block A and physical block D is less than 10, data exchange, erasing times are increased by 1, and the mapping table is updated, and finally updated The information sequence of the physical block after the erasing times and the mapping relationship; according to the usage rate of the physical block in the solid state drive and the available storage space, the physical block in the solid state drive is re-divided into multiple groups with the same number of physical blocks, In the next cycle, the logical addresses of the local physical blocks with too many write operations can be evenly mapped to the entire physical storage space, thereby avoiding local data overheating and prolonging the service life of the storage medium.

上述实施方式中,同个物理块的信息序列上进行数据交换的物理块的对数小于等于N/2,并且多个物理块的信息序列上的物理块之间的数据交换、擦写次数加1和映射表的更新可以是并行进行的,从而使得磨损均衡速度更快。In the above embodiment, the logarithm of the physical blocks for data exchange on the information sequence of the same physical block is less than or equal to N/2, and the data exchange between physical blocks on the information sequence of multiple physical blocks, the number of times of erasing and writing increases 1 and the update of the mapping table can be performed in parallel, which makes wear leveling faster.

实施例2Example 2

如图6所示,一种基于分组机制的固态硬盘磨损均衡方法,包括以下步骤:As shown in Figure 6, a grouping mechanism-based solid state disk wear leveling method includes the following steps:

步骤S201:建立双链表(double linked list)数据结构维护每个物理块的信息;Step S201: Establish a double linked list data structure to maintain the information of each physical block;

步骤S202:依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组,每组内物理块的数量为N;Step S202: Divide the physical blocks in the solid state drive into multiple groups with the same number of physical blocks according to the usage rate and available storage space of the physical blocks in the solid state drive, and the number of physical blocks in each group is N;

步骤S203:记录每个物理块的擦写次数;Step S203: Record the erasing times of each physical block;

步骤S204:对物理块进行擦写操作后,将同组的物理块根据其擦写次数由大到小进行重新排序,得到新的本组物理块的信息序列;Step S204: After performing the erasing and writing operation on the physical blocks, reorder the physical blocks in the same group according to their erasing times from large to small to obtain a new information sequence of the physical blocks in this group;

步骤S205:若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。Step S205: If the number of erasing and writing times of two physical blocks in the information sequence of the same physical block reaches a predetermined condition, exchange the data of the two physical blocks.

上述步骤S203具体包括:记录初始状态时每个物理块的擦写次数;将同组的物理块根据其擦写次数进行排序,得到初始状态时本组物理块的信息序列;对物理块进行擦写操作后,将该物理块的擦写次数加一。The above step S203 specifically includes: recording the erasing times of each physical block in the initial state; sorting the physical blocks of the same group according to their erasing times to obtain the information sequence of the physical blocks in the group in the initial state; erasing the physical blocks After the write operation, add one to the erasing and writing times of the physical block.

上述步骤S205具体包括:判断同个物理块的信息序列上的物理块的擦写次数最大值是否达到阈值,若达到,则依次将同个物理块的信息序列上处于对称位置且擦写次数的差值满足预定数值的两个物理块的数据进行互换,同时将互换数据的两个物理块的擦写次数加一,再将互换数据的两个物理块和其对应逻辑块的映射表更新,得到更新擦写次数和映射关系后的物理块的信息序列,跳转到步骤S202继续执行;若未达到,则继续步骤S203记录同组的物理块的擦写次数。The above step S205 specifically includes: judging whether the maximum value of the erasing times of the physical blocks on the information sequence of the same physical block reaches the threshold value, and if so, sequentially assigning the information sequence of the same physical block that is in a symmetrical position and the number of erasing times The data of the two physical blocks whose difference satisfies the predetermined value is exchanged, and at the same time, the erasing times of the two physical blocks of the exchanged data are increased by one, and then the mapping between the two physical blocks of the exchanged data and their corresponding logical blocks Update the table to obtain the information sequence of the physical block after updating the number of erasing times and the mapping relationship, and jump to step S202 to continue execution; if not, continue to step S203 to record the erasing times of the physical blocks in the same group.

上述每个物理块对应一个物理地址,每个物理块对应一个逻辑块,每个逻辑块对应一个逻辑地址,所述物理地址和逻辑地址具有唯一的映射关系。Each physical block above corresponds to a physical address, each physical block corresponds to a logical block, each logical block corresponds to a logical address, and the physical address and logical address have a unique mapping relationship.

作为一种可实施方式,建立双链表(double linked list)数据结构来维护每一个物理块的信息,双链表结构便于对其进行排序,双链表结构还可包含所指向链表的头尾指针,从而可以直接获取序列成员的pe_cnt_min和pe_cnt_max。依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组,一般来说尽量选择擦写次数差异较大的物理块进行分组,这样可以将此磨损平衡策略的效果较好的发挥出来,每组内物理块的数量为N,N为大于2的自然数,如N=10。N越小,序列内需要进行比较和数据移动的次数就越小,但是可优化的物理块的数量也就减小。N越大,可优化的物理块的数量也就越大,但是维护序列排序和数据移动的开销也就越大。As a possible implementation, a double linked list data structure is established to maintain the information of each physical block. The double linked list structure facilitates its sorting. The double linked list structure can also contain the head and tail pointers of the linked list, so that The pe_cnt_min and pe_cnt_max of the sequence members can be obtained directly. According to the usage rate and available storage space of the physical blocks in the solid-state hard disk, the physical blocks in the solid-state hard disk are divided into multiple groups with the same number of physical blocks. Grouping, so that the effect of this wear leveling strategy can be better played out, the number of physical blocks in each group is N, and N is a natural number greater than 2, such as N=10. The smaller N is, the fewer comparisons and data movements need to be performed within the sequence, but the number of physical blocks that can be optimized is also reduced. The larger N, the larger the number of physical blocks that can be optimized, but the larger the overhead of maintaining sequence ordering and data movement.

本实施例中,多个物理块的信息序列上的物理块之间的数据交换、擦写次数加1和映射表的更新可以是并行进行的,从而使得磨损均衡速度更快。In this embodiment, the data exchange between the physical blocks on the information sequence of multiple physical blocks, the addition of 1 to the number of erasing and writing, and the updating of the mapping table can be performed in parallel, so that the speed of wear leveling is faster.

实施例3Example 3

如图7所示,一种基于分组机制的固态硬盘磨损均衡装置,包括以下模块:As shown in Figure 7, a solid state disk wear leveling device based on a grouping mechanism includes the following modules:

物理块分组模块301,用于依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组;The physical block grouping module 301 is used to divide the physical blocks in the solid-state hard disk into multiple groups with the same number of physical blocks according to the utilization rate and available storage space of the physical blocks in the solid-state hard disk;

记录模块302,用于记录每个物理块的擦写次数;A recording module 302, configured to record the number of times of erasing and writing of each physical block;

排序模块303,用于对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;The sorting module 303 is used to reorder the physical blocks of the same group according to the number of times of erasing and writing to obtain a new information sequence of the physical blocks of this group after the physical blocks are erased and written;

数据交换判断模块304,用于若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。The data exchange judging module 304 is used for exchanging the data of the above two physical blocks if the erasing times of the two physical blocks in the information sequence of the same physical block meet a predetermined condition.

其中物理块分组模块301依次顺序与记录模块302、排序模块303、数据交换判断模块304相连。The physical block grouping module 301 is sequentially connected to the recording module 302 , the sorting module 303 , and the data exchange judging module 304 .

实施例4Example 4

如图8所示,一种基于分组机制的固态硬盘磨损均衡装置,包括以下模块:As shown in Figure 8, a solid state disk wear leveling device based on a grouping mechanism includes the following modules:

物理块信息维护模块307,用于建立数据结构维护每个物理块的信息;The physical block information maintenance module 307 is used to establish a data structure to maintain the information of each physical block;

物理块分组模块301,用于依据固态硬盘内的物理块的使用率和可用的存储空间,将固态硬盘内的物理块划分为多个且物理块数量相同的组;The physical block grouping module 301 is used to divide the physical blocks in the solid-state hard disk into multiple groups with the same number of physical blocks according to the utilization rate and available storage space of the physical blocks in the solid-state hard disk;

记录模块302,用于记录每个物理块的擦写次数;A recording module 302, configured to record the number of times of erasing and writing of each physical block;

排序模块303,用于对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;The sorting module 303 is used to reorder the physical blocks of the same group according to the number of times of erasing and writing to obtain a new information sequence of the physical blocks of this group after the physical blocks are erased and written;

数据交换判断模块304:用于若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换;Data exchange judging module 304: used for exchanging the data of the above two physical blocks if the number of erasing and writing times of the two physical blocks on the information sequence of the same physical block reaches a predetermined condition;

数据交换判断模块304进一步还包括:翻译模块305,用于将物理块的物理地址翻译成对应逻辑块的逻辑地址;The data exchange judging module 304 further includes: a translation module 305, configured to translate the physical address of the physical block into the logical address of the corresponding logical block;

数据交换判断模块304进一步还包括:映射表更新模块306,用于将互换数据的两个物理块和其对应逻辑块的映射表更新。The data exchange judging module 304 further includes: a mapping table updating module 306, configured to update the mapping table of the two physical blocks and their corresponding logical blocks for exchanging data.

其中物理块信息维护模块307依次顺序与物理块分组模块301、记录模块302、排序模块303、数据交换判断模块304相连,翻译模块305和映射表更新模块306与数据交换判断模块304相连。The physical block information maintenance module 307 is sequentially connected to the physical block grouping module 301, the recording module 302, the sorting module 303, and the data exchange judgment module 304, and the translation module 305 and the mapping table update module 306 are connected to the data exchange judgment module 304.

以上所述仅为本发明示意性的具体实施方式,并非用以限定本发明的范围,任何本领域的技术人员在不脱离本发明构思和原则的前提下所做出的等同变化与修改,均应属于本发明保护的范围。The above descriptions are only illustrative specific implementations of the present invention, and are not intended to limit the scope of the present invention. Any equivalent changes and modifications made by those skilled in the art without departing from the concepts and principles of the present invention are acceptable. Should belong to the protection scope of the present invention.

Claims (10)

1.一种基于分组机制的固态硬盘磨损均衡方法,其特征在于,包括以下步骤:1. A method for leveling wear of solid-state hard drives based on a grouping mechanism, characterized in that, comprising the following steps: S1:将固态硬盘内的物理块划分为多个且物理块数量相同的组;S1: Divide the physical blocks in the solid state disk into multiple groups with the same number of physical blocks; S2:记录每个物理块的擦写次数;S2: Record the number of erasing and writing of each physical block; S3:对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;S3: After the physical block is erased and written, the physical blocks of the same group are reordered according to their erasing and writing times, and a new information sequence of the physical block of the group is obtained; S4:若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。S4: If the erasing times of the two physical blocks in the information sequence of the same physical block meet a predetermined condition, exchange the data of the two physical blocks. 2.根据权利要求1所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,在步骤S1之前,还包括:建立数据结构维护每个物理块的信息。2. The method for wear leveling solid state disk based on grouping mechanism according to claim 1, characterized in that, before step S1, further comprising: establishing a data structure to maintain information of each physical block. 3.根据权利要求1所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,步骤S2具体包括:3. The solid-state disk wear leveling method based on grouping mechanism according to claim 1, characterized in that, step S2 specifically comprises: 记录初始状态时每个物理块的擦写次数;Record the number of erasing and writing of each physical block in the initial state; 将同组的物理块根据其擦写次数进行排序,得到初始状态时本组物理块的信息序列;Sorting the physical blocks of the same group according to their erasing times to obtain the information sequence of the physical blocks of this group in the initial state; 对物理块进行擦写操作后,将该物理块的擦写次数加一。After the erasing and writing operation is performed on the physical block, the number of erasing and writing times of the physical block is increased by one. 4.根据权利要求1所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,步骤S4具体包括:4. The solid-state disk wear leveling method based on grouping mechanism according to claim 1, characterized in that, step S4 specifically comprises: 判断同个物理块的信息序列上的物理块的擦写次数最大值是否达到阈值,若达到,则依次将同个物理块的信息序列上处于对称位置且擦写次数的差值满足预定数值的两个物理块的数据进行互换,同时将互换数据的两个物理块的擦写次数加一,再将互换数据的两个物理块和其对应逻辑块的映射表更新,得到更新擦写次数和映射关系后的物理块的信息序列,跳转到步骤S1继续执行;若未达到,则继续步骤S2记录同组的物理块的擦写次数。Judging whether the maximum value of the erasing times of the physical block on the information sequence of the same physical block reaches the threshold value, if it reaches the threshold, then sequentially place the information sequence of the same physical block in a symmetrical position and the difference of the erasing times meets the predetermined value The data of the two physical blocks is exchanged, and at the same time, the number of erasing and writing of the two physical blocks of the exchanged data is increased by one, and then the mapping table of the two physical blocks of the exchanged data and their corresponding logical blocks is updated to obtain an updated erase After the write times and the information sequence of the physical block after the mapping relationship, jump to step S1 and continue to execute; if not, continue to step S2 to record the erasing times of the physical blocks in the same group. 5.根据权利要求1或3所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,所述排序是按照由小到大或由大到小进行。5. The grouping mechanism-based solid state disk wear leveling method according to claim 1 or 3, wherein the sorting is performed from small to large or from large to small. 6.根据权利要求2所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,所述数据结构是双链表结构。6. The solid state disk wear leveling method based on grouping mechanism according to claim 2, characterized in that, the data structure is a double linked list structure. 7.根据权利要求1所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,所述每个物理块对应一个物理地址,每个物理块对应一个逻辑块,每个逻辑块对应一个逻辑地址,所述物理地址和逻辑地址具有唯一的映射关系。7. The solid state disk wear leveling method based on the grouping mechanism according to claim 1, wherein each physical block corresponds to a physical address, each physical block corresponds to a logical block, and each logical block corresponds to a logical block. address, the physical address and logical address have a unique mapping relationship. 8.根据权利要求4所述的基于分组机制的固态硬盘磨损均衡方法,其特征在于,所述阈值为每组内物理块的数量的50倍。8. The solid state disk wear leveling method based on a grouping mechanism according to claim 4, wherein the threshold is 50 times the number of physical blocks in each group. 9.基于权利要求1~8任一项的基于分组机制的固态硬盘磨损均衡方法的基于分组机制的固态硬盘磨损均衡装置,其特征在于,包括:9. The solid state disk wear leveling device based on the grouping mechanism of the solid state disk wear leveling method based on the grouping mechanism according to any one of claims 1 to 8, characterized in that, comprising: 物理块分组模块,用于将固态硬盘内的物理块划分为多个且物理块数量相同的组;The physical block grouping module is used to divide the physical blocks in the solid state disk into multiple groups with the same number of physical blocks; 记录模块,用于记录每个物理块的擦写次数;A recording module for recording the number of erasing and writing of each physical block; 排序模块,用于对物理块进行擦写操作后,将同组的物理块根据其擦写次数进行重新排序,得到新的本组物理块的信息序列;The sorting module is used to reorder the physical blocks of the same group according to the number of times of erasing and writing after the physical blocks are erased and written, and obtain a new information sequence of the physical blocks of this group; 数据交换判断模块:用于若同个物理块的信息序列上的两个物理块的擦写次数达到预定条件,则将上述两个物理块的数据交换。Data exchange judging module: used for exchanging the data of the above two physical blocks if the erasing times of the two physical blocks in the information sequence of the same physical block meet a predetermined condition. 10.根据权利要求9所述的基于分组机制的固态硬盘磨损均衡装置,其特征在于,还包括:物理块信息维护模块,用于建立数据结构维护每个物理块的信息;10. The solid-state disk wear leveling device based on grouping mechanism according to claim 9, further comprising: a physical block information maintenance module, which is used to establish a data structure to maintain the information of each physical block; 优选地,所述数据交换判断模块进一步还包括:翻译模块,用于将物理块的物理地址翻译成对应逻辑块的逻辑地址;数据交换判断模块进一步还包括:映射表更新模块,用于将互换数据的两个物理块和其对应逻辑块的映射表更新。Preferably, the data exchange judging module further includes: a translation module for translating the physical address of the physical block into the logical address of the corresponding logical block; the data exchange judging module further includes: a mapping table updating module for translating the The mapping table between the two physical blocks of data exchange and their corresponding logical blocks is updated.
CN201710026799.5A 2017-01-14 2017-01-14 Solid state hard disc abrasion equilibrium method and device based on grouping mechanism Pending CN106844227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710026799.5A CN106844227A (en) 2017-01-14 2017-01-14 Solid state hard disc abrasion equilibrium method and device based on grouping mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710026799.5A CN106844227A (en) 2017-01-14 2017-01-14 Solid state hard disc abrasion equilibrium method and device based on grouping mechanism

Publications (1)

Publication Number Publication Date
CN106844227A true CN106844227A (en) 2017-06-13

Family

ID=59123656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710026799.5A Pending CN106844227A (en) 2017-01-14 2017-01-14 Solid state hard disc abrasion equilibrium method and device based on grouping mechanism

Country Status (1)

Country Link
CN (1) CN106844227A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319433A (en) * 2018-03-19 2018-07-24 艾体威尔电子技术(北京)有限公司 The memory management method of the NOR Flash of small memory microcontroller
CN109669641A (en) * 2018-12-24 2019-04-23 深圳忆联信息系统有限公司 Reduce the data deposit method and device of the SSD bit error rate
CN110750466A (en) * 2019-10-18 2020-02-04 深圳豪杰创新电子有限公司 Method and device for prolonging erasing and writing life of flash memory
CN111124305A (en) * 2019-12-20 2020-05-08 浪潮电子信息产业股份有限公司 Solid state disk wear leveling method and device and computer readable storage medium
CN111143238A (en) * 2019-12-27 2020-05-12 深圳融卡智能科技有限公司 Data erasing method and system based on eFlash memory chip
WO2020113440A1 (en) * 2018-12-04 2020-06-11 深圳市大疆创新科技有限公司 Data storage method, flash device, intelligent battery, and movable platform
CN112068769A (en) * 2020-07-28 2020-12-11 深圳市宏旺微电子有限公司 Bidirectional linked list management method of flash memory device and flash memory device
CN112162934A (en) * 2020-09-29 2021-01-01 深圳市时创意电子有限公司 Storage block abnormal wear processing method and device, electronic equipment and storage medium
CN114442946A (en) * 2022-01-06 2022-05-06 联芸科技(杭州)有限公司 Physical block management method and solid state disk
CN117873406A (en) * 2024-03-11 2024-04-12 武汉麓谷科技有限公司 Method for controlling wear balance of ZNS solid state disk

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353325B2 (en) * 1991-09-13 2008-04-01 Sandisk Corporation Wear leveling techniques for flash EEPROM systems
CN101441599A (en) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 Solid hard disk and equilibrium method of the same
CN101777026A (en) * 2009-01-09 2010-07-14 成都市华为赛门铁克科技有限公司 Memory management method, hard disk and memory system
CN102222046A (en) * 2011-06-09 2011-10-19 清华大学 Abrasion equilibrium method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353325B2 (en) * 1991-09-13 2008-04-01 Sandisk Corporation Wear leveling techniques for flash EEPROM systems
CN101441599A (en) * 2008-11-28 2009-05-27 成都市华为赛门铁克科技有限公司 Solid hard disk and equilibrium method of the same
CN101777026A (en) * 2009-01-09 2010-07-14 成都市华为赛门铁克科技有限公司 Memory management method, hard disk and memory system
CN102222046A (en) * 2011-06-09 2011-10-19 清华大学 Abrasion equilibrium method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319433B (en) * 2018-03-19 2021-02-02 艾体威尔电子技术(北京)有限公司 Storage management method for NOR Flash of small-memory single chip microcomputer
CN108319433A (en) * 2018-03-19 2018-07-24 艾体威尔电子技术(北京)有限公司 The memory management method of the NOR Flash of small memory microcontroller
WO2020113440A1 (en) * 2018-12-04 2020-06-11 深圳市大疆创新科技有限公司 Data storage method, flash device, intelligent battery, and movable platform
CN109669641A (en) * 2018-12-24 2019-04-23 深圳忆联信息系统有限公司 Reduce the data deposit method and device of the SSD bit error rate
CN109669641B (en) * 2018-12-24 2022-03-29 深圳忆联信息系统有限公司 Data storage method and device for reducing SSD bit error rate
CN110750466A (en) * 2019-10-18 2020-02-04 深圳豪杰创新电子有限公司 Method and device for prolonging erasing and writing life of flash memory
CN111124305A (en) * 2019-12-20 2020-05-08 浪潮电子信息产业股份有限公司 Solid state disk wear leveling method and device and computer readable storage medium
CN111143238A (en) * 2019-12-27 2020-05-12 深圳融卡智能科技有限公司 Data erasing method and system based on eFlash memory chip
CN112068769A (en) * 2020-07-28 2020-12-11 深圳市宏旺微电子有限公司 Bidirectional linked list management method of flash memory device and flash memory device
CN112068769B (en) * 2020-07-28 2023-11-14 深圳市宏旺微电子有限公司 Flash memory device bidirectional linked list management method and flash memory storage device
CN112162934A (en) * 2020-09-29 2021-01-01 深圳市时创意电子有限公司 Storage block abnormal wear processing method and device, electronic equipment and storage medium
CN114442946A (en) * 2022-01-06 2022-05-06 联芸科技(杭州)有限公司 Physical block management method and solid state disk
CN117873406A (en) * 2024-03-11 2024-04-12 武汉麓谷科技有限公司 Method for controlling wear balance of ZNS solid state disk
CN117873406B (en) * 2024-03-11 2024-07-09 武汉麓谷科技有限公司 Method for controlling wear balance of ZNS solid state disk

Similar Documents

Publication Publication Date Title
CN106844227A (en) Solid state hard disc abrasion equilibrium method and device based on grouping mechanism
CN103049397B (en) A kind of solid state hard disc inner buffer management method based on phase transition storage and system
TWI425357B (en) Method for performing block management, and associated memory device and controller thereof
CN107301134B (en) Wear Leveling in Storage Devices
TWI432965B (en) Memory systems with a plurality of structures and methods for operating the same
CN114510434A (en) Data aggregation in ZNS drivers
CN103838676B (en) Data-storage system, date storage method and PCM bridges
CN104317753B (en) Storage device and its data read-write method
CN102541458B (en) A kind of method improving data writing speed of electronic hard disk
CN103942159A (en) Data read-write method and device based on mixed storage device
CN106802777A (en) A kind of flash translation layer (FTL) control method for solid storage device
CN106354658B (en) A method of it reducing mapping table memory source in mixed-use developments algorithm and occupies
CN107368257A (en) Data routing inspection method and device in solid-state memory
CN103885724B (en) Memory system architecture based on phase transition storage and wear-leveling algorithm thereof
CN102999441B (en) Fine granularity memory access method
CN111158579A (en) Solid state disk and data access method thereof
US8423707B2 (en) Data access method for flash memory and storage system and controller using the same
CN101667157A (en) Flash memory data transmission method, flash memory storage system and controller
CN105278875A (en) Hybrid heterogeneous NAND solid state device
CN102520885B (en) Data management system for hybrid hard disk
CN104978149A (en) Data writing method, memory control circuit unit and memory storage device
CN115543180A (en) Management method and device of a solid-state hard disk, and solid-state hard disk
CN102890617B (en) Memory control method, memory controller and memory storage device
CN104423892A (en) Data writing method, disk module and data writing system
CN106959818A (en) Data writing method, memory control circuit unit and memory storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613

RJ01 Rejection of invention patent application after publication