CN105280239B - A kind of method and apparatus of dynamic implement solid state hard disc ECC check code - Google Patents

A kind of method and apparatus of dynamic implement solid state hard disc ECC check code Download PDF

Info

Publication number
CN105280239B
CN105280239B CN201510695468.1A CN201510695468A CN105280239B CN 105280239 B CN105280239 B CN 105280239B CN 201510695468 A CN201510695468 A CN 201510695468A CN 105280239 B CN105280239 B CN 105280239B
Authority
CN
China
Prior art keywords
ecc
code
check
solid state
state hard
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
CN201510695468.1A
Other languages
Chinese (zh)
Other versions
CN105280239A (en
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.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics 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 Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN201510695468.1A priority Critical patent/CN105280239B/en
Publication of CN105280239A publication Critical patent/CN105280239A/en
Application granted granted Critical
Publication of CN105280239B publication Critical patent/CN105280239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The method and apparatus that the invention discloses a kind of dynamic implement solid state hard disc ECC check code, sets ECC check code check unit for solid hard disk storage system;Multistage ECC check code check is preset for solid hard disk storage system;In solid-state hard disk controller, record each ECC check code check unit presently used ECC check code check by ECC check rate tables;Solid state hard disc life cycle early stage, use the ECC check code check that ECC code length is shorter;When storage medium starts to become unreliable, progressively use the ECC check code check that ECC code length is longer;Until the late period of solid state hard disc life cycle, ECC check code check unit just can use the ECC check code check that ECC code length is the longest.The present invention can be on the premise of not losing solid state hard disc reliability, by dynamically controlling ECC check code length, in making solid state hard disc life cycle in early days, it is obtained in that more user data storage, reduce solid state disk write to amplify, improve solid state disk read-write efficiency, extend solid state hard disc service life.

Description

A kind of method and apparatus of dynamic implement solid state hard disc ECC check code
Technical field
The method and apparatus that the present invention relates to a kind of dynamic implement solid state hard disc ECC check code.
Background technology
Solid state hard disc, due to plurality of advantages such as its performance are high, reliability is high, has become as current most popular storage device, and application is more and more extensive.And the essential reason that solid state hard disc has this advantage is owing to which employs the physical form that the signal of telecommunication stores as information.But the storage medium of the signal of telecommunication also has some shortcomings that it is intrinsic, one of them the biggest problem is exactly reliability the instability that the signal of telecommunication stores on a storage medium.And due to the development of solid state hard disc industry, the storage medium in the urgent need to low cost is the most commercial, increasing unstable storage medium is used on solid state hard disc.This situation causes the data being stored on solid state hard disc the most all may make mistakes.
Due to the existence of the problems referred to above, solid state hard disc commonly uses the mode of the ECC check code that user data adds certain length to ensure the reliability of data.I.e. user data through solid-state hard disk controller when, by controller to incoming data by certain unit plus ECC check code.Owing to ECC check code has correction wrong data, so data read-out when, controller can obtain correct data by ECC check code.Its main occupation mode such as Fig. 1.
Meanwhile, the mathematical characteristic of ECC check code determines: for the initial data of same length, if ECC check code is the longest, then the ability of error correction is the strongest, and the ability of mistake is bigger i.e. to allow initial data to occur.ECC check code length and relation such as Fig. 2 of error correcting capability.
Above-mentioned existing scheme effectively solves the data unreliability problem that solid state hard disc storage medium instability is brought.But also bring some negative effects, i.e. need the solid state hard disc certain additional space of storage medium consumption to deposit ECC check code, so this adds somewhat to solid state hard disc write amplification, the most just have impact on the data effective bandwidth of solid state hard disc, add the abrasion of solid state hard disc, reduce the life-span of solid state hard disc.When solid state hard disc has certain user data, on storage medium, the actual state of storage is as shown in Figure 3.
Due to solid state hard disc storage medium itself, the possibility of its corrupt data, As time goes on, meeting is more and more higher.The possibility of corrupt data is with the relation of time as shown in Figure 4.
Summary is got up, and currently existing scheme is through consuming certain memory space to deposit ECC, to ensure the reliability of data.But the code length of ECC check data arranges too short, error correcting capability can be made to decline, reduce the life cycle of solid state hard disc;Code length arranges long, in the life early stage of solid state hard disc, can waste more memory space, bring extra negative effect.
Summary of the invention
The technical problem to be solved is, not enough for prior art, it is provided that the method and apparatus of a kind of dynamic implement solid state hard disc ECC check code.
For solving above-mentioned technical problem, the technical solution adopted in the present invention is: a kind of method of dynamic implement solid state hard disc ECC check code, comprises the following steps:
1) be solid hard disk storage system set ECC check code check unit, using have identical ECC check code length memory space as an ECC check code check unit;
2) it is that solid hard disk storage system presets multistage ECC check code check;
3) in solid-state hard disk controller, each ECC check code check unit presently used ECC check code check is recorded by ECC check rate tables;
4) when solid state hard disc works, the interpolation/verification of ECC check code is carried out with the benchmark that is recorded as of ECC check rate tables;
In above-mentioned steps 4) carry out the interpolation/verification of ECC check code after; along with the working time of solid state hard disc increases; solid state hard disc becomes more and more unreliable; therefore need the rank improving ECC to protect data; i.e. in ECC check rate tables; use ECC check code length more higher leveled ECC check code check (such as whenever the ECC error that appearance can not be entangled; or when the condition that an ECC check code check unit is changed triggers; after i.e. improving one-level ECC check code check, carry out the interpolation/verification of ECC check code).
Present invention also offers the device of a kind of dynamic implement solid state hard disc ECC check code, including:
ECC Code rate tables: be used for recording the ECC code rate that current memory space uses, the base unit calculated using ECC code rate as ECC, is also that base unit and the result of dynamically adjustment embodies carrier simultaneously;
ECC Code generation module: be used for being written of data, produces protection and is written of the ECC check code of data reliability, according to the setting of ECC code rate tables, produce the ECC check code of multiple different length;
ECC Code correction verification module: be used for the ECC check code subsidiary according to the data read, the data that verification is read are the most correct, and ECC code correction verification module mode of operation is corresponding with ECC code generation module, and corresponding relation produces association by ECC code rate tables;
Memory space ageing state Observation Blocks: for observing the state of solid state hard disc memory space, judge the ageing state in each space in solid state hard disc, and when the condition that an ECC code rate unit is changed triggers, the code check changing the corresponding unit in ECC code rate tables encodes;
Solid state hard disc memory space: be used to data, the physical storage medium of ECC check code information that storage is read.
Compared with prior art, the had the beneficial effect that present invention of the present invention using have identical ECC check code length memory space as an ECC check code check unit, and record each ECC check code check unit presently used ECC check code check by ECC check rate tables, therefore without depositing ECC by consumption memory space, ensure that the reliability of data, reduce the abrasion of solid state hard disc, extend the service life of solid state hard disc;Using the ECC check code check that ECC code length is shorter solid state hard disc life cycle early stage, the probability made mistakes due to the early time data of solid state hard disc life cycle is relatively low, has the most both saved memory space, has not the most reduced the reliability of data;To the late period of solid state hard disc life cycle, just there will be the longest ECC code rate and occur on a large scale, this achieves the balance in data reliability and service efficiency to the full extent;The present invention can be on the premise of not losing solid state hard disc reliability, by dynamically controlling ECC check code length, in making solid state hard disc life cycle in early days, it is obtained in that more user data storage, reduce solid state disk write to amplify, improve solid state disk read-write efficiency, extend solid state hard disc service life.
Accompanying drawing explanation
Fig. 1 is the occupation mode schematic diagram that solid state hard disc passes through ECC check code protection data;
Fig. 2 is the relation schematic diagram of ECC check code length and error correcting capability;
Fig. 3 is under the state that solid state hard disc has some user data, the situation schematic diagram that storage medium is used;
Fig. 4 is the possibility relation schematic diagram with the solid state hard disc use time of solid state hard disc corrupt data;
Fig. 5 be the present invention method in the schematic diagram that changes over time of ECC check code check;
Fig. 6 is specific embodiments of the present invention schematic diagram.
Detailed description of the invention
It is as follows that the present invention realizes process:
1) it is that solid hard disk storage system sets ECC check code check unit, i.e. has the memory space of identical ECC check code length as an ECC check code check unit;In the system operation in later stage, holding is fixed by this unit set;
2) it is that solid hard disk storage system presets multistage ECC check code check, so-called ECC check code check, it is simply that in fixed storage space, the ratio of the memory space shared by memory space data protected with it that ECC is consumed;This code check reflects the relation of ECC check code length and protected User Data Length;So the information of 1bit just can represent 2 kinds of relations, the information of 2bit just can represent 4 kinds of relations, the like, can be with little memory space, just can characterize a lot of relation, such as 4bit can represent 16 kinds of relations;And one relation, it is actually a kind of ECC code length and describes;
3) in solid-state hard disk controller, each ECC check code check unit presently used ECC check code check is recorded by ECC check rate tables;This table is used for inquiring about for controller, and which kind of code check is each storage cell use under current state;This also makes different storage cell use different code check to become feasible;
4) owing to, solid state hard disc life cycle early stage, the probability of corrupt data is relatively low, so the ECC check code check that employing ECC code length is shorter, the most both saved memory space, the most do not reduced the reliability of data;
5) aging along with solid state hard disc, when storage medium starts to become unreliable, the most progressively uses the ECC check code check that ECC code length is longer;The precision changed due to ECC code length is ECC check code check unit, it is possible to allow the most aging memory space use the code check that code length is longer;The schematic diagram that ECC check code check changes over time is as shown in Figure 5.
6) until the late period of solid state hard disc life cycle, just there will be the longest ECC code rate and occur on a large scale, this achieves the balance in data reliability and service efficiency to the full extent.
The embodiment of the present invention such as Fig. 6, ECC code rate tables is set during system initialization, the memory space of whole system is artificially divided for ECC code rate unit by this table, unit 0 in Fig. 6 is an ECC code rate unit, memory space in one code check unit all uses identical ECC code code check, i.e. has identical ECC code long;In system operation, ECC code generation module and ECC code correction verification module, by ECC code rate tables, know which kind of code check is these data to be processed use;Memory space ageing state Observation Blocks by observe memory space state, carry out the ageing state in each space in judgement system, it is judged that method such as: when some ECC check code check unit occurs in that the mistake that current ECC code length can not be corrected;When the condition that an ECC code rate unit is changed triggers, the code check of the corresponding unit changed in ECC code rate tables is encoded by memory space ageing state Observation Blocks;Afterwards, ECC code generation module and ECC code correction verification module are because of using ECC code rate tables to do ECC reference, so the follow-up upgrading being achieved that ECC code;As above-mentioned, in the life cycle of solid state hard disc, it is achieved that the dynamic configuration of ECC check code.

Claims (2)

1. the method for a dynamic implement solid state hard disc ECC check code, it is characterised in that comprise the following steps:
1) be solid hard disk storage system set ECC check code check unit, using have identical ECC check code length memory space as an ECC check code check unit;
2) it is that solid hard disk storage system presets multistage ECC check code check;
3) in solid-state hard disk controller, each ECC check code check unit presently used ECC check code check is recorded by ECC check rate tables;
4) when solid state hard disc works, the interpolation/verification of ECC check code is carried out with the benchmark that is recorded as of ECC check rate tables;
5) increase along with the working time of solid state hard disc, when the ECC error that can not entangle occurs, or when the condition that an ECC check code check unit is changed triggers, then in ECC check rate tables, improve one-level ECC check code check, carry out the interpolation/verification of ECC check code.
2. the device of a dynamic implement solid state hard disc ECC check code, it is characterised in that including:
ECC code rate tables: be used for recording the ECC code rate that current memory space uses, the base unit calculated using ECC code rate as ECC, is also that base unit and the result of dynamically adjustment embodies carrier simultaneously;
ECC code generation module: be used for being written of data, produces protection and is written of the ECC check code of data reliability, according to the setting of ECC code rate tables, produce the ECC check code of multiple different length;
ECC code correction verification module: be used for the ECC check code subsidiary according to the data read, the data that verification is read are the most correct, ECC code correction verification module mode of operation is corresponding with ECC code generation module, corresponding relation produces association by ECC code rate tables, i.e. ECC code generation module and ECC code correction verification module, by ECC code rate tables, know which kind of code check is these data to be processed use;
Memory space ageing state Observation Blocks: for observing the state of solid state hard disc memory space, judge the ageing state in each space in solid state hard disc, and when the condition that an ECC code rate unit is changed triggers, change the code check of the base unit that the ECC in ECC code rate tables calculates;The condition that ECC code rate unit is changed i.e. improves one-level ECC check code check;
Solid state hard disc memory space: be used to data, the physical storage medium of ECC check code information that storage is read.
CN201510695468.1A 2015-10-22 2015-10-22 A kind of method and apparatus of dynamic implement solid state hard disc ECC check code Active CN105280239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510695468.1A CN105280239B (en) 2015-10-22 2015-10-22 A kind of method and apparatus of dynamic implement solid state hard disc ECC check code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510695468.1A CN105280239B (en) 2015-10-22 2015-10-22 A kind of method and apparatus of dynamic implement solid state hard disc ECC check code

Publications (2)

Publication Number Publication Date
CN105280239A CN105280239A (en) 2016-01-27
CN105280239B true CN105280239B (en) 2016-09-07

Family

ID=55149105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510695468.1A Active CN105280239B (en) 2015-10-22 2015-10-22 A kind of method and apparatus of dynamic implement solid state hard disc ECC check code

Country Status (1)

Country Link
CN (1) CN105280239B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015880B (en) * 2016-01-28 2020-06-30 京微雅格(北京)科技有限公司 FPGA circuit and configuration file processing method thereof
CN108255633B (en) * 2016-12-28 2021-07-30 旺宏电子股份有限公司 Storage control method and storage device
CN110333965B (en) * 2019-05-30 2023-05-26 深圳市博德越科技有限公司 Solid state disk controller device and solid state disk data verification method
CN110704274A (en) * 2019-09-06 2020-01-17 苏州浪潮智能科技有限公司 Temperature control method, device and equipment for solid state disk
CN116257383A (en) * 2021-12-09 2023-06-13 华为技术有限公司 Data error correction method, device, memory controller and system
CN115562902A (en) * 2022-01-11 2023-01-03 荣耀终端有限公司 Storage area coding method and device and related equipment
CN114995767B (en) * 2022-06-22 2022-12-06 北京得瑞领新科技有限公司 Data management method, storage device and storage medium of solid state disk

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831028A (en) * 2012-09-07 2012-12-19 苏州国芯科技有限公司 ECC (error correction code) error correction method and system based on data bus
CN103533045A (en) * 2013-10-12 2014-01-22 江苏华丽网络工程有限公司 Method for high-performance fault tolerance of PCIE (Peripheral Component Interface Express) data link layer

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8006166B2 (en) * 2007-06-12 2011-08-23 Micron Technology, Inc. Programming error correction code into a solid state memory device with varying bits per cell
US8533550B2 (en) * 2010-06-29 2013-09-10 Intel Corporation Method and system to improve the performance and/or reliability of a solid-state drive

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831028A (en) * 2012-09-07 2012-12-19 苏州国芯科技有限公司 ECC (error correction code) error correction method and system based on data bus
CN103533045A (en) * 2013-10-12 2014-01-22 江苏华丽网络工程有限公司 Method for high-performance fault tolerance of PCIE (Peripheral Component Interface Express) data link layer

Also Published As

Publication number Publication date
CN105280239A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105280239B (en) A kind of method and apparatus of dynamic implement solid state hard disc ECC check code
JP6129328B2 (en) Adaptive error correction codes for data storage systems.
US8539195B2 (en) Non-volatile memory device with non-evenly distributable data access
CN102073563B (en) The management method of storage block and system in flash memory device, flash memory device
US20110191654A1 (en) Adjustable error correction code length in an electrical storage device
CN106486170B (en) The potential bad block localization method and device of solid state hard disk
CN102394114B (en) BCH code error correction method capable of adaptive error correction
WO2008066605A3 (en) System for optimizing the performance and reliability of a storage controller cache offload circuit
CN106415502A (en) Data storage method and device
CN104991738A (en) Solid state disk and read and write operation method thereof
CN105551522A (en) Management method and management apparatus of flash memory storage device
CN104810056A (en) NAND flash memory error controller based on self-adaptive LDPC (low density parity check) code
CN110007861A (en) A kind of method for reading data and device
CN104794066A (en) Storage apparatus and method for selecting storage area where data is written
CN102880432A (en) Method and system for increasing writing speeds of flash memory chips by aid of limited lives of data and controller of system
CN110765041B (en) Self-adaptive Nand Flash read-write speed adjusting system
US7685333B2 (en) Method and system for communicating with memory devices utilizing selected timing parameters from a timing table
CN107943610A (en) A kind of method of lifting SSD comprehensive performances
KR20030051393A (en) Write-once memory device including non-volatile memory for temporary storage
CN102591825A (en) Transmitting device and method between SATA (Serial Advanced Technology Attachment) controller and flash controller based on SYNC mechanism
CN111459409B (en) Optimized flash memory solid-state disk heating method and flash memory solid-state disk
CN114442960A (en) Solid-state storage scheme free of fear abnormal power failure and capable of prolonging service life
CN111414271B (en) Storage method based on self-adaptive storage redundancy strategy
CN111324283B (en) Memory device
US8487777B2 (en) Semiconductor storage apparatus and early-warning systems and methods for the same

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160127

Assignee: Jiangsu Xinsheng Intelligent Technology Co., Ltd.

Assignor: GOKE MICROELECTRONICS CO., LTD.

Contract record no.: 2018430000021

Denomination of invention: Method and device for dynamically realizing ECC check codes of solid state drives

Granted publication date: 20160907

License type: Common License

Record date: 20181203

EE01 Entry into force of recordation of patent licensing contract