WO2021068517A1 - Stored data sorting method and device - Google Patents

Stored data sorting method and device Download PDF

Info

Publication number
WO2021068517A1
WO2021068517A1 PCT/CN2020/092840 CN2020092840W WO2021068517A1 WO 2021068517 A1 WO2021068517 A1 WO 2021068517A1 CN 2020092840 W CN2020092840 W CN 2020092840W WO 2021068517 A1 WO2021068517 A1 WO 2021068517A1
Authority
WO
WIPO (PCT)
Prior art keywords
locked
page
erase block
metadata
written
Prior art date
Application number
PCT/CN2020/092840
Other languages
French (fr)
Chinese (zh)
Inventor
史顺玉
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021068517A1 publication Critical patent/WO2021068517A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Definitions

  • the present invention relates to the field of data storage, and more specifically, to a method and device for organizing stored data.
  • SSD flash memory
  • existing technologies also have optimization methods, such as wear leveling, garbage collection, and bad block mapping, etc., but they will conflict with daily reading and writing, affecting the life of the hard disk and the user experience.
  • the purpose of the embodiments of the present invention is to provide a method and device for arranging stored data, which can solve the problem of hard disk access conflicts and improve the working life and use experience of the hard disk.
  • the first aspect of the embodiments of the present invention provides a storage data defragmentation method, which executes the following steps in response to receiving a defragmentation task request:
  • a free low-wear erase block is determined according to the wear balance to store effective information.
  • the method further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
  • locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked.
  • the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
  • Determining a valid logical block in the write page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining the metadata value of the key located in the write page of the erase block according to the metadata hash table, And read the data as valid information based on the value.
  • the recyclable mark is also recorded in the metadata.
  • a second aspect of the embodiments of the present invention provides a storage data organization device, including:
  • Flash memory including multiple erase blocks
  • the memory stores program codes that can be run by the processor.
  • program codes When the program codes are run, they perform the following steps in response to receiving a defragmentation task request:
  • a free low-wear erase block is determined according to the wear balance to store effective information.
  • the step further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
  • locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked.
  • the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
  • Determining a valid logical block in the write page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining the metadata value of the key located in the write page of the erase block according to the metadata hash table, And read the data as valid information based on the value.
  • the recyclable mark is also recorded in the metadata.
  • the storage data arranging method and device provided by the embodiments of the present invention lock the write pages that have not been locked in the erase block involved in the defragmentation task request; Determine the valid logical block in the write page of the erase block and extract valid information from it, and add a recyclable mark to the written page; perform erasing on the erase block that includes all written pages with recyclable marks , And remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life of the hard disk And experience.
  • Fig. 1 is a schematic flow chart of a method for organizing stored data provided by the present invention.
  • Figure 1 shows a schematic flow chart of a method for organizing stored data provided by the present invention.
  • the storage data arranging method includes executing the following steps in response to receiving a defragmentation task request:
  • Step S101 Lock the written pages that have not been locked in the erase block involved in the defragmentation task request;
  • Step S103 Determine a valid logical block in the written page of the erase block according to the metadata hash table, extract valid information therefrom, and add a recyclable mark to the written page;
  • Step S105 Perform erasing on the erase block with recyclable marks on all the written pages included, and remove the recyclable marks and locks of all written pages in the erase block;
  • Step S107 Determine an idle low-wear erase block to store effective information according to the wear balance.
  • the minimum erased data block multiple (block) of the SSD is used as the unit (for example, 128Mb) to perform the garbage collection of the all-flash storage system; the defragmentation of data is based on the multiple (page) of the minimum data block written to the flash memory (Such as 4kb).
  • the effective fragmented data is copied to the free block in turn.
  • Idle blocks are allocated from the back-end storage array sequentially by the storage system in accordance with the principle of the wear balance of flash disks.
  • a task queue is designed to ensure that the recovery process and IO (input and output) do not conflict with each other.
  • the program can be stored in a computer readable storage medium, and the program can be executed during execution. At this time, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
  • the embodiment of the computer program can achieve the same or similar effect as any of the foregoing corresponding method embodiments.
  • the method further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request. For example, generating a task queue; in response to receiving an input and output task request, the involved write page that is not locked is locked; in response to the received input and output task request, the write page involved is locked and the input and output task is locked The request is placed in the task queue.
  • locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked by the defragmentation task request.
  • the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values; the write-in of the erasure block according to the metadata hash table Determining a valid logical block in the page and extracting valid information therefrom includes: obtaining the metadata value whose key is located in the written page of the erase block according to the metadata hash table, and reading the data as valid information based on the value.
  • the recyclable mark is also recorded in the metadata.
  • the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium.
  • the computer program executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
  • the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
  • K is the volume ID of the data volume and the LBA of the current IO
  • V is the metadata of the task that is performing the operation on the current page.
  • K is the volume ID of the data volume and the LBA of the current IO
  • V is the metadata of the task that is performing the operation on the current page.
  • step (2) When the host IO operation is completed, skip to step (2).
  • the storage data defragmentation method locks the written pages that have not been locked in the erase block involved in the defragmentation task request; Determine the valid logical block in the write page of the block and extract valid information from it, and add a recyclable mark to the written page; erase the erase block that includes all written pages with the recyclable mark, and Remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life and use of the hard disk Experience.
  • Storage data sorting devices include:
  • Flash memory including multiple erase blocks
  • the memory stores program codes that can be run by the processor.
  • program codes When the program codes are run, they perform the following steps in response to receiving a defragmentation task request:
  • a free low-wear erase block is determined according to the wear balance to store effective information.
  • the step further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
  • locking the write page that has not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not being locked yet The write page is locked.
  • the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values; the write-in of the erasure block according to the metadata hash table Determining a valid logical block in the page and extracting valid information therefrom includes: obtaining the metadata value whose key is located in the written page of the erase block according to the metadata hash table, and reading the data as valid information based on the value.
  • the recyclable mark is also recorded in the metadata.
  • the storage data defragmentation device locks the written pages that have not been locked in the erase block involved in the defragmentation task request; and erases the data according to the metadata hash table. Determine the valid logical block in the write page of the block and extract valid information from it, and add a recyclable mark to the written page; erase the erase block that includes all written pages with the recyclable mark, and Remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life and use of the hard disk Experience.
  • the foregoing embodiment of the storage data organization device uses the embodiment of the storage data organization method to specifically describe the working process of each module. Those skilled in the art can easily think of applying these modules to the In other embodiments of the storage data organization method. Of course, since the steps in the embodiment of the storage data arrangement method can be crossed, replaced, added, and deleted, these reasonable permutations and combinations should also belong to the protection of the present invention for the storage data arrangement device. The scope of the present invention should not be limited to the embodiments described.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A stored data sorting method and device. Said method comprises: within erase blocks involved in a defragmentation task request, locking write pages which have not been locked; determining a valid logic block in the write pages of the erase blocks according to a metadata hash table and extracting valid information therefrom, and adding recyclable tags to the write pages; performing an erase operation on the included erase blocks with all the write pages having recyclable tags, and removing the recyclable tags of all the write pages in the erase blocks and locking same; and determining, according to wear leveling, an idle low-wear erase block to store the valid information. The present invention can solve the problem of hard disk access conflict, and improve the service life of a hard disk and the usage experience.

Description

一种存储数据整理方法与装置Method and device for sorting stored data
本申请要求于2019年10月10日提交中国专利局、申请号为201910957836.3、发明名称为“一种存储数据整理方法与装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 10, 2019, the application number is 201910957836.3, and the invention title is "A method and device for storing data sorting", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本发明涉及数据存储领域,更具体地,特别是指一种存储数据整理方法与装置。The present invention relates to the field of data storage, and more specifically, to a method and device for organizing stored data.
背景技术Background technique
随着SSD(闪存)硬盘成本的不断降低和应用的普及,基于全闪存存储系统的开发也被提上日程。虽然SSD具备快速读写、质量轻、能耗低以及体积小等特点,但同时也存在较为明显缺点,例如,其使用寿命受到限制,即数据存储单元具有擦写次数限制。另外无效数据擦除不能像机械盘那样以比特为单位进行随意改写。针对这些缺点现有技术也存在优化方法,如磨损平衡、垃圾回收和坏块映射等,但会与日常读写产生冲突,影响硬盘寿命和使用体验。With the continuous reduction of the cost of SSD (flash memory) hard drives and the popularization of applications, the development of storage systems based on all-flash memory has also been put on the agenda. Although SSD has the characteristics of fast reading and writing, light weight, low energy consumption, and small size, it also has obvious disadvantages. For example, its service life is limited, that is, the data storage unit has a limit on the number of erasing and writing. In addition, invalid data erasing cannot be rewritten at will in units of bits like a mechanical disk. For these shortcomings, existing technologies also have optimization methods, such as wear leveling, garbage collection, and bad block mapping, etc., but they will conflict with daily reading and writing, affecting the life of the hard disk and the user experience.
针对现有技术中SSD存储优化存在冲突的问题,目前尚无有效的解决方案。There is currently no effective solution to the problem of conflicts in SSD storage optimization in the prior art.
发明内容Summary of the invention
有鉴于此,本发明实施例的目的在于提出一种存储数据整理方法与装置,能够解决硬盘访问冲突问题,提高硬盘工作寿命和使用体验。In view of this, the purpose of the embodiments of the present invention is to provide a method and device for arranging stored data, which can solve the problem of hard disk access conflicts and improve the working life and use experience of the hard disk.
基于上述目的,本发明实施例的第一方面提供了一种存储数据整理方法,响应于接收到碎片整理任务请求而执行以下步骤:Based on the foregoing objectives, the first aspect of the embodiments of the present invention provides a storage data defragmentation method, which executes the following steps in response to receiving a defragmentation task request:
在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Lock the write pages that have not been locked in the erase block involved in the defragmentation task request;
根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;Determine a valid logical block in the write page of the erase block according to the metadata hash table, extract valid information from it, and add a recyclable mark to the written page;
对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;Perform erasure on erase blocks with recyclable marks on all written pages, and remove recyclable marks and locks on all written pages in the erase block;
根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息。A free low-wear erase block is determined according to the wear balance to store effective information.
在一些实施方式中,还包括:响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定以使其不能被碎片整理任务请求锁定。In some embodiments, the method further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
在一些实施方式中,在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面包括:等待已经被输入输出任务请求锁定的写入页面被解锁,并将其视为尚未被锁定的写入页面进行锁定。In some implementations, locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked.
在一些实施方式中,元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;In some embodiments, the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据元数据哈希表获取键位于擦除块的写入页面中的元数据值,并基于值读取作为有效信息的数据。Determining a valid logical block in the write page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining the metadata value of the key located in the write page of the erase block according to the metadata hash table, And read the data as valid information based on the value.
在一些实施方式中,可回收标记也记载于元数据中。In some embodiments, the recyclable mark is also recorded in the metadata.
本发明实施例的第二方面提供了一种存储数据整理装置,包括:A second aspect of the embodiments of the present invention provides a storage data organization device, including:
闪存,包括多个擦除块;Flash memory, including multiple erase blocks;
处理器;和Processor; and
存储器,存储有处理器可运行的程序代码,程序代码在被运行时响应于接收到碎片整理任务请求而执行以下步骤:The memory stores program codes that can be run by the processor. When the program codes are run, they perform the following steps in response to receiving a defragmentation task request:
在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Lock the write pages that have not been locked in the erase block involved in the defragmentation task request;
根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;Determine a valid logical block in the write page of the erase block according to the metadata hash table, extract valid information from it, and add a recyclable mark to the written page;
对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;Perform erasure on erase blocks with recyclable marks on all written pages, and remove recyclable marks and locks on all written pages in the erase block;
根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息。A free low-wear erase block is determined according to the wear balance to store effective information.
在一些实施方式中,步骤还包括:响应于接收到输入输出任务请求而 将所涉及的未被锁定的写入页面锁定以使其不能被所述碎片整理任务请求锁定。In some embodiments, the step further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
在一些实施方式中,在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面包括:等待已经被输入输出任务请求锁定的写入页面被解锁,并将其视为尚未被锁定的写入页面进行锁定。In some implementations, locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked.
在一些实施方式中,元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;In some embodiments, the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据元数据哈希表获取键位于擦除块的写入页面中的元数据值,并基于值读取作为有效信息的数据。Determining a valid logical block in the write page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining the metadata value of the key located in the write page of the erase block according to the metadata hash table, And read the data as valid information based on the value.
在一些实施方式中,可回收标记也记载于元数据中。In some embodiments, the recyclable mark is also recorded in the metadata.
本发明具有以下有益技术效果:本发明实施例提供的存储数据整理方法与装置,通过在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息的技术方案,能够解决硬盘访问冲突问题,提高硬盘工作寿命和使用体验。The present invention has the following beneficial technical effects: the storage data arranging method and device provided by the embodiments of the present invention lock the write pages that have not been locked in the erase block involved in the defragmentation task request; Determine the valid logical block in the write page of the erase block and extract valid information from it, and add a recyclable mark to the written page; perform erasing on the erase block that includes all written pages with recyclable marks , And remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life of the hard disk And experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative work.
图1为本发明提供的存储数据整理方法的流程示意图。Fig. 1 is a schematic flow chart of a method for organizing stored data provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following describes the embodiments of the present invention in detail in conjunction with specific embodiments and with reference to the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all the expressions "first" and "second" in the embodiments of the present invention are used to distinguish two entities with the same name but not the same or parameters that are not the same, as shown in "first" and "second" Only for the convenience of presentation, it should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe this one by one.
基于上述目的,本发明实施例的第一个方面,提出了一种能够解决硬盘访问冲突问题的存储数据整理方法的一个实施例。图1示出的是本发明提供的存储数据整理方法的流程示意图。Based on the foregoing objectives, the first aspect of the embodiments of the present invention proposes an embodiment of a storage data organization method that can solve the problem of hard disk access conflicts. Figure 1 shows a schematic flow chart of a method for organizing stored data provided by the present invention.
所述存储数据整理方法,如图1所示,包括响应于接收到碎片整理任务请求而执行以下步骤:The storage data arranging method, as shown in FIG. 1, includes executing the following steps in response to receiving a defragmentation task request:
步骤S101:在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Step S101: Lock the written pages that have not been locked in the erase block involved in the defragmentation task request;
步骤S103:根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;Step S103: Determine a valid logical block in the written page of the erase block according to the metadata hash table, extract valid information therefrom, and add a recyclable mark to the written page;
步骤S105:对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;Step S105: Perform erasing on the erase block with recyclable marks on all the written pages included, and remove the recyclable marks and locks of all written pages in the erase block;
步骤S107:根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息。Step S107: Determine an idle low-wear erase block to store effective information according to the wear balance.
本发明实施例以SSD最小擦除数据块倍数(block)为单位(如128Mb),进行全闪存储系统的垃圾回收;碎片数据整理则以写入闪存的最小数据块的倍数(page)为单位(如4kb)进行。每次获取一个需要回收的block,把有效的碎片数据依次拷贝到空闲block中。空闲block由存储系统依照闪存盘磨损平衡的原则依次从后端存储阵列中分配。本发明实施例通过设计任务队列的方式保证回收过程与IO(输入输出)互不冲突。In the embodiment of the present invention, the minimum erased data block multiple (block) of the SSD is used as the unit (for example, 128Mb) to perform the garbage collection of the all-flash storage system; the defragmentation of data is based on the multiple (page) of the minimum data block written to the flash memory (Such as 4kb). Each time a block that needs to be reclaimed is obtained, the effective fragmented data is copied to the free block in turn. Idle blocks are allocated from the back-end storage array sequentially by the storage system in accordance with the principle of the wear balance of flash disks. In the embodiment of the present invention, a task queue is designed to ensure that the recovery process and IO (input and output) do not conflict with each other.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。所述计算机程序的实施例,可以达到与之 对应的前述任意方法实施例相同或者相类似的效果。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium, and the program can be executed during execution. At this time, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc. The embodiment of the computer program can achieve the same or similar effect as any of the foregoing corresponding method embodiments.
在一些实施方式中,还包括:响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定以使其不能被碎片整理任务请求锁定。例如,生成任务队列;响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定;响应于接收到的输入输出任务请求所涉及的写入页面被锁定而将输入输出任务请求置于任务队列中。In some embodiments, the method further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request. For example, generating a task queue; in response to receiving an input and output task request, the involved write page that is not locked is locked; in response to the received input and output task request, the write page involved is locked and the input and output task is locked The request is placed in the task queue.
在一些实施方式中,在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面包括:等待已经被输入输出任务请求锁定的写入页面被解锁,并将其视为尚未被锁定的写入页面,通过碎片整理任务请求进行锁定。In some implementations, locking the write pages that have not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not yet locked. The locked write page is locked by the defragmentation task request.
在一些实施方式中,元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据元数据哈希表获取键位于擦除块的写入页面中的元数据值,并基于值读取作为有效信息的数据。In some embodiments, the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values; the write-in of the erasure block according to the metadata hash table Determining a valid logical block in the page and extracting valid information therefrom includes: obtaining the metadata value whose key is located in the written page of the erase block according to the metadata hash table, and reading the data as valid information based on the value.
在一些实施方式中,可回收标记也记载于元数据中。In some embodiments, the recyclable mark is also recorded in the metadata.
根据本发明实施例公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本发明实施例公开的方法中限定的上述功能。上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。The method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the CPU, it executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention. The above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
下面根据具体实施例进一步阐述本发明的实施方式。The implementation of the present invention is further described below based on specific examples.
首先,通过一个hash(哈希)表维护主机IO或GC(碎片整理/垃圾清理)任务请求。Hash查找的K-V(键值对)中,K为数据卷的卷ID与当前IO的LBA,V为正在对当前page执行操作的任务的元数据。每当有主机IO/GC对某个page进行操作时,都需要对当前page(page的元数据)加互斥锁(即锁定)。后来的访问请求需要等到当前操作完成后,才能获取对page操作的权限。这样的互斥任务队列,用于存放主机IO请求与GC互斥的任务请求。First, maintain host IO or GC (defragmentation/garbage cleanup) task requests through a hash (hash) table. In the K-V (key-value pair) searched by Hash, K is the volume ID of the data volume and the LBA of the current IO, and V is the metadata of the task that is performing the operation on the current page. Whenever a host IO/GC operates on a certain page, it is necessary to add a mutex lock (ie, lock) to the current page (the metadata of the page). Subsequent access requests need to wait until the current operation is completed before obtaining the permission to operate the page. Such a mutually exclusive task queue is used to store host IO requests and GC mutually exclusive task requests.
然后,获取系统中需要回收的数据存储空间block。依次遍历block中的 数据读写单元page是否还存在有效数据,若无效则标记为可回收。详细实现步骤如下:Then, obtain the data storage space block that needs to be reclaimed in the system. Traverse the data read-write unit page in the block in turn to see if there is still valid data. If it is invalid, mark it as recyclable. The detailed implementation steps are as follows:
(1)获取一个page并对其加互斥锁,若加锁成功,则查询其元数据中是否存在有效的LBA。若加锁失败,则跳转到第(4)步骤。(1) Get a page and add a mutex lock to it. If the lock is successful, query whether there is a valid LBA in its metadata. If the lock fails, skip to step (4).
(2)若不存在有效的LBA。则在对应的元数据中把当前的page标记为可回收状态。禁止新的主机IO请求对其进行操作。跳转到第(1)步骤,继续查询下一个page是否可回收。(2) If there is no valid LBA. Then mark the current page as recyclable in the corresponding metadata. Prohibit new host IO requests to operate on it. Jump to step (1) and continue to inquire whether the next page can be recycled.
(3)若存在有效的LBA,则认为这个page中的数据有效,并把数据迁移到新的block中,并在元数据中把当前的page标记为可回收状态。禁止新的主机IO请求对其进行操作。跳转到第(1)步骤,继续查询下一个page是否可回收。(3) If there is a valid LBA, the data in this page is considered valid, and the data is migrated to a new block, and the current page is marked as recyclable in the metadata. Prohibit new host IO requests to operate on it. Jump to step (1) and continue to inquire whether the next page can be recycled.
(4)若加锁失败,则说明当前有主机IO请求正在对这个page进行操作。则把GC请求放入等待任务列表。(4) If the lock fails, it means that there is a host IO request currently operating on this page. Then put the GC request into the waiting task list.
(5)等主机IO操作完成,跳转到第(2)步骤。(5) When the host IO operation is completed, skip to step (2).
(6)当整个block回收完成后,则执行block擦除操作,完成一个blcok的回收。(6) When the recovery of the entire block is completed, the block erase operation is executed to complete the recovery of a blcok.
从上述实施例可以看出,本发明实施例提供的存储数据整理方法,通过在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息的技术方案,能够解决硬盘访问冲突问题,提高硬盘工作寿命和使用体验。It can be seen from the above embodiment that the storage data defragmentation method provided by the embodiment of the present invention locks the written pages that have not been locked in the erase block involved in the defragmentation task request; Determine the valid logical block in the write page of the block and extract valid information from it, and add a recyclable mark to the written page; erase the erase block that includes all written pages with the recyclable mark, and Remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life and use of the hard disk Experience.
需要特别指出的是,上述存储数据整理方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于存储数据整理方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在所述实施例之上。It should be particularly pointed out that the steps in the various embodiments of the storage data organization method described above can be crossed, replaced, added, or deleted. Therefore, these reasonable permutations and combinations should also belong to the present invention for the storage data organization method. The protection scope of the present invention should not be limited to the above-mentioned embodiments.
基于上述目的,本发明实施例的第二个方面,提出了一种能够解决硬盘访问冲突问题的存储数据整理装置的一个实施例。存储数据整理装置包 括:Based on the foregoing objectives, the second aspect of the embodiments of the present invention proposes an embodiment of a storage data organization device that can solve the problem of hard disk access conflicts. Storage data sorting devices include:
闪存,包括多个擦除块;Flash memory, including multiple erase blocks;
处理器;和Processor; and
存储器,存储有处理器可运行的程序代码,程序代码在被运行时响应于接收到碎片整理任务请求而执行以下步骤:The memory stores program codes that can be run by the processor. When the program codes are run, they perform the following steps in response to receiving a defragmentation task request:
在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Lock the write pages that have not been locked in the erase block involved in the defragmentation task request;
根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;Determine a valid logical block in the write page of the erase block according to the metadata hash table, extract valid information from it, and add a recyclable mark to the written page;
对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;Perform erasure on erase blocks with recyclable marks on all written pages, and remove recyclable marks and locks on all written pages in the erase block;
根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息。A free low-wear erase block is determined according to the wear balance to store effective information.
在一些实施方式中,步骤还包括:响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定以使其不能被所述碎片整理任务请求锁定。In some embodiments, the step further includes: in response to receiving the input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
在一些实施方式中,在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面包括:等待已经被输入输出任务请求锁定的写入页面被解锁,并将视为尚未被锁定的写入页面进行锁定。In some embodiments, locking the write page that has not been locked in the erase block involved in the defragmentation task request includes: waiting for the write page that has been locked by the input/output task request to be unlocked, and treat it as not being locked yet The write page is locked.
在一些实施方式中,元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据元数据哈希表获取键位于擦除块的写入页面中的元数据值,并基于值读取作为有效信息的数据。In some embodiments, the metadata hash table includes a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values; the write-in of the erasure block according to the metadata hash table Determining a valid logical block in the page and extracting valid information therefrom includes: obtaining the metadata value whose key is located in the written page of the erase block according to the metadata hash table, and reading the data as valid information based on the value.
在一些实施方式中,可回收标记也记载于元数据中。In some embodiments, the recyclable mark is also recorded in the metadata.
从上述实施例可以看出,本发明实施例提供的存储数据整理装置,通过在碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;根据元数据哈希表在擦除块的写入页面中确定有效的逻辑区块并从中提取有效信息,并且向写入页面添加可回收标记;对包括的所有写入页面都带有可回收标记的擦除块执行擦除,并移除擦除块内所有写入页面的可回收标记和锁定;根据磨损平衡确定一空闲的低磨损擦除块来存储有效信息的技 术方案,能够解决硬盘访问冲突问题,提高硬盘工作寿命和使用体验。It can be seen from the foregoing embodiment that the storage data defragmentation device provided by the embodiment of the present invention locks the written pages that have not been locked in the erase block involved in the defragmentation task request; and erases the data according to the metadata hash table. Determine the valid logical block in the write page of the block and extract valid information from it, and add a recyclable mark to the written page; erase the erase block that includes all written pages with the recyclable mark, and Remove the recyclable marks and locks of all written pages in the erase block; determine a free low-wear erase block to store effective information according to the wear balance, which can solve the problem of hard disk access conflicts and improve the working life and use of the hard disk Experience.
需要特别指出的是,上述存储数据整理装置的实施例采用了所述存储数据整理方法的实施例来具体说明各模块的工作过程,本领域技术人员能够很容易想到,将这些模块应用到所述存储数据整理方法的其他实施例中。当然,由于所述存储数据整理方法实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于所述存储数据整理装置也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在所述实施例之上。It should be particularly pointed out that the foregoing embodiment of the storage data organization device uses the embodiment of the storage data organization method to specifically describe the working process of each module. Those skilled in the art can easily think of applying these modules to the In other embodiments of the storage data organization method. Of course, since the steps in the embodiment of the storage data arrangement method can be crossed, replaced, added, and deleted, these reasonable permutations and combinations should also belong to the protection of the present invention for the storage data arrangement device. The scope of the present invention should not be limited to the embodiments described.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments disclosed by the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosure of the embodiments of the present invention as defined by the claims. The functions, steps and/or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any specific order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual forms, they may also be understood as plural unless explicitly limited to a singular number.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that as used herein, unless the context clearly supports exceptions, the singular form "a" is intended to also include the plural form. It should also be understood that "and/or" as used herein refers to any and all possible combinations including one or more items listed in association. The serial numbers of the disclosed embodiments of the foregoing embodiments of the present invention are only for description, and do not represent the superiority or inferiority of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the above embodiments can be implemented by hardware, or by a program to instruct relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, etc.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上所述的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of disclosure (including the claims) of the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention The above embodiments or the technical features in different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as described above, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种存储数据整理方法,其特征在于,应用于闪存,包括响应于接收到碎片整理任务请求而执行以下步骤:A storage data arranging method, which is characterized in that it is applied to a flash memory and includes the following steps in response to receiving a defragmentation task request:
    在所述碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Lock the write pages that have not been locked in the erase block involved in the defragmentation task request;
    根据元数据哈希表在所述擦除块的所述写入页面中确定有效的逻辑区块并从中提取有效信息,并且向所述写入页面添加可回收标记;Determine a valid logical block in the written page of the erase block according to the metadata hash table, extract valid information therefrom, and add a recyclable mark to the written page;
    对包括的所有写入页面都带有所述可回收标记的所述擦除块执行擦除,并移除所述擦除块内所有写入页面的所述可回收标记和锁定;Perform erasing on the erase block with the recyclable mark on all the written pages included, and remove the recyclable mark and lock of all the written pages in the erase block;
    根据磨损平衡确定一空闲的低磨损擦除块来存储所述有效信息。A free low-wear erase block is determined according to the wear balance to store the effective information.
  2. 根据权利要求1所述的方法,其特征在于,还包括:响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定以使其不能被所述碎片整理任务请求锁定。The method according to claim 1, further comprising: in response to receiving an input/output task request, locking the involved write page that is not locked so that it cannot be locked by the defragmentation task request.
  3. 根据权利要求2所述的方法,其特征在于,在所述碎片整理任务请求所涉及的所述擦除块内锁定尚未被锁定的所述写入页面包括:等待已经被所述输入输出任务请求锁定的写入页面被解锁,并将其视为尚未被锁定的所述写入页面进行锁定。The method according to claim 2, wherein locking the write page that has not been locked in the erase block involved in the defragmentation task request comprises: waiting for the input and output task request The locked write page is unlocked, and it is regarded as the write page that has not been locked and locked.
  4. 根据权利要求1所述的方法,其特征在于,所述元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;The method according to claim 1, wherein the metadata hash table comprises a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
    根据所述元数据哈希表在所述擦除块的所述写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据所述元数据哈希表获取所述键位于所述擦除块的所述写入页面中的元数据值,并基于所述值读取作为有效信息的数据。Determining a valid logical block in the written page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining, according to the metadata hash table, that the key is located in the erase block The metadata value written in the page is removed from the block, and data as valid information is read based on the value.
  5. 根据权利要求4所述的方法,其特征在于,所述可回收标记也记载于所述元数据中。The method of claim 4, wherein the recyclable mark is also recorded in the metadata.
  6. 一种存储数据整理装置,其特征在于,包括:A storage data sorting device, which is characterized in that it comprises:
    闪存,包括多个擦除块;Flash memory, including multiple erase blocks;
    处理器;和Processor; and
    存储器,存储有处理器可运行的程序代码,所述程序代码在被运行时 响应于接收到碎片整理任务请求而执行以下步骤:The memory stores program codes that can be run by the processor, and when the program codes are run, they perform the following steps in response to receiving a defragmentation task request:
    在所述碎片整理任务请求所涉及的擦除块内锁定尚未被锁定的写入页面;Lock the write pages that have not been locked in the erase block involved in the defragmentation task request;
    根据元数据哈希表在所述擦除块的所述写入页面中确定有效的逻辑区块并从中提取有效信息,并且向所述写入页面添加可回收标记;Determining a valid logical block in the written page of the erase block according to a metadata hash table, extracting valid information therefrom, and adding a recyclable mark to the written page;
    对包括的所有写入页面都带有所述可回收标记的所述擦除块执行擦除,并移除所述擦除块内所有写入页面的所述可回收标记和锁定;Perform erasing on the erase block with the recyclable mark on all the written pages included, and remove the recyclable mark and lock of all the written pages in the erase block;
    根据磨损平衡确定一空闲的低磨损擦除块来存储所述有效信息。A free low-wear erase block is determined according to the wear balance to store the effective information.
  7. 根据权利要求6所述的装置,其特征在于,所述步骤还包括:响应于接收到输入输出任务请求而将所涉及的未被锁定的写入页面锁定以使其不能被所述碎片整理任务请求锁定。The apparatus according to claim 6, wherein the step further comprises: in response to receiving an input/output task request, locking the involved write page that is not locked so that it cannot be defragmented by the defragmentation task. Request a lock.
  8. 根据权利要求7所述的装置,其特征在于,在所述碎片整理任务请求所涉及的所述擦除块内锁定尚未被锁定的所述写入页面包括:等待已经被所述输入输出任务请求锁定的写入页面被解锁,并将其视为尚未被锁定的所述写入页面进行锁定。7. The device according to claim 7, wherein locking the write page that has not yet been locked in the erase block involved in the defragmentation task request comprises: waiting for it to be requested by the input/output task The locked write page is unlocked, and it is regarded as the write page that has not been locked and locked.
  9. 根据权利要求6所述的装置,其特征在于,所述元数据哈希表包括由作为键的数据卷和逻辑区块地址、与作为值的元数据组成的键值对表;The device according to claim 6, wherein the metadata hash table comprises a key-value pair table composed of data volumes and logical block addresses as keys, and metadata as values;
    根据所述元数据哈希表在所述擦除块的所述写入页面中确定有效的逻辑区块并从中提取有效信息包括:根据所述元数据哈希表获取所述键位于所述擦除块的所述写入页面中的元数据值,并基于所述值读取作为有效信息的数据。Determining a valid logical block in the written page of the erase block according to the metadata hash table and extracting valid information therefrom includes: obtaining, according to the metadata hash table, that the key is located in the erase block The metadata value written in the page is removed from the block, and data as valid information is read based on the value.
  10. 根据权利要求9所述的装置,其特征在于,所述可回收标记也记载于所述元数据中。The device according to claim 9, wherein the recyclable mark is also recorded in the metadata.
PCT/CN2020/092840 2019-10-10 2020-05-28 Stored data sorting method and device WO2021068517A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910957836.3A CN110780814B (en) 2019-10-10 2019-10-10 Stored data sorting method and device
CN201910957836.3 2019-10-10

Publications (1)

Publication Number Publication Date
WO2021068517A1 true WO2021068517A1 (en) 2021-04-15

Family

ID=69384934

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/092840 WO2021068517A1 (en) 2019-10-10 2020-05-28 Stored data sorting method and device

Country Status (2)

Country Link
CN (1) CN110780814B (en)
WO (1) WO2021068517A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780814B (en) * 2019-10-10 2021-08-06 苏州浪潮智能科技有限公司 Stored data sorting method and device
CN111831752B (en) * 2020-07-20 2024-06-04 北京百度网讯科技有限公司 Spatial arrangement method, device and equipment of distributed database and storage medium
CN113448878B (en) * 2021-05-27 2023-02-28 山东英信计算机技术有限公司 LBA processing method, system, storage medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918487A (en) * 2010-03-11 2013-02-06 赛门铁克公司 Systems and methods for garbage collection in deduplicated data systems
CN105528301A (en) * 2015-12-07 2016-04-27 中国人民解放军信息工程大学 NAND Flash memory garbage collection method
CN106527971A (en) * 2016-10-08 2017-03-22 华中科技大学 Method for improving read performance of SSD during junk recovery period
CN106598878A (en) * 2016-12-27 2017-04-26 湖南国科微电子股份有限公司 Method for separating cold data and hot data of solid state disk
US20180307419A1 (en) * 2017-04-20 2018-10-25 Fujitsu Limited Storage control apparatus and storage control method
CN110187826A (en) * 2018-02-22 2019-08-30 三星电子株式会社 Key-value stores equipment and its operating method
CN110780814A (en) * 2019-10-10 2020-02-11 苏州浪潮智能科技有限公司 Stored data sorting method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100206698B1 (en) * 1995-12-22 1999-07-01 윤종용 Erase lock of page unit
KR102139327B1 (en) * 2012-11-15 2020-07-29 삼성전자주식회사 Non-volatile memory device and method of operating the same
US9898404B2 (en) * 2013-07-14 2018-02-20 Cnex Labs Method and apparatus for providing improved garbage collection process in solid state drive
CN106547703B (en) * 2016-10-08 2019-05-14 华中科技大学 A kind of FTL optimization method based on block group structure
US11048624B2 (en) * 2017-04-25 2021-06-29 Samsung Electronics Co., Ltd. Methods for multi-stream garbage collection
CN108958653A (en) * 2018-06-26 2018-12-07 郑州云海信息技术有限公司 A kind of space reclamation method, system and relevant apparatus based on bottom aggregate file
CN109739775A (en) * 2018-11-20 2019-05-10 北京航空航天大学 The flash translation layer (FTL) composting recovery method locked based on the multistage

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918487A (en) * 2010-03-11 2013-02-06 赛门铁克公司 Systems and methods for garbage collection in deduplicated data systems
CN105528301A (en) * 2015-12-07 2016-04-27 中国人民解放军信息工程大学 NAND Flash memory garbage collection method
CN106527971A (en) * 2016-10-08 2017-03-22 华中科技大学 Method for improving read performance of SSD during junk recovery period
CN106598878A (en) * 2016-12-27 2017-04-26 湖南国科微电子股份有限公司 Method for separating cold data and hot data of solid state disk
US20180307419A1 (en) * 2017-04-20 2018-10-25 Fujitsu Limited Storage control apparatus and storage control method
CN110187826A (en) * 2018-02-22 2019-08-30 三星电子株式会社 Key-value stores equipment and its operating method
CN110780814A (en) * 2019-10-10 2020-02-11 苏州浪潮智能科技有限公司 Stored data sorting method and device

Also Published As

Publication number Publication date
CN110780814A (en) 2020-02-11
CN110780814B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
JP6556911B2 (en) Method and apparatus for performing an annotated atomic write operation
WO2021068517A1 (en) Stored data sorting method and device
CN106548789B (en) Method and apparatus for operating stacked tile type magnetic recording equipment
US10176190B2 (en) Data integrity and loss resistance in high performance and high capacity storage deduplication
CN106662981B (en) Storage device, program, and information processing method
US11782632B2 (en) Selective erasure of data in a SSD
US8612719B2 (en) Methods for optimizing data movement in solid state devices
Lee et al. LAST: locality-aware sector translation for NAND flash memory-based storage systems
US9690694B2 (en) Apparatus, system, and method for an address translation layer
US9785547B2 (en) Data management apparatus and method
KR20170038853A (en) Host-managed non-volatile memory
WO2017101505A1 (en) Migration method based on postgresql block storage device
KR20090012821A (en) Method and apparatus for controlling i/o to optimize flash memory
KR101374065B1 (en) Data Distinguish Method and Apparatus Using Algorithm for Chip-Level-Parallel Flash Memory
US20170017405A1 (en) Systems and methods for improving flash-oriented file system garbage collection
Chen et al. Hiflash: A history independent flash device
WO2017101477A1 (en) Postgresql block
Lee et al. Zombie chasing: Efficient flash management considering dirty data in the buffer cache
US10089348B2 (en) Computer device and storage device
Wu et al. Data sorting in flash memory
Aghayev et al. Reconciling LSM-Trees with Modern Hard Drives using BlueFS
US11429519B2 (en) System and method for facilitating reduction of latency and mitigation of write amplification in a multi-tenancy storage drive
Long et al. WA-Zone: Wear-Aware Zone Management Optimization for LSM-Tree on ZNS SSDs
Lee et al. Buffered i/o support for zoned namespace ssd
KR102497213B1 (en) Controller performing secure deletion, Key-value storage device having the same and Operating method of key-value storage device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20873721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20873721

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20873721

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.11.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20873721

Country of ref document: EP

Kind code of ref document: A1