CN101470664B - 一种应用于mlc介质的nand闪存的管理方法 - Google Patents

一种应用于mlc介质的nand闪存的管理方法 Download PDF

Info

Publication number
CN101470664B
CN101470664B CN200710033029XA CN200710033029A CN101470664B CN 101470664 B CN101470664 B CN 101470664B CN 200710033029X A CN200710033029X A CN 200710033029XA CN 200710033029 A CN200710033029 A CN 200710033029A CN 101470664 B CN101470664 B CN 101470664B
Authority
CN
China
Prior art keywords
sector
flash memory
data block
nand flash
space information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200710033029XA
Other languages
English (en)
Other versions
CN101470664A (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.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics 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 Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN200710033029XA priority Critical patent/CN101470664B/zh
Publication of CN101470664A publication Critical patent/CN101470664A/zh
Application granted granted Critical
Publication of CN101470664B publication Critical patent/CN101470664B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Read Only Memory (AREA)

Abstract

本发明公开了一种应用于MLC介质的NAND闪存的管理方法,该闪存使用每个数据块的最后一个扇区作为保留扇区来存储该数据块的所有其他扇区的备用空间信息。当所述数据块的所有其他扇区写满的情况下,才将所有其他扇区的备用空间信息写入所述的保留扇区。这样,在系统驱动加载时,只需要扫描每个数据块的最后一个扇区就可以获取所有扇区的备用空间信息,从而加快了扫描速度。

Description

一种应用于MLC介质的NAND闪存的管理方法
技术领域
本发明涉及一种存储设备的管理方法,尤其是涉及一种应用于MLC(Multi-Level Cell,多层单元)介质的NAND闪存的管理方法。
背景技术
近年来,随着多媒体手持设备的普及,对移动存储设备的容量要求也越来越高,NAND闪存由于其相对于NOR闪存的大容量以及更快的擦除和写入速度得到了广泛的应用。而随着使用MLC技术的NAND闪存的出现,使存储设备的成本更低,但同时由于MLC技术的特性,如在数据块内不允许出现从高地址到低地址的逆序访问,寿命较短容易出现坏块等,在使用中又存在诸如逆序操作、大容量的NAND闪存扫描速度慢等一系列的问题。
发明内容
为克服上述不足,本发明的目的在于提供一种应用于MLC介质的NAND闪存的管理方法,加快扫描速度。
为实现上述目的,本发明包括以下内容:一种应用于MLC介质的NAND闪存的管理方法,该闪存使用每个数据块的最后一个扇区作为保留扇区来存储该数据块的所有其他扇区的备用空间信息。
在系统驱动加载时或者需要获取一部分扇区的信息时,为了获取每一个扇区的信息,需要扫描所有的扇区,这样对于大容量的NAND闪存设备来说,可能需要几十秒的时间,为了减少扫描时的时间消耗,以数据块为单位,保留每个数据块的最后一个扇区作为保留扇区来存储此数据块上所有其他扇区的备用空间信息。
当所述数据块的所有其他扇区写满的情况下,才将所有其他扇区的备用空间信息写入所述的保留扇区。这样,在系统驱动加载时,只需要扫描每个数据块的最后一个扇区就可以获取所有扇区的备用空间信息,从而加快了扫描速度。
附图说明
图1为NAND闪存的数据组织和保留扇区的组织。
图中字母的含义如下:
BlockX:第X个数据块;
SectorX:第X个扇区;
Sector X′s Spare:第X个扇区的备用空间信息。
具体实施方式
以图1的NAND闪存为例,其包含2048个数据块,每一个数据块又包括128个扇区,一个扇区大小为2112字节,分为2048字节的数据区,和64字节的备用空间区。
如图1所示,第3个数据块Block3保留最后1个扇区Sector 127作为保留扇区,当Block3中除保留Sector 127外的所有的127个扇区都被写入数据后,才在Sector 127中存储Block3中所有扇区的备用空间信息,按照扇区的地址顺序存储。在需要Block3中任何扇区的备用空间信息时,可以直接访问保留Sector127。这样,对一个数据块,要获取所有备用空间信息,只需要读1个扇区即本发明所述的保留扇区。如果不采用保留扇区的方式,需要访问128次。因此,本发明的应用大大减小了需读写的次数,这在频繁访问闪存的备用空间信息的操作中,如扫描时尤其有用。

Claims (2)

1.一种应用于MLC介质的NAND闪存的管理方法,其特征在于,该闪存使用每个数据块的最后一个扇区作为保留扇区来存储该数据块的所有其他扇区的备用空间信息,在系统驱动加载时,扫描每个数据块的所述保留扇区就可以获取所有扇区的备用空间信息。
2.根据权利要求1所述的一种应用于MLC介质的NAND闪存的管理方法,其特征在于,当所述数据块的所有其他扇区写满的情况下,才将所有其他扇区的备用空间信息写入所述的保留扇区。
CN200710033029XA 2007-12-29 2007-12-29 一种应用于mlc介质的nand闪存的管理方法 Active CN101470664B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710033029XA CN101470664B (zh) 2007-12-29 2007-12-29 一种应用于mlc介质的nand闪存的管理方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710033029XA CN101470664B (zh) 2007-12-29 2007-12-29 一种应用于mlc介质的nand闪存的管理方法

Publications (2)

Publication Number Publication Date
CN101470664A CN101470664A (zh) 2009-07-01
CN101470664B true CN101470664B (zh) 2012-04-18

Family

ID=40828145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710033029XA Active CN101470664B (zh) 2007-12-29 2007-12-29 一种应用于mlc介质的nand闪存的管理方法

Country Status (1)

Country Link
CN (1) CN101470664B (zh)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075211A (zh) * 2007-06-08 2007-11-21 马彩艳 基于sector访问的flash存储器的存储管理

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075211A (zh) * 2007-06-08 2007-11-21 马彩艳 基于sector访问的flash存储器的存储管理

Also Published As

Publication number Publication date
CN101470664A (zh) 2009-07-01

Similar Documents

Publication Publication Date Title
US20240152288A1 (en) Flash memory controller
US8190811B2 (en) Defragmentation of solid state memory
US8892812B2 (en) Flash memory device and data writing method for a flash memory
US7076598B2 (en) Pipeline accessing method to a large block memory
US7908423B2 (en) Memory apparatus, and method of averagely using blocks of a flash memory
US20090310412A1 (en) Methods of data management in non-volatile memory devices and related non-volatile memory systems
US8214581B2 (en) System and method for cache synchronization
TW201517051A (zh) 具有揮發性及非揮發性記憶體之混合固態記憶體系統
US9075707B2 (en) Data writing method and data storage device
US9082491B2 (en) Data writing method and data storage device
CN111061649B (zh) 一种存储器的存储空间自适应分配方法
CN111338562B (zh) 数据存储装置与数据处理方法
CN102981969A (zh) 重复数据删除的方法及其固态硬盘
US20120131264A1 (en) Storage device
US20090319721A1 (en) Flash memory apparatus and method for operating the same
CN1236386C (zh) 存储器件及存储控制方法
CN112347001B (zh) 闪存垃圾回收的校验方法、装置及电子设备
US20090144488A1 (en) Memory card and method for handling data updating of a flash memory
US20090125668A1 (en) Management of erased blocks in flash memories
US8583858B2 (en) Nonvolatile memory controller and nonvolatile storage device
CN111966281A (zh) 数据储存装置与数据处理方法
CN101470664B (zh) 一种应用于mlc介质的nand闪存的管理方法
US20100268870A1 (en) Data storage device and data storage system including the same
CN109243517B (zh) 一种用于NAND Flash不良区块的查找方法、固态硬盘
US8832358B2 (en) Data writing method, memory controller and memory storage apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 510663 301-303, 401-402, zone C1, 182 science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 301-303 401-402, zone C1, No. 182, science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 301-303, 401-402, zone C1, No. 182, science Avenue, Science City, Guangzhou high tech Industrial Development Zone

Patentee before: Guangzhou Ankai Microelectronics Co.,Ltd.

CP02 Change in the address of a patent holder