CN106681664B - 一种用于提高固态硬盘使用寿命的管理策略 - Google Patents

一种用于提高固态硬盘使用寿命的管理策略 Download PDF

Info

Publication number
CN106681664B
CN106681664B CN201611247465.2A CN201611247465A CN106681664B CN 106681664 B CN106681664 B CN 106681664B CN 201611247465 A CN201611247465 A CN 201611247465A CN 106681664 B CN106681664 B CN 106681664B
Authority
CN
China
Prior art keywords
bad
page
bad page
flash memory
block
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
CN201611247465.2A
Other languages
English (en)
Other versions
CN106681664A (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.)
Zhiyu Technology Co ltd
Original Assignee
To Reputation Technology (wuhan) 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 To Reputation Technology (wuhan) Co Ltd filed Critical To Reputation Technology (wuhan) Co Ltd
Priority to CN201611247465.2A priority Critical patent/CN106681664B/zh
Publication of CN106681664A publication Critical patent/CN106681664A/zh
Application granted granted Critical
Publication of CN106681664B publication Critical patent/CN106681664B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • 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
    • 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

Landscapes

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

Abstract

本发明提供了一种用于提高固态硬盘使用寿命的管理策略,其特征在于:在出现页写入失败或多次读操作出现不可纠正错误的闪存页时,将该闪存页记录成坏页保存进坏页块,形成坏页表和坏块表,而对于闪存块内的其他没有错误或者瑕疵的页,仍然作为正常数据页进行使用。它能够很大程度地减少存储设备容量的损失,且不会影响固态存储设备的性能。

Description

一种用于提高固态硬盘使用寿命的管理策略
技术领域
本发明涉及固态存储技术领域,尤其涉及一种用于提高固态硬盘使用寿命的管理策略。
背景技术
随着非易失固态存储的广泛应用和被广大用户接受,固态存储设备越来越多的被应用于各种存储领域,已经取代了硬盘在存储业内的主导地位,成为被用户广泛推崇的选择。非易失固态存储有其绝对的优势,例如高性能,低功耗,体积小,容量大更好的稳定性和可靠性。然而,它也有其致命的缺陷:使用寿命。特别是随着工艺的不断进步,NAND闪存介质的使用寿命大幅度的下降,擦除或者写入次数从原来的几万次,下降到目前的500次。正因为其使用寿命的原因,使得用户在选择固态存储时不得不均衡一下使用环境,即使在固态存储的固件中会广泛使用损耗均衡算法,尽量多的提高固态存储的使用寿命,但是,这也只能在一定范围内解决这一短板。因此,如何解决固态存储的寿命问题,已经成了一个对其有很大影响的方向。
传统固态存储的固件管理策略中,当在闪存操作过程中出现擦除失败,写操作失败或者不可纠正的读操作之后,就将整个块作为坏块不再使用,这样每次出现上述这些问题,就会淘汰整个块,随着闪存的块大小越来越大,每次损失的容量也会越来越大。这样固态存储设备的保留区域也会随之减少,因此,可用来进行读写操作的闪存页也会随之减少,写放大系数变大,设备的寿命也会随之受到影响而降低。
发明内容
本发明的目的在于克服上述现有技术的不足之处,而提供一种用于提高固态硬盘使用寿命的管理策略。它能够很大程度地减少存储设备容量的损失,且不会影响固态存储设备的性能。
为了实现上述目的,本发明提供了一种用于提高固态硬盘使用寿命的管理策略,其特征在于:在出现页写入失败或多次读操作出现不可纠正错误的闪存页时,将该闪存页记录成坏页保存进坏页块,形成坏页表和坏块表,而对于闪存块内的其他没有错误或者瑕疵的页,仍然作为正常数据页进行使用。
在上述技术方案的基础上,在坏块表中加入坏页链表,通过坏页链表指向需要淘汰的坏页偏移地址。
在上述技术方案的基础上,所述坏块表包括NAND物理块地址和坏页链表的函数入口,NAND物理块地址用来表明当前坏块是哪一个,坏页链表的函数入口指向坏块内的坏页偏移参数,坏页链表包括一个指针,指向下一个坏页偏移地址,当坏页链表是最后一个时,指针将指向空。
在上述技术方案的基础上,所述固态硬盘为SLC类型的存储介质,在闪存操作页出现了一些瑕疵单元,将当前页记录成坏页映射到坏页表中去。
在上述技术方案的基础上,所述固态硬盘为MLC类型的存储介质,每个单元分布于两个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的两个闪存页记录成坏页映射到坏页表中去。
在上述技术方案的基础上,所述固态硬盘为TLC类型的存储介质,每个单元分布于三个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的三个闪存页记录成坏页映射到坏页表中去。
本发明具有的优点如下:本发明用于提高固态硬盘使用寿命的管理策略提出一种基于闪存的坏页管理方式,对于出现页写入失败或多次读操作出现不可纠正错误的闪存页记录成坏页保存成一个坏页表,而对于块内的其他没有错误或者瑕疵的页,仍然作为正常数据页进行使用。这样每次出现有错误或者瑕疵的页时,不会将整个闪存块作为坏块淘汰不用,每次整个设备的容量只会损失一个或者少数几个页的大小,对于目前闪存块动辄几十MB来讲,能为存储设备很大程度的减少容量的损失。
同时,在坏块表中加入链表,指向需要淘汰的坏页偏移地址,并没有给固件增加多余的开销,不会影响固态存储设备的性能。
附图说明
图1为本发明的坏页链表管理示意图。
图2为SLC类型的存储介质的坏页链表管理示意图。
图3为MLC类型的存储介质的坏页链表管理示意图。
图4为TLC类型的存储介质的坏页链表管理示意图。
具体实施方式
下面结合附图详细说明本发明的实施情况,但它并不构成对本发明的限定,仅做举例而已。同时通过说明,本发明的优点将变得更加清楚和容易理解。
如图1所示,一种用于提高固态硬盘使用寿命的管理策略,其特征在于:在出现页写入失败或多次读操作出现不可纠正错误的闪存页时,将该闪存页记录成坏页保存进坏页块,形成坏页表和坏块表,而对于闪存块内的其他没有错误或者瑕疵的页,仍然作为正常数据页进行使用。在坏块表中加入坏页链表,通过坏页链表指向需要淘汰的坏页偏移地址。其中,坏块表包括NAND物理块地址和坏页链表的函数入口,NAND物理块地址用来表明当前坏块是哪一个,坏页链表的函数入口指向坏块内的坏页偏移参数,坏页链表包括一个指针,指向下一个坏页偏移地址,当坏页链表是最后一个时,指针将指向空。
同时,对于不同工艺的闪存,当闪存操作页中出现瑕疵单元之后,这些单元不仅仅会影响它所存在的物理页,它同时也有可能会影响相邻的其他物理页,一个物理页对于不同类型的闪存也会对应一个两个或者三个闪存页,因此,需要将这些闪存页都映射到坏页表中淘汰不用。在实际应用中,将影响相邻的物理页也淘汰不用需要用两种方式实现,其一,是对介质进行实验和工艺理论分析的经验总结;其二,是固件在操作过程中,一个物理块内一次同时出现多个不在同一个NAND word line上的物理页出现UNECC的状况,就可以判断是瑕疵单元的串扰导致。
实施例一:如图2所示,固态硬盘为SLC类型的存储介质,在闪存操作页出现了一些瑕疵单元,将当前页记录成坏页保存成一个坏页表。对于SLC类型的存储介质,闪存单元只会影响当前页。
实施例二:如图3所示,固态硬盘为MLC类型的存储介质,每个单元分布于两个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的两个闪存页都写入坏页表中去。对于MLC类型的存储介质,闪存单元存在高低位即MSB和LSB,分布于两个不同的闪存页,因此也会影响这些瑕疵单元的另一个位所在的页,在进行坏页管理时,将瑕疵单元对应的两个闪存页都写入坏页表中去。
实施例三:如图4所示,固态硬盘为TLC类型的存储介质,每个单元分布于三个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的三个闪存页都写入坏页表中去。对于TLC类型的存储介质,每个闪存单元对应三个位,即MSB,CSB和LSB,这意味着每个单元分布于三个不同的闪存页,因此当一个闪存页在操作中遇到瑕疵单元,也必然会对另外两个页产生影响。所以,在坏页管理时,对于TLC类型的存储介质,需要把瑕疵单元对应的三个页都映射到坏页表中去。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明精神和原则之内所做的任何修改、等同替换和改进等,均包含在本发明的保护范围之内。

Claims (1)

1.一种用于提高固态硬盘使用寿命的管理策略,其特征在于:在出现页写入失败或多次读操作出现不可纠正错误的闪存页时,将该闪存页记录成坏页保存进坏页块,形成坏页表和坏块表,而对于闪存块内的其他没有错误或者瑕疵的页,仍然作为正常数据页进行使用;
在坏块表中加入坏页链表,通过坏页链表指向需要淘汰的坏页偏移地址,所述坏块表包括NAND物理块地址和坏页链表的函数入口,NAND物理块地址用来表明当前坏块是哪一个,坏页链表的函数入口指向坏块内的坏页偏移参数,坏页链表包括一个指针,指向下一个坏页偏移地址,当坏页链表是最后一个时,指针将指向空;
所述固态硬盘为SLC类型的存储介质,在闪存操作页出现了一些瑕疵单元,将当前页记录成坏页映射到一个坏页表;
所述固态硬盘为MLC类型的存储介质,每个单元分布于两个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的两个闪存页记录成坏页映射到坏页表中去;
所述固态硬盘为TLC类型的存储介质,每个单元分布于三个不同的闪存页,在进行坏页管理时,将瑕疵单元对应的三个闪存页记录成坏页映射到坏页表中去。
CN201611247465.2A 2016-12-29 2016-12-29 一种用于提高固态硬盘使用寿命的管理策略 Active CN106681664B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611247465.2A CN106681664B (zh) 2016-12-29 2016-12-29 一种用于提高固态硬盘使用寿命的管理策略

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611247465.2A CN106681664B (zh) 2016-12-29 2016-12-29 一种用于提高固态硬盘使用寿命的管理策略

Publications (2)

Publication Number Publication Date
CN106681664A CN106681664A (zh) 2017-05-17
CN106681664B true CN106681664B (zh) 2020-01-07

Family

ID=58873511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611247465.2A Active CN106681664B (zh) 2016-12-29 2016-12-29 一种用于提高固态硬盘使用寿命的管理策略

Country Status (1)

Country Link
CN (1) CN106681664B (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112805686B (zh) * 2018-10-15 2023-06-06 华为技术有限公司 一种存储块处理方法及相关设备
CN109582239B (zh) * 2018-12-03 2022-02-18 郑州云海信息技术有限公司 一种ssd坏块表的保存方法、装置、设备以及存储介质
CN111258507A (zh) * 2020-02-11 2020-06-09 上海威固信息技术股份有限公司 一种提高3d ct tlc nand闪存存储设备可靠性的方法

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339537A (zh) * 2008-08-14 2009-01-07 四川登巅微电子有限公司 一种以页为单位的nand闪存管理方法
CN102622306A (zh) * 2012-02-21 2012-08-01 中颖电子股份有限公司 存储装置的坏块管理方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9299457B2 (en) * 2014-02-23 2016-03-29 Qualcomm Incorporated Kernel masking of DRAM defects
US9431120B1 (en) * 2015-03-23 2016-08-30 Sandisk Technologies, Llc Memory die and method for efficient use of data latches in serving mixed traffic loads

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339537A (zh) * 2008-08-14 2009-01-07 四川登巅微电子有限公司 一种以页为单位的nand闪存管理方法
CN102622306A (zh) * 2012-02-21 2012-08-01 中颖电子股份有限公司 存储装置的坏块管理方法

Also Published As

Publication number Publication date
CN106681664A (zh) 2017-05-17

Similar Documents

Publication Publication Date Title
US11347403B2 (en) Extending the life of a solid state drive by using MLC flash blocks in SLC mode
US9645895B2 (en) Data storage device and flash memory control method
US8407410B2 (en) Wear-leveling and bad block management of limited lifetime memory devices
KR101343237B1 (ko) 메모리 블록 선택
US8037232B2 (en) Data protection method for power failure and controller using the same
US8949507B2 (en) Method for performing block management, and associated memory device and controller thereof
US8407397B2 (en) Block management method for flash memory and controller and storage system using the same
US8838876B2 (en) Translation layer in a solid state storage device
US9189313B2 (en) Memory system having NAND-type flash memory and memory controller with shift read controller and threshold voltage comparison module
US8341336B2 (en) Region-based management method of non-volatile memory
US20160011815A1 (en) Solid-state mass storage media having data volumes with different service levels for different data types
US9213629B2 (en) Block management method, memory controller and memory stoarge apparatus
US9141476B2 (en) Method of storing system data, and memory controller and memory storage apparatus using the same
US10126970B2 (en) Paired metablocks in non-volatile storage device
KR101090394B1 (ko) 예비 영역을 유동적으로 관리하는 반도체 스토리지 시스템 및 그 제어 방법
US8634243B2 (en) Data writing method and data storage device
US20120246394A1 (en) Flash Memory Device and Data Writing Method for a Flash Memory
CN107544749B (zh) 数据储存媒体的损坏数据行的筛选方法
CN106681664B (zh) 一种用于提高固态硬盘使用寿命的管理策略
US20090024787A1 (en) Data writing method and apparatus
US20150039805A1 (en) System and Method to Emulate an Electrically Erasable Programmable Read-Only Memory
CN109785891B (zh) 一种获取NAND Flash存储器浅擦除特性规律的方法
US9778862B2 (en) Data storing method for preventing data losing during flush operation, memory control circuit unit and memory storage apparatus
CN106326135B (zh) 一种平移非易失性存储器nvm的数据的方法及装置
US10783034B2 (en) Memory system and control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 430070 Hubei city of Wuhan province Wuhan East Lake New Technology Development Zone Road No. two high Guan Nan Industrial Park No. 2 building 2-3 floor West

Applicant after: EXASCEND TECHNOLOGY (WUHAN) CO.,LTD.

Address before: 430223 Hubei city of Wuhan province Wuhan East Lake New Technology Development Zone Road No. two high Guan Nan Industrial Park No. 2 building 2-3 floor West

Applicant before: MEMORIGHT (WUHAN) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A management strategy for improving the service life of solid state hard disk

Effective date of registration: 20210629

Granted publication date: 20200107

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: EXASCEND TECHNOLOGY (WUHAN) Co.,Ltd.

Registration number: Y2021420000059

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20221031

Granted publication date: 20200107

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: EXASCEND TECHNOLOGY (WUHAN) CO.,LTD.

Registration number: Y2021420000059

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 430000 west of 2-3 / F, No.2 factory building, Guannan Industrial Park, No.1 Gaoxin 2nd Road, Wuhan Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: Zhiyu Technology Co.,Ltd.

Address before: 430070 Wuhan, Hubei Wuhan East Lake New Technology Development Zone, high-tech two Road No. 1 South Guan Industrial Park 2 factory 2-3 floor West.

Patentee before: EXASCEND TECHNOLOGY (WUHAN) CO.,LTD.