CN101673229A - Memory system and method for automatically backing up data stored by flash memory - Google Patents

Memory system and method for automatically backing up data stored by flash memory Download PDF

Info

Publication number
CN101673229A
CN101673229A CN200810149450A CN200810149450A CN101673229A CN 101673229 A CN101673229 A CN 101673229A CN 200810149450 A CN200810149450 A CN 200810149450A CN 200810149450 A CN200810149450 A CN 200810149450A CN 101673229 A CN101673229 A CN 101673229A
Authority
CN
China
Prior art keywords
archives
flash memory
access
storage system
driver element
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
CN200810149450A
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.)
Genesys Logic Inc
Original Assignee
Genesys Logic Inc
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 Genesys Logic Inc filed Critical Genesys Logic Inc
Priority to CN200810149450A priority Critical patent/CN101673229A/en
Publication of CN101673229A publication Critical patent/CN101673229A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Read Only Memory (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a memory system for automatically backing up data stored in a flash memory, which comprises the flash memory, a sensing unit and a driving unit, wherein the flash memory is used for storing a fist file; the sensing unit is used for sensing times of accessing the first file in the flash memory; and the driving unit is coupled with the flash memory, and is used for copying the first file to generate at least one second file when the times of accessing the first file exceeds a default value, and storing the at least one second file in the flash memory.

Description

The storage system of automatically backing up data stored by flash memory and method
Technical field
The present invention is relevant a kind of storage system and method that repeatedly backs up the archives of flash memory automatically, more particularly, is the storage system and the method for coming repeatedly to back up automatically the flash memory archives according to interpretation file accessing number of times about a kind of.
Background technology
Flash memory (Flash Memory) is the internal memory of non-volatile (non-volatile), still can preserve the data that before write when power-off.With other medium (as hard disk, floppy disk or tape etc.) relatively, flash memory has that volume is little, in light weight, do not have the machinery action when against shock, access postpones and characteristics such as low power consumption.Because these characteristics of flash memory, therefore data storage mediums such as consumption electronic products, embedded system or portable computer adopt all in a large number in recent years.
Flash memory mainly can divide two kinds: NOR type flash memory and NAND type flash memory.The advantage of NOR type flash memory is that low-voltage, access are fast and stability is high, therefore portable electronic devices and electronic communication equipment have been widely used in, such as personal computer (Personal Computer, PC), mobile phone, personal digital assistant (Personal Digital Assistance, PDA) and change frequently device (Set-top Box, STB) etc.NAND type flash memory is the flash memory that designs for data storage applications specially, is applied to store and preserve the storage medium of lot of data usually, as Portable memory card (SD Memory Card, Compact Flash Card, Memory Stick or the like).
Flash memory inside is made up of several blocks (block).Each block comprises several pages (page), each page then can be divided into data storage section and standby section (spare area), the data capacity of data storage section can be 2048 bytes, be used for storing the use data, the data capacity of standby section can be 64 bytes, be used for storing the error correcting code of being responsible for the corrigendum error in data (Error Correction Code, ECC).
Yet flash memory itself can't directly be changed data (update-in-place) in the original place, that is to say, if will be when writing Data Position and write data once more, and the action that execution is earlier erased.And the nand flash memory unit of writing is page or leaf, and the unit of erasing is a block.So write when request when sending to chip, the whole block of must erasing earlier could write to data the page or leaf of this block.And in general erase time that action needs of block is about 10~20 times of a page or leaf write activity time.If when a unit of erasing greater than the unit that writes, this expression be if will carry out the block action of erasing, and must be first active page in the block of desiring to erase be moved to other block and just can carry out.
Moreover (limited erase counts) is restricted for the number of times of erasing of flash memory.This is because write or read when operating in execution when flash memory, because the electric capacity in the reality all has the phenomenon of electric leakage, therefore when repeating to write or read, flash memory surpasses after 100,000 times, the potential difference (PD) that will cause this electric capacity to be stored is not enough to make floating lock stored charge deficiency, and then the data loss that causes this flash memory to store, severe patient more may make this flash memory begin to decay and can't carry out the running of reading.That is to say, surpassed available Number if a certain block often erases, can cause this block to write/erase stroke defect.,, claim promptly that this block is write to wear and when causing correctly sense data because the number of times of erasing is too much when a flash memory block.
Because flash memory has this kind age limit, therefore how to guarantee to be write under the situation of wearing at flash memory pages, still correct access data just becomes an important problem.At present known solution is before access data, judges earlier before the page data to be write in the less page of access times by the number of times of access again, and is comparatively average to guarantee the number of times that each page is used.Yet, it is higher that the page representation that access times are many is more write the probability of wearing, but be bound to write the phenomenon of wearing in the time of might not representing to write data next time, relatively, it is lower that the page representation that access times are few is more write the probability of wearing, but can write the phenomenon of wearing scarcely might not represent next time access data the time.Still have its shortcoming so write the mechanism of page of data according to the access times decision, therefore still have necessity of improvement.
Summary of the invention
In view of this, the present invention provides a kind of automatically storage system of backup repeatedly, is used for according to the number of times of file accessing original reproduction of documents being stored in the flash memory, when avoiding following original archives to damage, still has backup file to make the usefulness of access.
One of the present invention purpose provides a kind of storage system that repeatedly backs up automatically, and it comprises flash memory, detecting unit and driver element.This flash memory is used for storing several archives.This detecting unit is used for detecting the frequency of each file accessing in each flash memory of record.This driver element is coupled to this detecting unit and this flash memory, is used for this first reproduction of documents being produced second archives, and these second archives being stored in the flash memory when the access times of first archives of these several archives surpass first default value.
According to embodiments of the invention, this flash memory is a nand flash memory.
Another object of the present invention provides a kind of method of automatically backing up data stored by flash memory, and it comprises: the number of times of first file accessing in the detecting flash memory; And when the access times of these archives surpass default value, this first reproduction of documents is produced at least the second archives, and these second archives are stored in the flash memory.
For foregoing of the present invention can be become apparent, a preferred embodiment cited below particularly, and cooperate appended graphicly, be described in detail below:
Description of drawings
Fig. 1 is that the present invention is used for the functional block diagram of system of automated back-up flash memory archives.
Fig. 2 is the method flow diagram that the present invention repeatedly backs up the archives of flash memory automatically.
Embodiment
See also Fig. 1, Fig. 1 is that the present invention is used for the functional block diagram of system of automated back-up flash memory archives.System comprises main frame 10 and flash memory device 20.But main frame 10 can be desktop PC, notebook, industrial computer or recording playback DVD playing device or the like, and it comprises operating system 30, controller 40, driver element 60 and detecting unit 50.Flash memory device 20 comprises nand flash memory, is used for storing data.Flash memory device 20 is SD (Secure Digital) memory card, MMC (MultiMedia Card) memory card, CF (Compact Flash) memory card, MD (Micro Drive) memory card, MS (Memory Stick) memory card, SM (Smart Media) memory card or XD (eXtreme Digital) memory card.Driver element 60 is software program code or hardware circuit.
Please together consult Fig. 1 and Fig. 2, Fig. 2 is the present invention's the method flow diagram that repeatedly backs up the archives of flash memory 20 automatically.As shown in Figure 2, method step of the present invention is as follows:
Step 200: beginning.
Step 202: send access command with access first archives.
Step 204: judge the form of these first archives, if these first archives meet first form, execution in step 206 is if these first archives meet second form, execution in step 208.
Step 206: whether the access times of judging first archives surpass first default value.If, execution in step 210, if not, execution in step 212.
Step 208: whether the access times of judging first archives surpass second default value.If, execution in step 218, if not, execution in step 222.
Step 210: duplicating these first archives is at least one second archives, and should be stored in the flash memory by at least one second archives.
Step 212: these first archives of access.
Step 214: these first archives of access or this at least one second archives.
Step 216: duplicating these first archives is at least one third gear case, and should at least one third gear case be stored in the flash memory.
Step 218: these first archives of access or this at least one third gear case.
Step 220: finish.
When main frame 10 sees through operating system 30 and assigns the archives A that an access command stored with access flash memory device 20 (step 202), driver element 60 can determine the data of archives A in access flash memory device 20 according to this access command by driving governor 40, and judges the data layout (step 204) of archives A.If archives A is an image file, its form meets first form (for example mpeg format), and then driver element 60 can be judged the number of times (step 206) of the previous access of image file with reference to detecting unit 50.If its access times surpass first default value, expression archives A by the number of times of access still in safe range, so archives A (step 212) in the direct access flash-memory storage system 20.Otherwise, if its access times surpass first default value, expression archives A has been surpassed in the safe range by the number of times of access, the probability that its file data damages is higher, therefore driver element 60 can be copied into more than one another archives A ' with archives A by driving governor 40, and several archives A ' also is stored in other untapped block (step 210) of flash-memory storage system 20.Next, driver element 60 meeting driving governors 40 are accessing file A or archives A ' (step 214) randomly, in another embodiment of the present invention, driver element 60 can driving governors 40 according to archives A and the second archives A ' by the number of times of access, decision accessing file A or archives A '.For instance, when archives A or archives A ' were by access at every turn, detecting unit 50 can be detected the access times of record archives.Suppose detecting unit 50 record archives A access times more for a long time, and when then receiving access command, driver element 60 will be selected accessing file A ' by driving governor 40 next time.Thus, archives A or the access times of archives A ' just can mean allocation.
If archives A belongs to text file, then driver element 60 can be judged the number of times (step 208) of text file A access before with reference to detecting unit 50.If its access times surpass second default value, expression archives A by the number of times of access still in safe range, so archives A (step 212) in the direct access flash-memory storage system 20.Otherwise, if its access times surpass second default value, expression archives A has been surpassed in the safe range by the number of times of access, the probability that its file data damages is higher, therefore driver element 60 can driving governors 40 be copied into more than one another archives A with archives A ", and with several archives A " also be stored in other untapped block (step 216) of flash-memory storage system 20.Next, driver element 60 is understood driving governors 40 accessing file A or archives A randomly " (step 218).Because the characteristic of archives is also inequality, so in preferred embodiment, can set different default values at different archives characteristic (for example image file, text file) driver element 60, for example text file can be set the second bigger default value, and image file is set the first less default value.In another embodiment, whether all archives all only duplicate according to the decision of the number of times of access, that is execution in step 204 no longer.
Note that File Format and default value setting viewable design person need adjust, the foregoing description only is used as explanation, the non-category that is used for limiting the present invention.
Compared to prior art, see through mechanism of the present invention, when the file accessing number of times surpasses default value, represent that these archives are more by the chance of access, for avoiding archives to damage, so these archives of the automatic copy backup of meeting of the present invention, afterwards again during these archives of access because of access repeatedly, automatically the archives after access is backed up, the risk that causes archives to be damaged to reduce the same archives of repeatedly access.
In sum; though the present invention discloses as above with preferred embodiment; but this preferred embodiment is not in order to restriction the present invention; the those of ordinary skill in this field; without departing from the spirit and scope of the present invention; all can do various changes and retouching, so protection scope of the present invention is as the criterion with the scope that claim defines.

Claims (12)

1. the storage system of an automatically backing up data stored by flash memory, it comprises:
One flash memory is used for storing first archives; It is characterized in that: described storage system comprises:
One detecting unit is used for detecting the number of times of first file accessing in the described flash memory; And
One driver element is coupled to described flash memory, is used for described first reproduction of documents being produced at least one second archives, and described at least one second archives being stored in the described flash memory when the access times of described first archives surpass a default value.
2. storage system according to claim 1 is characterized in that: described flash memory is a nand flash memory.
3. storage system according to claim 1 is characterized in that: described driver element is used for judging the form of each archives in addition.
4. storage system according to claim 3, it is characterized in that: described driver element is used for when the access times that the form of judging described first archives belongs to a default form and described first archives surpass this default value, described first reproduction of documents is produced at least one second archives, and described at least one second archives are stored in the described flash memory.
5. storage system according to claim 1, it is characterized in that: described storage system comprises controller in addition, described driver element is used for driving described first archives of described controller access randomly or described at least one second archives in receiving one second access command when reading described first archives.
6. storage system according to claim 1, it is characterized in that: described driver element is used in receiving second access command when reading described first archives, according to first archives and described at least one second archives by the number of times of access, decision described first archives of access or described at least one second archives.
7. the method for an automatically backing up data stored by flash memory, it comprises:
Detect the number of times of one first file accessing in the flash memory; And
When the access times of described archives surpass a default value, described first reproduction of documents is produced at least one second archives, and described at least one second archives are stored in the described flash memory.
8. method according to claim 7 is characterized in that: described flash memory is a nand flash memory.
9. method according to claim 7 is characterized in that: described method comprises the form of judging described archives in the described flash memory in addition.
10. method according to claim 9, it is characterized in that: when the access times that belong to a default form and described first archives when the form of described first archives surpass described default value, described first reproduction of documents is produced at least one second archives, and described at least one second archives are stored in the described flash memory.
11. method according to claim 10 is characterized in that: described driver element is used in receiving one second access command when reading these first archives, described first archives of access randomly or described at least one second archives.
12. method according to claim 7 is characterized in that: described method comprises in addition:
When receiving one second access command when reading described first archives, according to described first archives and described at least one second archives by the number of times of access, decision described first archives of access or described at least one second archives.
CN200810149450A 2008-09-10 2008-09-10 Memory system and method for automatically backing up data stored by flash memory Pending CN101673229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810149450A CN101673229A (en) 2008-09-10 2008-09-10 Memory system and method for automatically backing up data stored by flash memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810149450A CN101673229A (en) 2008-09-10 2008-09-10 Memory system and method for automatically backing up data stored by flash memory

Publications (1)

Publication Number Publication Date
CN101673229A true CN101673229A (en) 2010-03-17

Family

ID=42020462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810149450A Pending CN101673229A (en) 2008-09-10 2008-09-10 Memory system and method for automatically backing up data stored by flash memory

Country Status (1)

Country Link
CN (1) CN101673229A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119829A (en) * 2015-09-07 2015-12-02 中国联合网络通信集团有限公司 Method, device and system for data transmission
CN107943614A (en) * 2017-10-27 2018-04-20 捷开通讯(深圳)有限公司 Intelligent terminal data backup method, intelligent terminal and the device with store function
CN108694334A (en) * 2017-04-11 2018-10-23 精品科技股份有限公司 System for limiting file processing quantity
CN109716282A (en) * 2018-12-07 2019-05-03 长江存储科技有限责任公司 Method for programmed memory system
CN112988665A (en) * 2019-12-17 2021-06-18 英属维京群岛商联存系统股份有限公司 Method for copying and archiving data of storage device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119829A (en) * 2015-09-07 2015-12-02 中国联合网络通信集团有限公司 Method, device and system for data transmission
CN108694334A (en) * 2017-04-11 2018-10-23 精品科技股份有限公司 System for limiting file processing quantity
CN107943614A (en) * 2017-10-27 2018-04-20 捷开通讯(深圳)有限公司 Intelligent terminal data backup method, intelligent terminal and the device with store function
CN109716282A (en) * 2018-12-07 2019-05-03 长江存储科技有限责任公司 Method for programmed memory system
CN109716282B (en) * 2018-12-07 2020-06-26 长江存储科技有限责任公司 Method for programming a memory system
US10998062B2 (en) 2018-12-07 2021-05-04 Yangtze Memory Technologies Co., Ltd. Method for programming a memory system
US11475964B2 (en) 2018-12-07 2022-10-18 Yangtze Memory Technologies Co., Ltd. Method for programming a memory system
CN112988665A (en) * 2019-12-17 2021-06-18 英属维京群岛商联存系统股份有限公司 Method for copying and archiving data of storage device

Similar Documents

Publication Publication Date Title
US7934053B2 (en) Flash memory storage device for adjusting efficiency in accessing flash memory
TWI385523B (en) Data backup method for a flash memory and controller and storage system using the same
US8533385B2 (en) Method for preventing read-disturb happened in non-volatile memory and controller thereof
US9165667B2 (en) Electronic device with solid state drive and associated control method
KR101566849B1 (en) Method for managing memory apparatus, associated memory apparatus thereof and associated controller thereof
TW200937422A (en) Data reading method for flash memory, controller and system therof
CN111475425B (en) Method for managing flash memory module and related flash memory controller and electronic device
US20120290781A1 (en) Nonvolatile memory device with increased endurance and method of operating the same
CN107423231B (en) Method for managing a memory device, memory device and controller
US8352807B2 (en) Semiconductor memory device, host device and semiconductor memory system
US9384125B2 (en) Method for accessing flash memory having pages used for data backup and associated memory device
CN101673229A (en) Memory system and method for automatically backing up data stored by flash memory
CN101645026B (en) Storage device for updating flash memory pages according to error-correcting codes and method thereof
TWI451247B (en) Data writing method, memory controller and memory storage apparatus
CN102880432A (en) Method and system for increasing writing speeds of flash memory chips by aid of limited lives of data and controller of system
CN107193485B (en) Storage device, control unit thereof and data storage method for storage device
CN113138720A (en) Data storage method, memory control circuit unit and memory storage device
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN102543184B (en) Memorizer memory devices, its Memory Controller and method for writing data
JP4717907B2 (en) System and method for protecting access of flash memory device
US20110087828A1 (en) Method for enhancing performance of accessing a flash memory, and associated memory device and controller thereof
US7206893B2 (en) Linking method under mother and child block architecture for building check area and logic page of the child block
US20100037004A1 (en) Storage system for backup data of flash memory and method for the same
CN101546297B (en) System and method thereof for protecting access of flash memory
US8725930B2 (en) Semiconductor memory device

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