WO2019205447A1 - Procédé d'amélioration de récupération d'espace de mémoire flash - Google Patents

Procédé d'amélioration de récupération d'espace de mémoire flash Download PDF

Info

Publication number
WO2019205447A1
WO2019205447A1 PCT/CN2018/105862 CN2018105862W WO2019205447A1 WO 2019205447 A1 WO2019205447 A1 WO 2019205447A1 CN 2018105862 W CN2018105862 W CN 2018105862W WO 2019205447 A1 WO2019205447 A1 WO 2019205447A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash
flash memory
data
memory
block
Prior art date
Application number
PCT/CN2018/105862
Other languages
English (en)
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 WO2019205447A1 publication Critical patent/WO2019205447A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7205Cleaning, compaction, garbage collection, erase control

Definitions

  • the present invention relates to the field of flash memory technology, and in particular to a method for improving flash garbage data recovery.
  • Flash memory is a long-lived non-volatile memory that retains stored data information in the event of a power outage. Data deletion is not in a single byte but in a fixed block. The block size is typically 256KB to 20MB. Flash memory is a variant of electronically erasable read-only memory (EEPROM). Unlike flash memory, EEPROM can be erased and rewritten at the byte level instead of the entire chip eraser, while most chips in flash require a block erase. except. Since data can still be saved when it is powered off, flash memory is often used to save setup information, such as saving data in a computer's BIOS (basic program), PDA (personal digital assistant), digital camera, and so on.
  • BIOS basic program
  • PDA personal digital assistant
  • Flash memory is a non-disappearing memory device that holds data. Data is lost after losing power.
  • Common three-level cells TLC that store three bits
  • MLC multi-level cell
  • SLC single-level cell
  • flash garbage collection Since flash cannot write data repeatedly after writing data, additional flash blocks must be used to organize the written data. This process is called flash garbage collection. There are three cases of garbage collection. The first type is called the replacement mechanism. The new flash data completely replaces the old flash block. The second type is the partial replacement mechanism. The new data flash block only needs to be supplemented by the old flash block. The third type is the non-replacement mechanism, the newly generated data flash block, and all the data content is taken from several old flash blocks. The first type is the most efficient, and the third type takes the most time and cost.
  • a flash translation layer is needed in the flash memory to implement a virtual block device on the flash chip, and the logical address is mapped to the physical address of the flash memory through the mapping table.
  • garbage collection mechanisms it is necessary to quickly find valid data in the block and move to a new flash block.
  • the traditional method must read each position in the block and compare the image table to find out whether the content of the mapping table is met, and whether the valid data or invalid data is judged. This method takes a lot of reading time and affects the overall efficiency.
  • a method for improving flash garbage data recovery comprising a memory control chip, wherein the memory control chip is provided with a flash instruction control device, a flash physical address table, and a data buffer,
  • the data buffer is connected to a plurality of external flash memories;
  • the plurality of flash memories include a first flash memory, a second flash memory, a third flash memory, an Nth flash memory, and N is an integer greater than 3.
  • the flash memory has 1024 blocks, each block has 256 pages, and each page is composed of 32 sectors.
  • the method comprises the following steps:
  • the instruction control device of the memory control chip moves the data in the buffer to the new flash page
  • the invention has the beneficial effects that the invention substantially reduces the time of garbage collection by flash physical address table. Quickly find the garbage block of the garbage collection and only move the minimum amount of flash data. Complete a single garbage collection.
  • Figure 1 is a schematic block diagram of the present invention
  • Figure 2 is a flow chart of the present invention.
  • the present invention provides a technical solution: a method for improving flash garbage data recovery, comprising a memory control chip 1 , wherein the memory control chip 1 is provided with a flash instruction control device 2 , a flash physical address table 3 and data a buffer 4, the data buffer 4 is connected to a plurality of external flash memories; the plurality of flash memories include a first flash memory 5, a second flash memory 6, a third flash memory 7, an Nth flash memory, and N is an integer greater than 3; There are 1024 blocks, each block has 256 pages, and each page is composed of 32 sectors; assuming that a flash block has 256 pages, the flash physical address table can be 4096 bits or a flash page as a unit. 1 is valid data and 0 is invalid data.
  • the memory control chip has a flash command control device through which commands can be issued to control the flash chip.
  • the method for improving flash garbage data recovery includes the following steps:
  • the instruction control device of the memory control chip moves the data in the buffer to the new flash page
  • the actual valid data has 64, and the flash physical address table is in units of one flash page.
  • 256 blocks must be read when garbage collection is performed, and then the logical address is mapped to the flash physics.
  • the address mapping table determines whether to move to a new flash block. In this way, the entire old flash block data can be moved by reading the actual effective position 128 times. Save four times the time. The less valid data in a flash block, the more time is saved.
  • the present invention substantially reduces the time for garbage collection by flashing a physical address table. Quickly find the garbage block of the garbage collection and only move the minimum amount of flash data. Complete a single garbage collection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)

Abstract

L'invention concerne un procédé d'amélioration de la récupération d'espace de mémoire flash, comprenant : une puce de commande de mémoire (1). La puce de commande de mémoire (1) est pourvue d'un dispositif de commande d'instruction de mémoire flash (2), d'une table d'adresses physiques de mémoire flash (3) et d'un tampon de données (4). Le tampon de données (4) est connecté à une pluralité de mémoires flash externes, qui comprennent une première mémoire flash (5), une deuxième mémoire flash (6), une troisième mémoire flash (7) et jusqu'à une nième mémoire flash, N Étant un nombre entier supérieur à 3. En utilisant la table d'adresses physiques de mémoire flash (3), le procédé réduit significativement le temps nécessaire pour effectuer une récupération d'espace et peut localiser rapidement un bloc de mémoire flash pour ladite récupération d'espace. De cette manière, une tâche de récupération d'espace unique peut être achevée en ne déplaçant qu'une quantité minimale de données dans une mémoire flash.
PCT/CN2018/105862 2018-04-27 2018-09-14 Procédé d'amélioration de récupération d'espace de mémoire flash WO2019205447A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810394412.6 2018-04-27
CN201810394412.6A CN108874682A (zh) 2018-04-27 2018-04-27 一种提升闪存垃圾数据回收方法

Publications (1)

Publication Number Publication Date
WO2019205447A1 true WO2019205447A1 (fr) 2019-10-31

Family

ID=64326790

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105862 WO2019205447A1 (fr) 2018-04-27 2018-09-14 Procédé d'amélioration de récupération d'espace de mémoire flash

Country Status (2)

Country Link
CN (1) CN108874682A (fr)
WO (1) WO2019205447A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052193B (zh) * 2020-09-28 2023-04-07 成都佰维存储科技有限公司 一种垃圾回收方法、装置、可读存储介质及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005405A1 (en) * 2010-06-30 2012-01-05 William Wu Pre-Emptive Garbage Collection of Memory Blocks
CN104166634A (zh) * 2014-08-12 2014-11-26 华中科技大学 一种固态盘系统中的映射表缓存管理方法
CN104268095A (zh) * 2014-09-24 2015-01-07 上海新储集成电路有限公司 一种存储器及基于该存储器进行数据读/写操作的方法
CN105528301A (zh) * 2015-12-07 2016-04-27 中国人民解放军信息工程大学 一种NAND Flash闪存垃圾回收方法
CN107391392A (zh) * 2017-07-21 2017-11-24 重庆大学 一种基于闪存存储设备并行特征的垃圾回收优化方法
CN107797772A (zh) * 2017-11-27 2018-03-13 郑州云海信息技术有限公司 一种基于闪存介质的垃圾回收系统及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005405A1 (en) * 2010-06-30 2012-01-05 William Wu Pre-Emptive Garbage Collection of Memory Blocks
CN104166634A (zh) * 2014-08-12 2014-11-26 华中科技大学 一种固态盘系统中的映射表缓存管理方法
CN104268095A (zh) * 2014-09-24 2015-01-07 上海新储集成电路有限公司 一种存储器及基于该存储器进行数据读/写操作的方法
CN105528301A (zh) * 2015-12-07 2016-04-27 中国人民解放军信息工程大学 一种NAND Flash闪存垃圾回收方法
CN107391392A (zh) * 2017-07-21 2017-11-24 重庆大学 一种基于闪存存储设备并行特征的垃圾回收优化方法
CN107797772A (zh) * 2017-11-27 2018-03-13 郑州云海信息技术有限公司 一种基于闪存介质的垃圾回收系统及方法

Also Published As

Publication number Publication date
CN108874682A (zh) 2018-11-23

Similar Documents

Publication Publication Date Title
US10732855B2 (en) Storage system having a host that manages physical data locations of a storage device
US20180260317A1 (en) Method for managing the copying and storing of data in garbage collection, memory storage device and memory control circuit unit using the same
JP4729062B2 (ja) メモリシステム
US8037232B2 (en) Data protection method for power failure and controller using the same
US8250286B2 (en) Block management method, and storage system and controller using the same
US8606987B2 (en) Data writing method for flash memory and controller using the same
US8621139B2 (en) Data writing method for writing data into block of multi-level cell NAND flash memory by skipping a portion of upper page addresses and storage system and controller using the same
US8001317B2 (en) Data writing method for non-volatile memory and controller using the same
US8055873B2 (en) Data writing method for flash memory, and controller and system using the same
US20140298088A1 (en) Data conditioning to improve flash memory reliability
TWI399644B (zh) 非揮發記憶體區塊管理方法
US20120173795A1 (en) Solid state drive with low write amplification
US20100042774A1 (en) Block management method for flash memory, and storage system and controller using the same
TWI451249B (zh) 用於非揮發性記憶體的資料合併方法、控制器與儲存裝置
TW201518945A (zh) 資料寫入方法、記憶體控制電路單元與記憶體儲存裝置
TW201917581A (zh) 管理快閃記憶體模組的方法及相關的快閃記憶體控制器
US9122583B2 (en) Memory controller and memory storage device and data writing method
US8892816B1 (en) System and method for writing data to a memory
US9383929B2 (en) Data storing method and memory controller and memory storage device using the same
TWI692688B (zh) 快閃記憶體控制器及相關電子裝置
TWI540428B (zh) 資料寫入方法、記憶體控制器與記憶體儲存裝置
WO2019205447A1 (fr) Procédé d'amélioration de récupération d'espace de mémoire flash
TWI521346B (zh) 用於非揮發性記憶體的資料合併方法、控制器與儲存裝置
US20060059296A1 (en) Emulating small block size of flash memory
CN103488579B (zh) 存储器管理方法、存储器控制器与存储器储存装置

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: 18915957

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: 18915957

Country of ref document: EP

Kind code of ref document: A1