CN102591748A - Solid state disc and power failure protection method and system thereof - Google Patents

Solid state disc and power failure protection method and system thereof Download PDF

Info

Publication number
CN102591748A
CN102591748A CN2011104522327A CN201110452232A CN102591748A CN 102591748 A CN102591748 A CN 102591748A CN 2011104522327 A CN2011104522327 A CN 2011104522327A CN 201110452232 A CN201110452232 A CN 201110452232A CN 102591748 A CN102591748 A CN 102591748A
Authority
CN
China
Prior art keywords
data
backup
page
solid state
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.)
Pending
Application number
CN2011104522327A
Other languages
Chinese (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.)
Ramaxel Technology Shenzhen Co Ltd
Original Assignee
Ramaxel Technology Shenzhen 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 Ramaxel Technology Shenzhen Co Ltd filed Critical Ramaxel Technology Shenzhen Co Ltd
Priority to CN2011104522327A priority Critical patent/CN102591748A/en
Publication of CN102591748A publication Critical patent/CN102591748A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention is applied to the fields of solid state discs and information storage and provides a solid state disc and a power failure protection method and a system thereof. The method comprises the steps of performing self-adaption data backup computation and judging whether to proceed data backup when data is written into the solid state disc; if backup is required, backuping the data to a single level cell (SLC) type storage area converted from a multi level cell (MLC) type storage area, then writing the data into the MLC type storage area, otherwise directly writing the data into the MLC type storage area; and when the solid state disc is powered on, the data is recovered according to data backup information. Therefore, the solid state disc and the power failure protection method and the system of the solid state disc can solve the problem of data damage of coupling pages in Nand Flash caused by abnormal power failure by means of a self-adaption backup technology on the basis that hardware design cost and complexity are not increased.

Description

Solid state hard disc and power-off protection method thereof, system
Technical field
The present invention relates to solid state hard disc and area information storage, relate in particular to a kind of solid state hard disc and power-off protection method thereof, system.
Background technology
The existing used Nand Flash of solid state hard disc chip is mainly MLC (Multi-Level Cell; Multilevel-cell) type Nand Flash chip; And for most of MLC type Nand Flash chips, two outstanding features are arranged: one, two positions in the same unit are dispensed in two different pages or leaves, thereby these two pages or leaves have strong coupling property; If destroy high-order page or leaf wherein, the data of low level page or leaf also will be damaged so.Two, can MLC type Nand Flash be converted into SLC (Single Layer Cell, single layer cell) type Nand Flash through special technology and software administration technology.
Present solid state hard disc all passes through a plurality of Nand Flash controllers to be used as a plurality of channel parallels, thereby reaches high data throughput, and there is a large amount of Nand Flash read-write operations in synchronization.When system's accident power down; Because there is a large amount of Nand Flash write operations in a large amount of synchronizations; When power supply can not guarantee the completion of Nand Flash write operation, cut off the power supply again, not only can destroy the current data integrity that writes page or leaf, and can destroy data with the relevant coupling page or leaf of current page.In order to address this problem, power-off protection of solid state disk mechanism has appearred.
Fig. 1 is a conventional power down resist technology structural representation; After solid state hard disc place system primary power 101 powers on; System gets into duty; Power supply switching controls module 102 is initialized at the primary power duty, and detection of power loss module 103 starts detection of power loss, and power source charges module 104 control standby power supplies 105 get into charge mode.When the power down of solid state hard disc accident; Detection of power loss module 103 can monitor this incident; Power supply switching controls module 102 switches to standby power supply 105 with the solid state hard disc power supply, and standby power supply 105 will be supplied power to solid state hard disc, thereby solid state hard disc can be accomplished data write operation; Avoid write operation to be interrupted, thus the protected data integrality.
But because standby power supply can produce the unexpected problem that lost efficacy; For addressing this problem prior art other a kind of power down protection mechanism has been proposed; Promptly when the one-level standby power supply lost efficacy, switching to the secondary standby power supply, is that solid state hard disc provides power down protection by the secondary standby power supply.Though it has solved the problem that lost efficacy and cause because of the one-level standby power supply, also increased the hardware cost and the complexity of solid state hard disc.And there is Problem of Failure equally in the secondary standby power supply, still exists to destroy data integrity.This type technical scheme concentrates all how data in buffer writes the problem of flash memory in the resolution system, and can only reduce power-fail and cause the probability of data corruption, does not have the real ruined problem of data that solves the coupling page or leaf.
Can know that to sum up existing power-off protection of solid state disk mechanism obviously exists inconvenience and defective, so be necessary to improve on reality is used.
Summary of the invention
To above-mentioned defective; The object of the present invention is to provide a kind of solid state hard disc and power-off protection method thereof, system; It can solve the ruined problem of data that causes coupling page or leaf among the Nand Flash because of powered-off fault through the special software technology on the basis that does not increase cost of hardware design and complexity.
To achieve these goals, the present invention provides a kind of power-off protection of solid state disk method, and said method comprises the steps:
When solid state hard disc writes data, carry out self-adaptive data backup and calculate and judge whether to carry out data backup;
If need back up, write MLC type memory block again after then data being backuped to SLC type memory block, otherwise directly data are write MLC type memory block;
When solid state hard disc powers on, carry out data according to data backup information and recover.
According to power-off protection of solid state disk method of the present invention, the said self-adaptive data backup that carries out calculates and judges whether to carry out data backup and is specially:
Obtain the current page number that writes in the pairing flash array of data; And inquiry self-adapting data admin table; If the said current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the said current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position;
Said self-adapting data admin table has write down the mapping relations of logical address to physical address.
According to power-off protection of solid state disk method of the present invention; Data are backuped to SLC type memory block also to be comprised before: with specific MLC type memory block conversion SLC type memory block, shine upon the physical address that calculates acquisition SLC type memory block according to the self-adapting data admin table.
According to power-off protection of solid state disk method of the present invention, saidly carry out data according to the backup data management table and recover to comprise:
The scanning flash array obtains flash type management conversion information, data backup information and aborted information;
Initialization flash type admin table and backup data management table; Said flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, said backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data;
Judge according to said aborted information whether power down last time is unexpected power down, recover whether read wherein that the coupling page or leaf carries out buffer memory otherwise write the situation decision according to last data if then carry out data according to said backup data management table.
According to power-off protection of solid state disk method of the present invention, write situation decision according to last data and whether read wherein the coupling page or leaf and carry out buffer memory and be specially:
Obtain the Physical Page that writes for the last time, if, read out this page or leaf so and put into buffer memory, otherwise do not operate for the low level page or leaf of this Physical Page for the coupling page or leaf.
The present invention also provides a kind of power-off protection of solid state disk system, and said system comprises:
The self-adaptive data backup administration module is used for when solid state hard disc writes data, carries out self-adaptive data backup and calculates and judge whether to carry out data backup;
Main channel flash memory management module writes MLC type memory block after when being used for backing up data being backuped to SLC type memory block again, perhaps directly data is write MLC type memory block;
Master controller when being used for solid state hard disc and powering on, carries out data according to backup data management information and recovers.
According to power-off protection of solid state disk of the present invention system, said self-adaptive data backup administration module obtains and carries out self-adaptive data backup and calculate and judge whether to carry out data backup and be specially:
Obtain the current page number that writes in the pairing flash array of data; Inquiry self-adapting data admin table; If the said current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the said current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position;
Said self-adapting data admin table has write down the mapping relations of logical address to physical address.
According to power-off protection of solid state disk of the present invention system, said power-off protection of solid state disk system also comprises:
Flash type management conversion module is used for specific MLC type memory block conversion SLC type memory block, shines upon according to said self-adapting data admin table and calculates the physical address that obtains SLC type memory block.
According to power-off protection of solid state disk of the present invention system, said master controller comprises:
Acquiring unit is used to scan flash array, obtains flash type management conversion information, data backup information and aborted information;
Initialization unit; Initialization flash type admin table and backup data management table; Said flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, said backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data;
Data are recovered and backup units; Judge according to said aborted information whether power down last time is unexpected power down; Recover if then carry out data, otherwise obtain the Physical Page that writes for the last time, if be the low level page or leaf of this Physical Page for the coupling page or leaf according to said backup data management table; Read out this page or leaf so and put into buffer memory, otherwise do not operate.
The present invention also provides a kind of solid state hard disc that comprises above-mentioned power down protection system.
The present invention is through when solid state hard disc writes data; Carry out self-adaptive data backup and calculate and judge whether to carry out data backup; If need back up, write MLC type memory block again after then data being backuped to the SLC type memory block of being changed by MLC, otherwise directly data are write MLC type memory block; When next by the time solid state hard disc powers on, carry out data according to data backup information and recover.The present invention changes the SLC type memory block of coming through backup data store is arrived by the MLC memory block, thereby need not extra SLC type Nand Flash storer; Through " self-adaptive data backup technology " the corresponding logical physical mapping table of management; The physical address of record Backup Data; The low level page or leaf that calculates in the page or leaf that will be coupled through self-adaptive data backup simultaneously backs up; When solid state hard disc powers on next time, obliterated data is recovered out through backup information, avoid the data of coupling page or leaf among the Nand Flash to be destroyed.Whereby, the present invention can solve the ruined problem of data that causes coupling page or leaf among the Nand Flash because of powered-off fault through the self-adaptation redundancy technique on the basis that does not increase cost of hardware design and complexity.
Description of drawings
Fig. 1 is a power-off protection of solid state disk system construction drawing of the prior art;
Fig. 2 is the structure principle chart of power-off protection of solid state disk of the present invention system;
Fig. 3 is the process flow diagram of power-off protection of solid state disk method of the present invention; And
Fig. 4 is that the solid state hard disc of an embodiment of the present invention powers on and operational flow diagram.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, a kind of power-off protection of solid state disk of the present invention system 100 is used for solid state hard disc is carried out power down protection, and this system can be the software unit that is built in solid state hard disc, hardware cell or software and hardware combining unit.This system 100 mainly comprises: self-adaptive data backup administration module 10, main channel flash memory management module 20 and master controller 30.
Self-adaptive data backup administration module 10 is used for when solid state hard disc writes data, carries out self-adaptive data backup and calculates and judge whether to carry out data backup.Concrete; Self-adaptive data backup administration module 10 obtains the current page number that writes in the pairing flash array of data; Inquiry self-adapting data admin table; If the current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position.Wherein, The self-adapting data admin table has write down the mapping relations of logical address to physical address; Need backed up data to distribute its physical address of depositing, when data are recovered, also can inquire about the physical address that Backup Data is deposited through the self-adapting data admin table through this self-adapting data admin table.
Main channel flash memory management module 20 writes MLC type memory block after when being used for backing up data being backuped to the SLC type memory block by MLC type memory block conversion again, perhaps directly data is write MLC type memory block.Because the manifolding number of times of SLC type flash memory is up to 10000 times; Higher 3 times than MLC type flash memory, and its storage speed is very fast, and therefore that SLC type memory block is regional as data backup; Can improve backup rate and data resume speed, improve the serviceable life of solid state hard disc.
Master controller 30 when being used for solid state hard disc and powering on, carries out data according to backup data management information and recovers.Promptly total system is carried out initialization and the data that power on recovery.
When system moves; At first judge current high-order page or leaf or the low level page or leaf that writes the corresponding flash array of data through self-adaptive data backup calculating; If the low level page or leaf then backs up SLC type memory block with this page data, and then data are write in the main channel data storer (MLC type memory block).When the system exception power down, SLC type memory block can not be coupled the page or leaf the ruined problem of data.When power down occurs in when writing the SLC type, primary memory area (MLC type memory block) also do not write, and avoided the main storage area that the ruined problem of data of coupling page or leaf takes place.When power down occurs in when writing the primary memory area, though the ruined situation of data of coupling page or leaf has taken place, the existence owing to backup area can recover ruined data.
The present invention changes the SLC type memory block of coming through backup data store is arrived by the MLC memory block, thereby need not extra SLC type Nand Flash storer; Through " self-adaptive data backup technology " the corresponding logical physical mapping table of management; The physical address of record Backup Data; The low level page or leaf that calculates in the page or leaf that will be coupled through self-adaptive data backup simultaneously backs up; When solid state hard disc powers on next time, obliterated data is recovered out through backup information, avoid the data of coupling page or leaf among the Nand Flash to be destroyed.Whereby, the present invention can solve the ruined problem of data that causes coupling page or leaf among the Nand Flash because of powered-off fault through the self-adaptation redundancy technique on the basis that does not increase cost of hardware design and complexity.
The self-adaptive data backup technology of present technique scheme is specially: after getting access to the current page number that writes in the pairing flash array of data; The self-adaptive data backup algorithm device calculates and whether need the data of current page be carried out data backup according to the information of self-adapting data admin table.Such as for MLC type Nand Flash, if when writing page or leaf and being UPPER PAGE (high-order page or leaf), then need not backup, and if when writing page or leaf and being LOWER PAGE (low level page or leaf), then need backup.When solid state hard disc powered on, the self-adaptive data backup algorithm device then obtained management information, through recovery algorithms the information of self-adapting data admin table was recovered, and according to writing data conditions at last, was carried out data and recover perhaps backup.When needs carried out data backup, the self-adaptive data backup algorithm device also can be carried out mapping algorithm according to the self-adapting data admin table, calculated the physical address that obtains actual flash memory.
Preferably; Power-off protection of solid state disk system 100 also comprises flash type management conversion module 40; Be used for SLC type memory block being changed in MLC type memory block, shine upon according to the self-adapting data admin table and calculate the physical address that obtains SLC type memory block according to the flash memory conversion command.Generally speaking, flash memory can provide flash type conversion command and step; If do not provide, then only use the low level page or leaf, do not use high-order page or leaf.
Preferably, master controller 30 comprises: acquiring unit 31, initialization unit 32, data are recovered and backup units 33.
Acquiring unit 31 is used to scan flash array, obtains flash type management conversion information, data backup information and aborted information.Wherein acquiring unit 31 can obtain management information when the scanning flash array; These management information have comprised mapping relations table, wear-level (abrasion equilibration) management information, address invalid information table, the error log (error log) of logical page (LPAGE) to Physical Page, and aforesaid flash type management conversion information, data backup information, aborted information or the like.
Initialization unit 32; Initialization flash type admin table and backup data management table; The flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, the backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data.
Data are recovered and backup units 33; Judge according to aborted information whether power down last time is unexpected power down; Recover if then carry out data, otherwise obtain the Physical Page that writes for the last time, if be the low level page or leaf of this Physical Page for the coupling page or leaf according to the backup data management table; Read out this page or leaf so and put into buffer memory (promptly putting into SLC type memory block backs up) and prepare, otherwise do not operate for next write operation.
According to one embodiment of present invention, solid state hard disc mainly comprises master controller 30, self-adaptive data backup administration module 10, flash type management conversion module 40 and main channel flash memory management module 20.When solid state hard disc powered on, 30 pairs of total systems of master controller were carried out the initialization and the Data Recovery Process that powers on, and promptly scanned through 20 pairs of whole flash arrays of main channel flash memory management module, obtained the management information of storage.Flash type management conversion module 40 is extracted the relevant information of flash type management conversion and is carried out the initialization admin table according to the management information that obtains in the master controller 30.Self-adaptive data backup administration module 10 is according to the management information that obtains in the master controller 30, initialization data backup management table, and read data and buffer memory in the up-to-date coupling page or leaf through main channel flash memory management module 20.Master controller 30 judges whether the power down last time power down that whether meets accident according to management information, as the power down that meets accident, and then through the data backup district data is recovered out.
When solid state hard disc is started working, when data read, flash type management conversion module 40 and self-adaptive data backup administration module 10 will can not carry out relevant work.When data are write fashionable; The current page number that writes in the pairing flash array of data that self-adaptive data backup administration module 10 provides through main channel flash memory management module 20; Inquiry self-adapting data admin table judges whether to carry out data backup, wherein inquires about the self-adapting data admin table; If the current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position; If data need backup; Then start flash type administration module 40; After the Nand Flash of the MLC type in specific zone carried out type conversion, and according to the information of self-adapting data admin table, provide corresponding SLC type memory block after; Notice main channel flash memory management module 20 writes this zone earlier with data; Main channel flash memory management module writes data in the main channel data zone after accomplishing and should operating again.
When the system exception power down, the ruined problem of data of page or leaf because SLC type memory block can not be coupled.When power down occurs in when writing SLC type memory block, primary memory area (MLC type memory block) also do not write, and avoided the main storage area that the ruined problem of data of coupling page or leaf takes place.When power down occurs in when writing the primary memory area, though the ruined situation of data of coupling page or leaf has taken place, the existence owing to backup area can recover ruined data.The present invention can carry out the management work that MLC transforms SLC according to the characteristic of different flash memories, thereby need not the special SLC type of extra increase Nand Flash, reduces design and cost of products; Utilize SLC type Nand Flash writing speed fast, non-volatile, do not have the characteristic of coupling page or leaf problem, get up, can effectively recover ruined data in the MLC type Nand Flash coupling page or leaf as the coupling caching of page of high-speed cache with MLC type Nand Flash; Simultaneously, according to the attribute that writes the corresponding MLC type hash memory pages of data, through exclusive adaptive algorithm need to judge whether will this page or leaf data back up, thereby effective minimizing writes the increase of amplification.
As shown in Figure 3, the present invention also provides a kind of power-off protection of solid state disk method, and it realizes that through system as shown in Figure 2 this method comprises the steps:
Step S301 when solid state hard disc writes data, carries out self-adaptive data backup and calculates and judge whether to carry out data backup.This step realizes through self-adaptive data backup administration module 10.This step is specially: obtain the current page number that writes in the pairing flash array of data; And inquiry self-adapting data admin table; If the said current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the said current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position; Said self-adapting data admin table has write down the mapping relations of logical address to physical address.
Step S302 if need back up, writes MLC type memory block again after then data being backuped to the SLC type memory block by the conversion of MLC type memory block, otherwise directly data is write MLC type memory block.This step realizes through main channel flash memory management module 20.
Step S303 when solid state hard disc powers on, carries out data according to data backup information and recovers.This step realizes through main control module 30.
Preferably, in step S302, data are backuped to SLC type memory block also comprise before:, shine upon the physical address that calculates acquisition SLC type memory block according to the self-adapting data admin table specific MLC type memory block conversion SLC type memory block.
Preferably, step S303 specifically comprises:
The scanning flash array obtains flash type management conversion information, data backup information and aborted information;
Initialization flash type admin table and backup data management table; Said flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, said backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data;
Judge according to said aborted information whether power down last time is unexpected power down, recover whether read wherein that the coupling page or leaf carries out buffer memory otherwise write the situation decision according to last data if then carry out data according to said backup data management table.Whether read wherein coupling page or leaf carry out buffer memory be specially: obtain the Physical Page that writes for the last time, if for the low level page or leaf of this Physical Page for coupling page, read out this page or leaf so and put into buffer memory, otherwise do not operate according to last data if writing situation decision.
Fig. 4 is that the solid state hard disc of an embodiment of the present invention powers on and operational flow diagram, and it comprises the steps:
Step S401, power-up initializing, scanning flash array.
Step S402 obtains the flash type admin table.
Step S403 obtains the backup data management table.
Step S404 recovers to be destroyed data from backup area.In this step, power down last time does not have the ruined situation of data, and then according to writing situation for the last time, whether decision reads the data of the page or leaf that wherein is coupled is prepared as writing backup next time.
Step S405 waits pending data to write.
Step S406 need to judge whether backup, if need backup then to get into step S407, otherwise gets into step S410.When data write, solid state hard disc carried out self-adaptation and calculates, and calculates and whether need carry out data backup.
Step S407 starts the flash type conversion;
Step S408 obtains the backup area physical address;
Step S409 writes Backup Data;
Step S410 writes the main storage area with data, and gets back to step S405.
The present invention also provides a kind of solid state hard disc, and solid state hard disc comprises power-off protection of solid state disk system 100, and the concrete structure of power-off protection of solid state disk system 100 is done detailed description at preamble, so repeat no more at this.
In sum; The present invention carries out self-adaptive data backup and calculates and judge whether to carry out data backup, if need back up through when solid state hard disc writes data; Write MLC type memory block again after then data being backuped to SLC type memory block; Otherwise directly data are write MLC type memory block, wait until when next solid state hard disc powers on, carry out data according to data backup information and recover.The present invention changes the SLC type memory block of coming through backup data store is arrived by the MLC memory block, thereby need not extra SLC type Nand Flash storer; Through the mapping table of " self-adaptive data backup technology " corresponding logical address of management to physical address; The physical address of record Backup Data; The low level page or leaf that calculates in the page or leaf that will be coupled through self-adaptive data backup simultaneously backs up; When solid state hard disc powers on next time, obliterated data is recovered out through backup information, avoid the data of coupling page or leaf among the Nand Flash to be destroyed.Whereby, the present invention can solve the ruined problem of data that causes coupling page or leaf among the Nand Flash because of powered-off fault through the self-adaptation redundancy technique on the basis that does not increase cost of hardware design and complexity.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1. a power-off protection of solid state disk method is characterized in that, said method comprises the steps:
When solid state hard disc writes data, carry out self-adaptive data backup and calculate and judge whether to carry out data backup;
If need back up, write MLC type memory block again after then data being backuped to the SLC type memory block by the conversion of MLC type memory block, otherwise directly data are write MLC type memory block;
When solid state hard disc powers on, carry out data according to data backup information and recover.
2. power-off protection of solid state disk method according to claim 1 is characterized in that, the said self-adaptive data backup that carries out calculates and judges whether to carry out data backup and is specially:
Obtain the current page number that writes in the pairing flash array of data; And inquiry self-adapting data admin table; If the said current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the said current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position;
Said self-adapting data admin table has write down the mapping relations of logical address to physical address.
3. power-off protection of solid state disk method according to claim 2 is characterized in that, the SLC type memory block that data are backuped to by the conversion of MLC type memory block also comprises before:
With MLC type memory block conversion SLC type memory block, shine upon the physical address that calculates acquisition SLC type memory block according to the flash memory conversion command according to the self-adapting data admin table.
4. power-off protection of solid state disk method according to claim 2 is characterized in that, saidly carries out data according to the backup data management table and recovers to comprise:
The scanning flash array obtains flash type management conversion information, data backup information and aborted information;
Initialization flash type admin table and backup data management table; Said flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, said backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data;
Judge according to said aborted information whether power down last time is unexpected power down, recover whether read wherein that the coupling page or leaf carries out buffer memory otherwise write the situation decision according to last data if then carry out data according to said backup data management table.
5. power-off protection of solid state disk method according to claim 1 is characterized in that, writes situation decision according to last data and whether reads wherein the coupling page or leaf and carry out buffer memory and be specially:
Obtain the Physical Page that writes for the last time, if, read out this page or leaf so and put into buffer memory, otherwise do not operate for the low level page or leaf of this Physical Page for the coupling page or leaf.
6. a power-off protection of solid state disk system is characterized in that, said system comprises:
The self-adaptive data backup administration module is used for when solid state hard disc writes data, carries out self-adaptive data backup and calculates and judge whether to carry out data backup;
Main channel flash memory management module writes MLC type memory block after when being used for backing up data being backuped to the SLC type memory block by MLC type memory block conversion again, perhaps directly data is write MLC type memory block;
Master controller when being used for solid state hard disc and powering on, carries out data according to backup data management information and recovers.
7. power-off protection of solid state disk according to claim 6 system is characterized in that, said self-adaptive data backup administration module obtains and carries out self-adaptive data backup and calculate and judge whether to carry out data backup and be specially:
Obtain the current page number that writes in the pairing flash array of data; Inquiry self-adapting data admin table; If the said current page or leaf that writes the corresponding flash array of data institutes then need carry out data backup for the low level page or leaf,, the said current page or leaf that writes the corresponding flash array of data institute page then need not carry out data backup if being a high position;
Said self-adapting data admin table has write down the mapping relations of logical address to physical address.
8. power-off protection of solid state disk according to claim 7 system is characterized in that, said power-off protection of solid state disk system also comprises:
Flash type management conversion module is used for according to the flash memory conversion command SLC type memory block being changed in MLC type memory block, shines upon according to the self-adapting data admin table and calculates the physical address that obtains SLC type memory block.
9. power-off protection of solid state disk according to claim 6 system is characterized in that said master controller comprises:
Acquiring unit is used to scan flash array, obtains flash type management conversion information, data backup information and aborted information;
Initialization unit; Initialization flash type admin table and backup data management table; Said flash type admin table has write down the transitional information that MLC type memory block converts SLC type memory block into, said backup data management table record be used for the Physical Page of data backup, the logical address that said Physical Page is corresponding, the physical address and the Status of Backups information of raw data;
Data are recovered and backup units; Judge according to said aborted information whether power down last time is unexpected power down; Recover if then carry out data, otherwise obtain the Physical Page that writes for the last time, if be the low level page or leaf of this Physical Page for the coupling page or leaf according to said backup data management table; Read out this page or leaf so and put into buffer memory, otherwise do not operate.
10. one kind comprises the solid state hard disc like each described system of claim 6~9.
CN2011104522327A 2011-12-29 2011-12-29 Solid state disc and power failure protection method and system thereof Pending CN102591748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104522327A CN102591748A (en) 2011-12-29 2011-12-29 Solid state disc and power failure protection method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104522327A CN102591748A (en) 2011-12-29 2011-12-29 Solid state disc and power failure protection method and system thereof

Publications (1)

Publication Number Publication Date
CN102591748A true CN102591748A (en) 2012-07-18

Family

ID=46480446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104522327A Pending CN102591748A (en) 2011-12-29 2011-12-29 Solid state disc and power failure protection method and system thereof

Country Status (1)

Country Link
CN (1) CN102591748A (en)

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867046A (en) * 2012-09-06 2013-01-09 记忆科技(深圳)有限公司 Solid state disk based database optimization method and system
CN103064755A (en) * 2013-01-25 2013-04-24 珠海全志科技股份有限公司 Method and device for processing write data of NAND (not-and) flash memory
CN103279402A (en) * 2013-05-13 2013-09-04 记忆科技(深圳)有限公司 Data restoration method based on multilayer cell solid state hard disc and solid state hard disc
CN103617101A (en) * 2013-12-12 2014-03-05 北京旋极信息技术股份有限公司 Power fail safeguard method and device
CN103793337A (en) * 2013-11-12 2014-05-14 飞天诚信科技股份有限公司 Data protection method for preventing power down
CN103914360A (en) * 2013-01-05 2014-07-09 联想(北京)有限公司 Electronic device and data backup restoring method
CN104598844A (en) * 2014-12-31 2015-05-06 湖南国科微电子有限公司 Power failure protection method and device for preventing corruption of system files of solid-state disk
CN104750615A (en) * 2013-12-26 2015-07-01 慧荣科技股份有限公司 Data storage device and flash memory control method
WO2016107442A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Method for writing data to solid state drive and solid state drive
CN105808371A (en) * 2014-12-31 2016-07-27 深圳市硅格半导体有限公司 Data backup and recovery method, control chip and storage device
CN105843748A (en) * 2015-01-15 2016-08-10 华为技术有限公司 Method and device for processing memory page in memory
CN106445740A (en) * 2016-09-22 2017-02-22 深圳市先天海量信息技术有限公司 Control method and control system for NAND flash memory data in solid state disk
CN106778369A (en) * 2016-11-09 2017-05-31 百望金赋科技有限公司 A kind of hard disk data access method, tax control server
CN106935259A (en) * 2015-12-31 2017-07-07 北京京存技术有限公司 Flash memory system and its method and apparatus for avoiding redundancy backup LSB page
CN106933499A (en) * 2015-12-31 2017-07-07 北京京存技术有限公司 A kind of method and apparatus for improving MLC flash systematic function
CN107273309A (en) * 2017-05-19 2017-10-20 瑞斯康微电子(深圳)有限公司 A kind of serial flash data guard method and device
CN107506137A (en) * 2017-08-11 2017-12-22 记忆科技(深圳)有限公司 A kind of method for lifting solid state hard disc write performance
CN108089991A (en) * 2016-11-23 2018-05-29 广明光电股份有限公司 The method that solid state disk rebuilds the table of comparisons
CN108255630A (en) * 2017-11-29 2018-07-06 深圳忆联信息系统有限公司 A kind of method for reducing solid state disk powered-off fault processing time
CN108664210A (en) * 2017-03-31 2018-10-16 北京忆恒创源科技有限公司 A kind of method and control system, solid storage device of I/O command control
CN108733575A (en) * 2017-04-20 2018-11-02 立而鼎科技(深圳)有限公司 Method for reconstructing, solid state disk of the logic to physical image table after a kind of power-off restarting
CN109753241A (en) * 2018-12-05 2019-05-14 新华三技术有限公司合肥分公司 Method for writing data and device, the computer readable storage medium of solid state hard disk
CN110580130A (en) * 2019-08-21 2019-12-17 天津大学 Method for writing data into flash memory module for preventing influence of power interruption
CN111324290A (en) * 2018-12-14 2020-06-23 北京兆易创新科技股份有限公司 Memory device
CN111399751A (en) * 2019-01-02 2020-07-10 慧荣科技股份有限公司 Flash memory controller, method for managing flash memory module and related electronic device
CN108170562B (en) * 2018-01-12 2020-10-09 深圳大普微电子科技有限公司 Solid state disk and data processing method and system thereof
CN111949220A (en) * 2020-09-03 2020-11-17 合肥沛睿微电子股份有限公司 Abnormal power failure recovery method for storage device and storage device
CN112015339A (en) * 2020-08-20 2020-12-01 合肥康芯威存储技术有限公司 Data storage system, data storage method and storage system of memory
CN112527204A (en) * 2020-12-15 2021-03-19 深圳星火半导体科技有限公司 Storage method and device
CN112632643A (en) * 2020-12-29 2021-04-09 深圳大普微电子科技有限公司 Method for preventing flash memory data loss, solid state disk controller and solid state disk
CN113448778A (en) * 2021-07-15 2021-09-28 华东师范大学 Backup method for key data in hybrid SSD
CN113641532A (en) * 2020-04-27 2021-11-12 宇瞻科技股份有限公司 Solid state disk data backup and restoration method based on paging mode
CN114791868A (en) * 2022-06-22 2022-07-26 北京得瑞领新科技有限公司 Fault type detection method and device, computer equipment and readable storage medium
CN116126591A (en) * 2022-12-23 2023-05-16 北京熵核科技有限公司 Transaction mechanism of embedded system
CN116541900A (en) * 2023-07-07 2023-08-04 深圳星火半导体科技有限公司 Storage management method, device, equipment and medium based on data protection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483067A (en) * 2008-01-11 2009-07-15 群联电子股份有限公司 Flash memory data writing method and flash memory controller
CN101609431A (en) * 2008-06-19 2009-12-23 慧国(上海)软件科技有限公司 The How It Works of flash memory device and flash memory device
CN101656104A (en) * 2008-08-22 2010-02-24 群联电子股份有限公司 Flash memory storage system and data writing method thereof
US20110022787A1 (en) * 2007-10-19 2011-01-27 Phison Electronics Corp. Data writing method for non-volatile memory and controller using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022787A1 (en) * 2007-10-19 2011-01-27 Phison Electronics Corp. Data writing method for non-volatile memory and controller using the same
CN101483067A (en) * 2008-01-11 2009-07-15 群联电子股份有限公司 Flash memory data writing method and flash memory controller
CN101609431A (en) * 2008-06-19 2009-12-23 慧国(上海)软件科技有限公司 The How It Works of flash memory device and flash memory device
CN101656104A (en) * 2008-08-22 2010-02-24 群联电子股份有限公司 Flash memory storage system and data writing method thereof

Cited By (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867046B (en) * 2012-09-06 2016-08-03 记忆科技(深圳)有限公司 Database optimizing method based on solid state hard disc and system
CN102867046A (en) * 2012-09-06 2013-01-09 记忆科技(深圳)有限公司 Solid state disk based database optimization method and system
CN103914360A (en) * 2013-01-05 2014-07-09 联想(北京)有限公司 Electronic device and data backup restoring method
CN103914360B (en) * 2013-01-05 2017-03-22 北京联想核芯科技有限公司 Electronic device and data backup restoring method
CN103064755A (en) * 2013-01-25 2013-04-24 珠海全志科技股份有限公司 Method and device for processing write data of NAND (not-and) flash memory
CN103064755B (en) * 2013-01-25 2015-03-25 珠海全志科技股份有限公司 Method and device for processing write data of NAND (not-and) flash memory
CN103279402A (en) * 2013-05-13 2013-09-04 记忆科技(深圳)有限公司 Data restoration method based on multilayer cell solid state hard disc and solid state hard disc
CN103793337A (en) * 2013-11-12 2014-05-14 飞天诚信科技股份有限公司 Data protection method for preventing power down
CN103793337B (en) * 2013-11-12 2016-08-24 飞天诚信科技股份有限公司 A kind of data guard method of power down preventing
CN103617101A (en) * 2013-12-12 2014-03-05 北京旋极信息技术股份有限公司 Power fail safeguard method and device
CN104750615A (en) * 2013-12-26 2015-07-01 慧荣科技股份有限公司 Data storage device and flash memory control method
CN104750615B (en) * 2013-12-26 2017-12-12 慧荣科技股份有限公司 Data memory device and method for controlling flash memory
US9842030B2 (en) 2013-12-26 2017-12-12 Silicon Motion, Inc. Data storage device and flash memory control method
US9727271B2 (en) 2013-12-26 2017-08-08 Silicon Motion, Inc. Data storage device and flash memory control method
US9684568B2 (en) 2013-12-26 2017-06-20 Silicon Motion, Inc. Data storage device and flash memory control method
CN105808371A (en) * 2014-12-31 2016-07-27 深圳市硅格半导体有限公司 Data backup and recovery method, control chip and storage device
WO2016107442A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Method for writing data to solid state drive and solid state drive
CN104598844A (en) * 2014-12-31 2015-05-06 湖南国科微电子有限公司 Power failure protection method and device for preventing corruption of system files of solid-state disk
CN105843748A (en) * 2015-01-15 2016-08-10 华为技术有限公司 Method and device for processing memory page in memory
CN105843748B (en) * 2015-01-15 2019-06-11 华为技术有限公司 The processing method and processing device of page in a kind of pair of memory
US10310971B2 (en) 2015-01-15 2019-06-04 Huawei Technologies Co., Ltd. Method and apparatus for processing memory page in memory
CN106933499A (en) * 2015-12-31 2017-07-07 北京京存技术有限公司 A kind of method and apparatus for improving MLC flash systematic function
CN106935259A (en) * 2015-12-31 2017-07-07 北京京存技术有限公司 Flash memory system and its method and apparatus for avoiding redundancy backup LSB page
CN106933499B (en) * 2015-12-31 2020-01-17 北京京存技术有限公司 Method and device for improving performance of MLC flash memory system
CN106445740A (en) * 2016-09-22 2017-02-22 深圳市先天海量信息技术有限公司 Control method and control system for NAND flash memory data in solid state disk
CN106778369A (en) * 2016-11-09 2017-05-31 百望金赋科技有限公司 A kind of hard disk data access method, tax control server
CN108089991A (en) * 2016-11-23 2018-05-29 广明光电股份有限公司 The method that solid state disk rebuilds the table of comparisons
CN108664210B (en) * 2017-03-31 2024-04-05 北京忆恒创源科技股份有限公司 IO command control method, IO command control system and solid-state storage device
CN108664210A (en) * 2017-03-31 2018-10-16 北京忆恒创源科技有限公司 A kind of method and control system, solid storage device of I/O command control
CN108733575A (en) * 2017-04-20 2018-11-02 立而鼎科技(深圳)有限公司 Method for reconstructing, solid state disk of the logic to physical image table after a kind of power-off restarting
CN107273309A (en) * 2017-05-19 2017-10-20 瑞斯康微电子(深圳)有限公司 A kind of serial flash data guard method and device
CN107506137A (en) * 2017-08-11 2017-12-22 记忆科技(深圳)有限公司 A kind of method for lifting solid state hard disc write performance
CN108255630A (en) * 2017-11-29 2018-07-06 深圳忆联信息系统有限公司 A kind of method for reducing solid state disk powered-off fault processing time
CN108170562B (en) * 2018-01-12 2020-10-09 深圳大普微电子科技有限公司 Solid state disk and data processing method and system thereof
US11307936B2 (en) 2018-01-12 2022-04-19 Shenzhen Dapu Microelectronics Co., Ltd. Solid-state drive data security
CN109753241A (en) * 2018-12-05 2019-05-14 新华三技术有限公司合肥分公司 Method for writing data and device, the computer readable storage medium of solid state hard disk
CN109753241B (en) * 2018-12-05 2022-04-08 新华三技术有限公司合肥分公司 Data writing method and device for solid state disk and computer readable storage medium
CN111324290A (en) * 2018-12-14 2020-06-23 北京兆易创新科技股份有限公司 Memory device
CN111399751A (en) * 2019-01-02 2020-07-10 慧荣科技股份有限公司 Flash memory controller, method for managing flash memory module and related electronic device
CN111399751B (en) * 2019-01-02 2023-07-18 慧荣科技股份有限公司 Flash memory controller, method for managing flash memory module and related electronic device
CN110580130A (en) * 2019-08-21 2019-12-17 天津大学 Method for writing data into flash memory module for preventing influence of power interruption
CN113641532A (en) * 2020-04-27 2021-11-12 宇瞻科技股份有限公司 Solid state disk data backup and restoration method based on paging mode
CN113641532B (en) * 2020-04-27 2023-06-20 宇瞻科技股份有限公司 Solid state disk data backup and restoration method based on paging mode
CN112015339B (en) * 2020-08-20 2024-03-22 合肥康芯威存储技术有限公司 Data storage system, data storage method and data storage system of memory
CN112015339A (en) * 2020-08-20 2020-12-01 合肥康芯威存储技术有限公司 Data storage system, data storage method and storage system of memory
CN111949220B (en) * 2020-09-03 2023-12-08 合肥沛睿微电子股份有限公司 Abnormal power-off recovery method of storage device and storage device
CN111949220A (en) * 2020-09-03 2020-11-17 合肥沛睿微电子股份有限公司 Abnormal power failure recovery method for storage device and storage device
CN112527204A (en) * 2020-12-15 2021-03-19 深圳星火半导体科技有限公司 Storage method and device
WO2022142544A1 (en) * 2020-12-29 2022-07-07 深圳大普微电子科技有限公司 Method for preventing data loss from flash memory, solid state drive controller, solid state drive
CN112632643A (en) * 2020-12-29 2021-04-09 深圳大普微电子科技有限公司 Method for preventing flash memory data loss, solid state disk controller and solid state disk
CN113448778A (en) * 2021-07-15 2021-09-28 华东师范大学 Backup method for key data in hybrid SSD
CN114791868A (en) * 2022-06-22 2022-07-26 北京得瑞领新科技有限公司 Fault type detection method and device, computer equipment and readable storage medium
CN116126591A (en) * 2022-12-23 2023-05-16 北京熵核科技有限公司 Transaction mechanism of embedded system
CN116126591B (en) * 2022-12-23 2023-12-15 北京熵核科技有限公司 Transaction mechanism of embedded system
CN116541900A (en) * 2023-07-07 2023-08-04 深圳星火半导体科技有限公司 Storage management method, device, equipment and medium based on data protection
CN116541900B (en) * 2023-07-07 2024-04-05 深圳星火半导体科技有限公司 Storage management method, device, equipment and medium based on data protection

Similar Documents

Publication Publication Date Title
CN102591748A (en) Solid state disc and power failure protection method and system thereof
US8082389B2 (en) Apparatus and method for mirroring data between nonvolatile memory and a hard disk drive
US8327069B2 (en) Storage system and storage control apparatus provided with cache memory group including volatile memory and nonvolatile memory
US10139884B2 (en) Power loss protection for solid state drives
CN101483067B (en) Flash memory data writing method and flash memory controller
US8700949B2 (en) Reliability scheme using hybrid SSD/HDD replication with log structured management
US10372481B2 (en) Information processing device and system capable of preventing loss of user data
EP2646919B1 (en) Transaction log recovery
US8127182B2 (en) Storage utilization to improve reliability using impending failure triggers
CN1300696C (en) Memory controller and data storage method
US20090327803A1 (en) Storage control device and storage control method
CN103049070A (en) Cache data power failure protection method and computer equipment
CN102662790A (en) System and method for using over-provisioned data capacity to maintain a data redundancy scheme in a solid state memory
CN102576293A (en) Data management in solid-state storage devices and tiered storage systems
CN103092765B (en) Solid-state memory system, device and method for writing data
JP2004118837A (en) Method for storing data in fault tolerance storage sub-system, the storage sub-system and data formation management program for the system
CN105786400A (en) Heterogeneous hybrid memory module, system and storage method
US20110010582A1 (en) Storage system, evacuation processing device and method of controlling evacuation processing device
US20100115310A1 (en) Disk array apparatus
CN101625586A (en) Method, equipment and computer for managing energy conservation of storage device
JP7318367B2 (en) Storage control device and storage control program
JP4698710B2 (en) Storage system and power saving method thereof
JP2000357059A (en) Disk array device
US20170091048A1 (en) Storage method and device for solid-state drive
JP2007058873A (en) Device control device using nonvolatile memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120718