US8468293B2 - Restore index page - Google Patents

Restore index page Download PDF

Info

Publication number
US8468293B2
US8468293B2 US12/509,071 US50907109A US8468293B2 US 8468293 B2 US8468293 B2 US 8468293B2 US 50907109 A US50907109 A US 50907109A US 8468293 B2 US8468293 B2 US 8468293B2
Authority
US
United States
Prior art keywords
index
block
memory
page
metadata
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, expires
Application number
US12/509,071
Other versions
US20110022780A1 (en
Inventor
Nir Jacob Wakrat
Vadim Khmelnitsky
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.)
Apple Inc
Original Assignee
Apple 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 Apple Inc filed Critical Apple Inc
Priority to US12/509,071 priority Critical patent/US8468293B2/en
Assigned to APPLE INC. reassignment APPLE INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KHMELNITSKY, VADIM, WAKRAT, NIR JACOB
Priority to PCT/US2010/042696 priority patent/WO2011011480A1/en
Priority to CN201080032931.XA priority patent/CN102483714B/en
Priority to EP20100170700 priority patent/EP2282267A1/en
Priority to KR1020100071571A priority patent/KR101257989B1/en
Publication of US20110022780A1 publication Critical patent/US20110022780A1/en
Priority to KR1020110100232A priority patent/KR20110117045A/en
Publication of US8468293B2 publication Critical patent/US8468293B2/en
Application granted granted Critical
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7201Logical to physical mapping or translation of blocks or pages

Definitions

  • This subject matter is generally related to memory mapping.
  • Flash memory is a type of electrically erasable programmable read-only memory (EEPROM). Because flash memories are non-volatile and relatively dense, they are used to store files and other persistent objects in handheld computers, mobile phones, digital cameras, portable music players, and many other devices in which other storage solutions (e.g., magnetic disks) are inappropriate. Unfortunately, flash suffers from two limitations. First, bits can only be cleared by erasing a large block of memory. Second, each block can only sustain a limited number of erase operations, after which it can no longer reliably store data. Due to these limitations, complex data structures and algorithms are often required to effectively use flash memories. These algorithms and data structures are used to support efficient not-in-place updates of data, reduce the number of erase operations, and level the wear of the blocks in the device.
  • EEPROM electrically erasable programmable read-only memory
  • Flash memories do not support in-place updates or rewrites to physical memory pages unless the block containing the page is erased first.
  • a hardware and/or software layer is often added to the flash subsystem.
  • This layer often referred to as a flash translation layer (FTL)
  • FTL flash translation layer
  • the FTL is implemented as a controller in hardware.
  • the controller can include a processor or microcontroller along with small amounts of volatile memory (e.g., RAM).
  • the controller can be responsible for translating a read/write request from the file system (e.g., a logical sector) into a read/write operation on a specific block of flash, and initiating “garbage collection” (GC) to erase dirty blocks and reclaim free blocks.
  • file system e.g., a logical sector
  • GC garbage collection
  • Flash devices can store the mapping of logical sectors to physical memory pages.
  • the FTL can use this stored mapping to identify the physical location of logical sector. If a portion (e.g., a page) of the stored mapping is lost (e.g., data corrupted), the FTL may not be able to translate and perform read/write requests from the file system.
  • index pages map logical sectors into physical pages. Additional data structures in volatile and non-volatile memory can be used by the techniques for restoring index pages.
  • a lookup table associated with data blocks in non-volatile memory can be used to provide information regarding the mapping of logical sectors into physical pages.
  • a lookup table associated with data blocks and a range of logical sectors and/or index pages can be used.
  • the disclosed index page restoring techniques provide several advantages over conventional index page restoring techniques in flash memory. Some of these advantages include but are not limited to: 1) enabling restoration of a single index page without having to do a full-mount of the file system, and 2) enabling run-time restoration of a missing index page, and 3) eliminating the need to reboot a device in order to restore a lost index page.
  • FIG. 1A is a block diagram illustrating an example memory mapping architecture 100 for mapping logical sectors into physical pages using lookup tables.
  • FIG. 1B is a block diagram illustrating an example data block that contains data pages and an associated block TOC.
  • FIGS. 2A-2B are flow diagrams of an example index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B .
  • FIGS. 3A-3B are flow diagrams of another example index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B .
  • FIG. 4 is a flow diagram of an example delayed index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B .
  • FIG. 5A is a block diagram of example memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6 - 7 .
  • FIG. 5B is a block diagram illustrating the system architecture of an example device including a memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6 - 7 .
  • FIG. 6 is a block diagram of an example index super block that can be used to restore a lost index page within the memory architecture described above with regard to FIGS. 1A-1B .
  • FIG. 7 is a flow diagram of an example index page restore operation using a super block within the memory mapping architecture shown in FIGS. 1A-1B and 6 .
  • FIG. 1A is a block diagram illustrating an example memory mapping architecture 100 for mapping logical sectors into physical pages using lookup tables.
  • a lookup table 102 in volatile memory e.g., RAM
  • the lookup table 106 holds the physical addresses of data pages 108 .
  • a cache 104 in volatile memory holds the physical addresses of recently written logical sectors to allow faster readout.
  • the lookup table 102 is also referred to as a index TOC 102
  • the lookup table 106 is also referred to as the index table 106 or index page
  • the cache 104 is also referred to as the index table cache 104 .
  • the index TOC 102 enables the index table 106 to be stored in the non-volatile memory. This is advantageous since the small amount of RAM that is typically available in controllers cannot be scaled due to a rise in cost, area and power consumption of the controller.
  • the volatile memory can be dynamically configured based on its availability or other trigger events and/or operational modes.
  • the index table 106 is depicted as having example index pages 1 -N. Each of the example index pages 1 -N maps logical sectors to various data pages 108 .
  • the data pages 108 are depicted as being contained in data blocks 1 -N.
  • the example index page 1 maps logical sectors to data block 1 and data block N. If an index page is lost (e.g., page data is corrupted, etc.), the logical sector to data page mappings contained in the index page are also lost. Techniques for restoring the content of a lost index page are described below.
  • the data pages 108 are depicted as containing example block TOCs 1 -N. Each of the block TOCs is depicted as corresponding to a data block.
  • a block TOC can be stored in the corresponding data block and can include information that maps pages in the block to logical sectors. As described in further detail below, block TOCs associated with data blocks can be used to recreate a lost index page.
  • FIG. 1B is a block diagram illustrating an example data block 120 that contains data pages and an associated block TOC 122 .
  • the example data block 120 includes data pages 1 -N.
  • the block TOC 122 is shown as being a portion of page N.
  • the block TOC 122 can store information mapping the data pages 1 -N to corresponding logical sectors.
  • a data block can be associated with a block table 110 (also referred to as a block array) stored in volatile memory that can include: a block status data (e.g., free, bad, allocated, current), a valid pages number, an erase count and an error correction code (ECC) fix count.
  • the block table 110 can also include a data block age structure 112 that lists the data blocks from newest (e.g., block most recently written) to oldest (e.g., block least recently written).
  • the block table 110 can additionally include a data block range structure 114 that provides a range (e.g., minimum and maximum) of logical sectors to which each data block corresponds.
  • the data block range structure 114 can provide a range (e.g., minimum and maximum) of index pages in the index table 106 to which each data block corresponds.
  • the data block range structure 114 can be implemented across data block entries in the block table 110 .
  • each entry of the index TOC 102 stores a physical address in non-volatile memory of an index table 106 entry and a pointer to an entry in the index table cache 104 .
  • the address 0xff or other suitable indicator can be placed in a index TOC 102 entry to indicate that a desired index table 106 entry is not stored in the index table cache 104 .
  • the following structures need to be allocated in volatile memory (e.g., RAM): a number of free entries in the index table cache, a current data block (e.g., a block that is being used for write or update operations), a pointer to a next free page in the current block, a current block TOC (e.g., a TOC stored in a block that includes information for mapping logical sectors to pages in the block), a current index block (e.g., a block that is being used for index updates), a pointer to a next free page in the index block, a current index block TOC and a number of free blocks.
  • volatile memory e.g., RAM
  • each entry of the index table cache 104 can include but is not limited to: a buffer to hold data (e.g., a 2K buffer), status data (e.g., clean, dirty, free), a counter (e.g., a serial counter or count indicating how many times that particular block has been accessed).
  • a buffer to hold data e.g., a 2K buffer
  • status data e.g., clean, dirty, free
  • a counter e.g., a serial counter or count indicating how many times that particular block has been accessed.
  • FIGS. 2A-2B are flow diagrams of an example index page restore operation 200 using the memory mapping architecture shown in FIGS. 1A-1B .
  • the operation 200 restores a lost index page using the data page to logical sector mappings contained in block TOCs of data blocks.
  • the operation 200 can begin by receiving a request to read from or write to a data page in non-volatile memory ( 202 ).
  • an index table e.g., the index table 106
  • the index page that contains the logical to physical address mapping for the requested data page can be identified as lost ( 203 ).
  • An index page can be identified as lost if the page includes a threshold number of errors (e.g., one error, two errors, etc.). For example, the index page can be identified as lost if an error is contained in the logical to physical address mapping sought in step 202 .
  • the newest data block (e.g., the data block most recently written) in non-volatile memory is selected ( 204 ) and the block TOC associated with the selected block is read ( 205 ).
  • the newest data block can be identified from a structure in volatile memory, such as the data block age structure 112 in the block table 110 . If any of the pages in the selected data block correspond to the lost index page ( 206 ), then an entry for each corresponding page is added to the lost index page ( 208 ).
  • a data page can be determined to correspond to the lost index page if the data page is mapped to by a logical sector contained in the lost index page.
  • the data page to index mapping contained in a block TOC can be referenced to make such a determination.
  • the lost index page is not full (e.g., has not been completely reconstructed) after adding the entry ( 212 ), or if none of the pages in the selected data block correspond to the lost index page, then the next newest data block in non-volatile memory is selected ( 210 ) and the steps 205 and 206 are repeated. This cycle of selecting a data block and comparing its block TOC against the logical sectors of the lost index page is repeated until the lost index page has been fully reconstructed. Once the lost page is full (e.g., reconstructed), the entries in the reconstructed index page can be cross-referenced with the file system to identify deleted (reclaimed) data pages ( 214 ). The index page can be responsible for tracking data pages that are free. To ensure that the reconstructed index page accurately lists the free data pages, cross-referencing with the file system can be used. In some implementations, a data block may store metadata (such as in the block TOC) that indicates whether a data page is free or in use.
  • the data stored in an index block (e.g., a block of index pages in the index table 106 ) of the reconstructed index page can be moved to a newly allocated block in non-volatile memory ( 216 ).
  • An error on an index page can be indicative of a physical problem with the block within which the reconstructed index page resides. Given the importance of index pages to operation of the memory architecture 100 , it may be advantageous to move data from a potentially problematic block to a new block in non-volatile memory.
  • the index page restore operation 200 can be described in pseudo code as follows:
  • Step 1 Receive notification of an index page to restore.
  • Step 2 Compare the block TOC for the newest data block to the logical sectors covered by the lost index page.
  • Step 3 If any pages in the newest data block are covered by the lost index page, then add an entry for each corresponding page to the lost index page.
  • Step 4 If the lost index page is not full (e.g., the index page has not been fully reconstructed), then repeat steps 2-4 for the next newest data block.
  • Step 5 If the lost index page is full (e.g., the index page has been fully reconstructed), then cross-reference the reconstructed index page with the file system to identify deleted (reclaimed) pages (optional).
  • Step 6 Move the data in the index block of the lost index page to a newly allocated block of non-volatile memory (optional).
  • a brute-force reconstruction can be performed whereby the data blocks and their associated block TOCs are sequentially reviewed to reconstruct a lost page.
  • the operation 200 attempts to more efficiently locate the data blocks relevant to a lost index page by searching the data blocks according to the age of the data blocks.
  • the operation 200 may more quickly locate relevant data blocks and, as a corollary, more quickly reconstruct the lost index page than a brute-force approach. Reviewing data blocks in increasing order based on a block's age ensures that the most current copy of each logical sector is available while moving from “newest” to “oldest.”
  • FIGS. 3A-3B are flow diagrams of another example index page restore operation 300 using the memory mapping architecture shown in FIGS. 1A-1B .
  • the operation 300 restores a lost index page using data block to logical sector/index page ranges (e.g., data block range structure 114 ) and the data page to logical sector mappings contained in block TOCs of data blocks.
  • data block to logical sector/index page ranges e.g., data block range structure 114
  • the operation 300 can begin by receiving a request to read from or write to a data page in non-volatile memory ( 302 ).
  • an index table e.g., the index table 106
  • the index page that contains the logical to physical address mapping for the requested data page can be identified as lost ( 303 ), similar to the description of identifying lost index pages as described above with regard to FIG. 2A .
  • a range associated with a data block is identified ( 304 ).
  • the range (e.g., minimum and maximum) can be a range of logical sectors or a range of index pages in non-volatile memory that are covered by the data block. Holes of coverage by the data block within a range can be ignored (e.g., a portion in the middle of the range that is not covered by the data block can be ignored).
  • the identified range corresponds to the lost index page ( 306 )
  • the identified data block can be added to a list of data blocks to be reviewed ( 308 ).
  • An identified range can correspond to an index page if a logical sector covered by the index page falls within the identified range (if the range cover logical sectors) or if the index page itself falls within the identified range (if the range covers index pages). If there are more data block ranges to compare against the lost index page ( 310 ), then the steps 304 - 310 are repeated. The steps 304 - 310 can be repeated until a range for each data block has been compared.
  • a data block is selected from the list of data blocks to be reviewed ( 312 ). Similar to a portion of operation 200 described above with regard to FIGS. 2A-2B , a block TOC associated with the selected data block is read ( 314 ) and if any of the pages in the selected data block correspond to the lost index page ( 316 ), then an entry is added to the lost index page for each corresponding page in the selected data block ( 318 ). If the lost index page is not full (e.g., reconstruction is not yet complete) ( 320 ) or if none of the pages in the selected data block correspond to the lost index page ( 316 ), then the list of data blocks to be reviewed is consulted.
  • the steps 312 - 322 are repeated.
  • the steps 312 - 322 can be repeated until the index page has been reconstructed or there are no more data blocks on the list. If the lost index page is full (e.g., no remaining holes in the index) ( 320 ) or all data blocks have been scanned (e.g., no more data blocks to examine) ( 322 ), then the index restore operation has been completed.
  • the lost index page is full ( 320 ) or if there are no more data blocks on the list of data blocks to be reviewed ( 322 ), then the entries contained in the reconstructed index page can be cross-referenced with the file system to identify deleted pages ( 324 ), similar to the cross-referencing described above with reference to FIG. 2B .
  • Data stored in the index block of the lost index page can be moved to a newly allocated block of non-volatile memory ( 326 ), similar to the moving of data to a new block described above with regard to FIG. 2B .
  • the index page restore operation 300 can be described in pseudo code as follows:
  • Step 1 Receive notification of an index page to restore.
  • Step 2 Compare the lost index page to a range of logical sectors/index pages for a data block.
  • Step 3 If the index page falls within the range, then add the data block to a list of data blocks to be reviewed.
  • Step 4 Repeat steps 2-3 for each data block.
  • Step 5 Select a data block from the list of data blocks to be reviewed.
  • Step 6 Compare the block TOC for the selected data block to the logical sectors covered by the lost index page.
  • Step 7 If any pages in the selected data block are covered by the lost index page, then add an entry for each corresponding page to the lost index page.
  • Step 8 If the lost index page is not full (e.g., the index page has not been fully reconstructed), then repeat steps 5-8 for the each data block on the list of data blocks to be reviewed.
  • Step 9 If the lost index page is full (e.g., the index page has been fully reconstructed), then cross-reference the reconstructed index page with the file system to identify deleted (reclaimed) pages (optional).
  • the restored index page may be moved to another page of non-volatile memory.
  • Data errors that caused the index restore operation to be performed can indicate a physical problem with the memory block within which the index page is stored.
  • the data in the index block of the lost index page can be moved to a newly allocated block of non-volatile memory.
  • the index page restore operation 300 can provide the following advantages: 1) relevant data blocks can be more quickly identified (e.g., instead of reading block TOCs from non-volatile memory to determine relevance, page ranges from volatile memory can be accessed and compared against the lost index page) and 2) index page restore efficiency can be increased (e.g., only relevant data blocks are read from non-volatile memory).
  • FIG. 4 is a flow diagram of an example delayed index page restore operation 400 using the memory mapping architecture shown in FIGS. 1A-1B .
  • the operation 400 immediately restores a requested logical sector to data page mapping in a lost index page and then schedules restoration of the index page for a later time when the device is idle.
  • the operation 400 can begin by receiving a request to read from or write to a data page in non-volatile memory ( 402 ).
  • an index table e.g., the index table 106
  • the index page that contains the logical to physical address mapping for the requested data page can be identified as lost ( 404 ), similar to the description of identifying lost index pages as described above with regard to FIG. 2A .
  • the physical address for the requested data page can be located ( 406 ) using a variety of index page restore techniques, such as operation 200 , operation 300 , or the brute-force technique described above.
  • index page restore operations 200 and 300 as described above with regard to FIGS. 2A-2B and 3 A- 3 B, could be modified to locate and restore a single entry within a lost index page instead of the entire index page.
  • an entry for the requested data page can be added to the lost index page ( 408 ).
  • the received request to read from or write to the requested data page can be performed using the located physical address.
  • the flash memory device within which the operation is being performed may be a cell phone, a portable media player, an embedded device, etc. Each of these devices will experience idle time when a user is not actively using them. For instance, a portable media player experiences idle time when it is not playing media (e.g., video, music, etc.) or receiving input from a user.
  • the remaining portions e.g., the portions not corresponding to the requested data page
  • the remaining portions are reconstructed ( 412 ).
  • reconstruction of the remaining portions of the lost index page is scheduled for a idle period when the flash memory device is either receiving power from an external source (e.g., device is being charged) or when a portable power source is above a threshold level (e.g., battery has over 50% charge).
  • restoring an index page can be an intensive process for the flash memory device that may reduce the charge of the device.
  • Reconstruction of an index page can additionally be a time intensive task. By reconstructing only the immediately needed portion of a lost index page, the operation 400 can permit the device performing the operation to process the request and restore the index page at a future time without affecting performance while the device is in use.
  • FIG. 5A is a block diagram of example memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6 - 7 .
  • the subsystem 500 can include a controller 502 , non-volatile memory 504 and host interface 506 .
  • the controller 502 can include volatile memory 510 (e.g., RAM) and processor 508 .
  • the volatile memory 510 stores a block TOC 512 , a block table 513 and an index table cache 514 .
  • the volatile memory 510 can be configured dynamically by the processor 508 based on availability and any other suitable factors.
  • the non-volatile memory 504 can include an index table 516 and data pages 518 .
  • the subsystem 500 can include other components that have been omitted from FIG. 5 for clarity.
  • the host interface 506 can obtain read/write requests from a host system over a bus (e.g., IDE/ATT).
  • the host interface 506 can include circuitry and software for receiving data, addresses and control signals.
  • the read/write requests can include a logical sector number and a number of consecutive logical sectors to read/write.
  • the processor 508 can access the volatile memory 510 and read the index TOC 512 to determine if the index table cache 514 includes physical addresses for the logical sector. If the index table cache 514 includes the physical addresses, then the physical addresses are used for the read/write operation. If the index table cache 514 does not include the physical addresses, then the processor 508 accesses volatile memory 510 to read the index TOC 512 to get the page address of the index table 516 in the non-volatile memory 504 . The processor 508 can use the physical addresses in the index table 516 to perform a memory mapping to data pages 518 during the read/write operation.
  • the block table 513 can store the block allocation numbers for blocks which can be used to determine the newest data block.
  • the block table 513 can store ranges of logical sectors and/or index pages for data blocks, as described with reference to FIGS. 1A , 2 A- 2 B, and 3 A- 3 B.
  • range information for a block can be kept in memory and updated during a block update.
  • range information for a block can be identified by reading out a block TOC and scanning it to determine the range for the associated block.
  • the data pages 518 , index TOC 512 and/or index table 516 can be implemented on one or more different memory devices.
  • FIG. 5B is a block diagram illustrating an example device 520 including a memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6 - 7 .
  • the device 520 is a portable device, such as a media player device, a personal digital assistant, a mobile phone, portable computers, digital cameras, and so on, for example.
  • the device 520 includes a host controller (or a so-called “System-on-Chip” or “SoC”) 522 and non-volatile memory 528 .
  • the device 520 can optionally include additional memory external to the host controller 522 and the non-volatile memory 528 .
  • the host controller 522 includes one or more processors 524 and volatile memory 526 .
  • volatile memory 526 is static random-access memory (SRAM).
  • SRAM static random-access memory
  • the host controller 522 performs various processing operations and input/output operations, including the operations described in reference to FIGS. 2-4 .
  • the host controller 522 can receive and process user inputs, generate outputs, perform media (e.g., audio, video, graphics) decoding and processing operations, other processing operations, and so on.
  • the host controller 522 can read data from and write data to volatile memory 526 .
  • the host controller 522 can also issue read or write operations to the non-volatile memory 528 through an interface (not shown).
  • the non-volatile memory 528 is NAND flash memory. In some other implementations, the non-volatile memory 528 is another type of non-volatile memory, such as NOR flash memory, other types of solid state memory, or a hard disk drive, for example.
  • the device 520 can also include one or more other components that have been omitted from FIG. 5B for clarity.
  • FIG. 6 is a block diagram of an example index super block 600 that can be used to restore a lost index page within the memory architecture described above with regard to FIGS. 1A-1B .
  • the super block 600 can provide a data structure in which a lost index page can be restored without relying on the block TOCs of data blocks.
  • the super block 600 is composed of blocks 602 a - d .
  • each of the blocks 602 a - d is the same block (e.g., block 1 ) from a different physical die.
  • the first three blocks 602 a - c are blocks storing index pages (e.g., index pages from the index table 106 ).
  • the fourth block 602 d is a block that stores parity bits. Performing an XOR operation on stripes of the blocks 602 a - c can derive the parity bits that are stored in block 602 d .
  • a stripe in a super block includes corresponding bits from each of the blocks.
  • each row is a stripe.
  • the super block 600 is presented for illustrative purposes. Any number of index blocks (e.g., 2, 5, 10, etc.) can be used in conjunction with a block storing parity bits. Additionally, the size of the bits in each stripe can vary (e.g., a word, a double word, a page, etc.). Methods other than parity bits can be used to correct for index page errors, such as using error-correcting code (ECC).
  • ECC error-correcting code
  • FIG. 7 is a flow diagram of an example index page restore operation 700 using a super block within the memory mapping architecture shown in FIGS. 1A-1B and 6 .
  • the index page restore operation 700 can restore an index page without having to use the block TOCs contained in data blocks.
  • the operation 700 can begin by receiving a request to read from or write to a data page in non-volatile memory ( 702 ).
  • an index table e.g., the index table 106
  • the index page that contains the logical to physical address mapping for the requested data page can be identified as lost ( 703 ), similar to the description of identifying lost index pages as described above with regard to FIG. 2A .
  • a stripe of index pages from a super block corresponding to the lost index page can be identified ( 704 ). Referring to the super block depicted in FIG.
  • the stripe 604 a - d can be identified to restore the index page 604 b .
  • the other index pages in the stripe can be checked for errors ( 706 ).
  • An error in one of the other index pages contained in the stripe can be problematic if using parity bits or another technique (e.g., ECC) for error correction (e.g., parity will not accurately restore an index page if another index page in the stripe has been lost).
  • ECC error correction
  • another index page restore operation can be used (e.g., index restore operations 200 - 400 ).
  • the bits from the stripe, excluding the lost index page are then combined (e.g., using an XOR operation) to reconstruct the lost index page ( 708 ).
  • additional steps can be performed to ensure the integrity of the restored index page.
  • additional steps can include cross-referencing the file system for deleted pages (this may not be needed depending on how frequently the parity bits are updated) and moving the index block for the lost index page to a newly allocated block of non-volatile memory, similar to the steps described with reference to FIGS. 2B and 3B .
  • the operation 700 can provide advantages in restoring an index page in that it restores the index page without having to access block TOCs for data blocks in non-volatile memory.

Abstract

Techniques for restoring index pages stored in non-volatile memory are disclosed where the index pages map logical sectors into physical pages. Additional data structures in volatile and non-volatile memory can be used by the techniques for restoring index pages. In some implementations, a lookup table associated with data blocks in non-volatile memory can be used to provide information regarding the mapping of logical sectors into physical pages. In some implementations, a lookup table associated with data blocks and a range of logical sectors and/or index pages can be used.

Description

TECHNICAL FIELD
This subject matter is generally related to memory mapping.
BACKGROUND
Flash memory is a type of electrically erasable programmable read-only memory (EEPROM). Because flash memories are non-volatile and relatively dense, they are used to store files and other persistent objects in handheld computers, mobile phones, digital cameras, portable music players, and many other devices in which other storage solutions (e.g., magnetic disks) are inappropriate. Unfortunately, flash suffers from two limitations. First, bits can only be cleared by erasing a large block of memory. Second, each block can only sustain a limited number of erase operations, after which it can no longer reliably store data. Due to these limitations, complex data structures and algorithms are often required to effectively use flash memories. These algorithms and data structures are used to support efficient not-in-place updates of data, reduce the number of erase operations, and level the wear of the blocks in the device.
Flash memories do not support in-place updates or rewrites to physical memory pages unless the block containing the page is erased first. To overcome this deficiency, a hardware and/or software layer is often added to the flash subsystem. This layer, often referred to as a flash translation layer (FTL), along with the flash memory can mimic a secondary storage device by mapping logical sectors to physical memory pages. For many flash based devices, the FTL is implemented as a controller in hardware. The controller can include a processor or microcontroller along with small amounts of volatile memory (e.g., RAM). The controller can be responsible for translating a read/write request from the file system (e.g., a logical sector) into a read/write operation on a specific block of flash, and initiating “garbage collection” (GC) to erase dirty blocks and reclaim free blocks.
Flash devices can store the mapping of logical sectors to physical memory pages. The FTL can use this stored mapping to identify the physical location of logical sector. If a portion (e.g., a page) of the stored mapping is lost (e.g., data corrupted), the FTL may not be able to translate and perform read/write requests from the file system.
SUMMARY
Techniques for restoring index pages stored in non-volatile memory are disclosed where the index pages map logical sectors into physical pages. Additional data structures in volatile and non-volatile memory can be used by the techniques for restoring index pages. In some implementations, a lookup table associated with data blocks in non-volatile memory can be used to provide information regarding the mapping of logical sectors into physical pages. In some implementations, a lookup table associated with data blocks and a range of logical sectors and/or index pages can be used.
The disclosed index page restoring techniques provide several advantages over conventional index page restoring techniques in flash memory. Some of these advantages include but are not limited to: 1) enabling restoration of a single index page without having to do a full-mount of the file system, and 2) enabling run-time restoration of a missing index page, and 3) eliminating the need to reboot a device in order to restore a lost index page.
DESCRIPTION OF DRAWINGS
FIG. 1A is a block diagram illustrating an example memory mapping architecture 100 for mapping logical sectors into physical pages using lookup tables.
FIG. 1B is a block diagram illustrating an example data block that contains data pages and an associated block TOC.
FIGS. 2A-2B are flow diagrams of an example index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B.
FIGS. 3A-3B are flow diagrams of another example index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B.
FIG. 4 is a flow diagram of an example delayed index page restore operation using the memory mapping architecture shown in FIGS. 1A-1B.
FIG. 5A is a block diagram of example memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6-7.
FIG. 5B is a block diagram illustrating the system architecture of an example device including a memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6-7.
FIG. 6 is a block diagram of an example index super block that can be used to restore a lost index page within the memory architecture described above with regard to FIGS. 1A-1B.
FIG. 7 is a flow diagram of an example index page restore operation using a super block within the memory mapping architecture shown in FIGS. 1A-1B and 6.
DETAILED DESCRIPTION System Overview
FIG. 1A is a block diagram illustrating an example memory mapping architecture 100 for mapping logical sectors into physical pages using lookup tables. In some implementations, a lookup table 102 in volatile memory (e.g., RAM) holds the location (e.g., physical address) of a lookup table 106 in non-volatile memory (e.g., flash memory). The lookup table 106 holds the physical addresses of data pages 108. In some implementations, a cache 104 in volatile memory holds the physical addresses of recently written logical sectors to allow faster readout. In the example shown, the lookup table 102 is also referred to as a index TOC 102, the lookup table 106 is also referred to as the index table 106 or index page, and the cache 104 is also referred to as the index table cache 104.
In the architecture 100, the index TOC 102 enables the index table 106 to be stored in the non-volatile memory. This is advantageous since the small amount of RAM that is typically available in controllers cannot be scaled due to a rise in cost, area and power consumption of the controller. In some implementations, the volatile memory can be dynamically configured based on its availability or other trigger events and/or operational modes.
Example Mapping of Logical Sectors by the Index Table 106
The index table 106 is depicted as having example index pages 1-N. Each of the example index pages 1-N maps logical sectors to various data pages 108. The data pages 108 are depicted as being contained in data blocks 1-N. For instance, the example index page 1 maps logical sectors to data block 1 and data block N. If an index page is lost (e.g., page data is corrupted, etc.), the logical sector to data page mappings contained in the index page are also lost. Techniques for restoring the content of a lost index page are described below.
Example Data Block with Block TOC
The data pages 108 are depicted as containing example block TOCs 1-N. Each of the block TOCs is depicted as corresponding to a data block. A block TOC can be stored in the corresponding data block and can include information that maps pages in the block to logical sectors. As described in further detail below, block TOCs associated with data blocks can be used to recreate a lost index page.
FIG. 1B is a block diagram illustrating an example data block 120 that contains data pages and an associated block TOC 122. As depicted, the example data block 120 includes data pages 1-N. The block TOC 122 is shown as being a portion of page N. The block TOC 122 can store information mapping the data pages 1-N to corresponding logical sectors.
Example Data Structures in Volatile Memory
In some implementations, a data block can be associated with a block table 110 (also referred to as a block array) stored in volatile memory that can include: a block status data (e.g., free, bad, allocated, current), a valid pages number, an erase count and an error correction code (ECC) fix count. The block table 110 can also include a data block age structure 112 that lists the data blocks from newest (e.g., block most recently written) to oldest (e.g., block least recently written). The block table 110 can additionally include a data block range structure 114 that provides a range (e.g., minimum and maximum) of logical sectors to which each data block corresponds. In some implementations, the data block range structure 114 can provide a range (e.g., minimum and maximum) of index pages in the index table 106 to which each data block corresponds. The data block range structure 114 can be implemented across data block entries in the block table 110.
In some implementations, each entry of the index TOC 102 stores a physical address in non-volatile memory of an index table 106 entry and a pointer to an entry in the index table cache 104. The address 0xff or other suitable indicator can be placed in a index TOC 102 entry to indicate that a desired index table 106 entry is not stored in the index table cache 104.
In some implementations, the following structures need to be allocated in volatile memory (e.g., RAM): a number of free entries in the index table cache, a current data block (e.g., a block that is being used for write or update operations), a pointer to a next free page in the current block, a current block TOC (e.g., a TOC stored in a block that includes information for mapping logical sectors to pages in the block), a current index block (e.g., a block that is being used for index updates), a pointer to a next free page in the index block, a current index block TOC and a number of free blocks.
In some implementations, each entry of the index table cache 104 can include but is not limited to: a buffer to hold data (e.g., a 2K buffer), status data (e.g., clean, dirty, free), a counter (e.g., a serial counter or count indicating how many times that particular block has been accessed).
The data structures described above are examples and other data structures can be used based on the application. The data structures are described in more detail in reference to the other figures.
Example Index Page Restore Operation
FIGS. 2A-2B are flow diagrams of an example index page restore operation 200 using the memory mapping architecture shown in FIGS. 1A-1B. The operation 200 restores a lost index page using the data page to logical sector mappings contained in block TOCs of data blocks.
Referring to FIG. 2A, in some implementations, the operation 200 can begin by receiving a request to read from or write to a data page in non-volatile memory (202). In an attempt to process the received request, an index table (e.g., the index table 106) can be consulted for the physical address of the requested data page. The index page that contains the logical to physical address mapping for the requested data page can be identified as lost (203). An index page can be identified as lost if the page includes a threshold number of errors (e.g., one error, two errors, etc.). For example, the index page can be identified as lost if an error is contained in the logical to physical address mapping sought in step 202. A variety of error detection techniques can be used, such as a checksum or a cyclic redundancy check (CRC). The newest data block (e.g., the data block most recently written) in non-volatile memory is selected (204) and the block TOC associated with the selected block is read (205). The newest data block can be identified from a structure in volatile memory, such as the data block age structure 112 in the block table 110. If any of the pages in the selected data block correspond to the lost index page (206), then an entry for each corresponding page is added to the lost index page (208). A data page can be determined to correspond to the lost index page if the data page is mapped to by a logical sector contained in the lost index page. The data page to index mapping contained in a block TOC can be referenced to make such a determination.
If the lost index page is not full (e.g., has not been completely reconstructed) after adding the entry (212), or if none of the pages in the selected data block correspond to the lost index page, then the next newest data block in non-volatile memory is selected (210) and the steps 205 and 206 are repeated. This cycle of selecting a data block and comparing its block TOC against the logical sectors of the lost index page is repeated until the lost index page has been fully reconstructed. Once the lost page is full (e.g., reconstructed), the entries in the reconstructed index page can be cross-referenced with the file system to identify deleted (reclaimed) data pages (214). The index page can be responsible for tracking data pages that are free. To ensure that the reconstructed index page accurately lists the free data pages, cross-referencing with the file system can be used. In some implementations, a data block may store metadata (such as in the block TOC) that indicates whether a data page is free or in use.
The data stored in an index block (e.g., a block of index pages in the index table 106) of the reconstructed index page can be moved to a newly allocated block in non-volatile memory (216). An error on an index page can be indicative of a physical problem with the block within which the reconstructed index page resides. Given the importance of index pages to operation of the memory architecture 100, it may be advantageous to move data from a potentially problematic block to a new block in non-volatile memory.
The index page restore operation 200 can be described in pseudo code as follows:
Step 1: Receive notification of an index page to restore.
Step 2: Compare the block TOC for the newest data block to the logical sectors covered by the lost index page.
Step 3: If any pages in the newest data block are covered by the lost index page, then add an entry for each corresponding page to the lost index page.
Step 4: If the lost index page is not full (e.g., the index page has not been fully reconstructed), then repeat steps 2-4 for the next newest data block.
Step 5: If the lost index page is full (e.g., the index page has been fully reconstructed), then cross-reference the reconstructed index page with the file system to identify deleted (reclaimed) pages (optional).
Step 6: Move the data in the index block of the lost index page to a newly allocated block of non-volatile memory (optional).
In some implementations, a brute-force reconstruction can be performed whereby the data blocks and their associated block TOCs are sequentially reviewed to reconstruct a lost page. In contrast, the operation 200 attempts to more efficiently locate the data blocks relevant to a lost index page by searching the data blocks according to the age of the data blocks. The operation 200 may more quickly locate relevant data blocks and, as a corollary, more quickly reconstruct the lost index page than a brute-force approach. Reviewing data blocks in increasing order based on a block's age ensures that the most current copy of each logical sector is available while moving from “newest” to “oldest.”
Another Example Index Page Restore Operation
FIGS. 3A-3B are flow diagrams of another example index page restore operation 300 using the memory mapping architecture shown in FIGS. 1A-1B. The operation 300 restores a lost index page using data block to logical sector/index page ranges (e.g., data block range structure 114) and the data page to logical sector mappings contained in block TOCs of data blocks.
Referring to FIG. 3A, in some implementations, the operation 300 can begin by receiving a request to read from or write to a data page in non-volatile memory (302). In an attempt to process the received request, an index table (e.g., the index table 106) can be consulted for the physical address of the requested data page. The index page that contains the logical to physical address mapping for the requested data page can be identified as lost (303), similar to the description of identifying lost index pages as described above with regard to FIG. 2A. A range associated with a data block is identified (304). As described above, the range (e.g., minimum and maximum) can be a range of logical sectors or a range of index pages in non-volatile memory that are covered by the data block. Holes of coverage by the data block within a range can be ignored (e.g., a portion in the middle of the range that is not covered by the data block can be ignored). If the identified range corresponds to the lost index page (306), then the identified data block can be added to a list of data blocks to be reviewed (308). An identified range can correspond to an index page if a logical sector covered by the index page falls within the identified range (if the range cover logical sectors) or if the index page itself falls within the identified range (if the range covers index pages). If there are more data block ranges to compare against the lost index page (310), then the steps 304-310 are repeated. The steps 304-310 can be repeated until a range for each data block has been compared.
Referring to FIG. 3B, a data block is selected from the list of data blocks to be reviewed (312). Similar to a portion of operation 200 described above with regard to FIGS. 2A-2B, a block TOC associated with the selected data block is read (314) and if any of the pages in the selected data block correspond to the lost index page (316), then an entry is added to the lost index page for each corresponding page in the selected data block (318). If the lost index page is not full (e.g., reconstruction is not yet complete) (320) or if none of the pages in the selected data block correspond to the lost index page (316), then the list of data blocks to be reviewed is consulted. If there are more data blocks on the list (322), then the steps 312-322 are repeated. The steps 312-322 can be repeated until the index page has been reconstructed or there are no more data blocks on the list. If the lost index page is full (e.g., no remaining holes in the index) (320) or all data blocks have been scanned (e.g., no more data blocks to examine) (322), then the index restore operation has been completed.
If the lost index page is full (320) or if there are no more data blocks on the list of data blocks to be reviewed (322), then the entries contained in the reconstructed index page can be cross-referenced with the file system to identify deleted pages (324), similar to the cross-referencing described above with reference to FIG. 2B. Data stored in the index block of the lost index page can be moved to a newly allocated block of non-volatile memory (326), similar to the moving of data to a new block described above with regard to FIG. 2B.
The index page restore operation 300 can be described in pseudo code as follows:
Step 1: Receive notification of an index page to restore.
Step 2: Compare the lost index page to a range of logical sectors/index pages for a data block.
Step 3: If the index page falls within the range, then add the data block to a list of data blocks to be reviewed.
Step 4: Repeat steps 2-3 for each data block.
Step 5: Select a data block from the list of data blocks to be reviewed.
Step 6: Compare the block TOC for the selected data block to the logical sectors covered by the lost index page.
Step 7: If any pages in the selected data block are covered by the lost index page, then add an entry for each corresponding page to the lost index page.
Step 8: If the lost index page is not full (e.g., the index page has not been fully reconstructed), then repeat steps 5-8 for the each data block on the list of data blocks to be reviewed.
Step 9: If the lost index page is full (e.g., the index page has been fully reconstructed), then cross-reference the reconstructed index page with the file system to identify deleted (reclaimed) pages (optional).
In some implementations, the restored index page may be moved to another page of non-volatile memory. Data errors that caused the index restore operation to be performed can indicate a physical problem with the memory block within which the index page is stored. The data in the index block of the lost index page can be moved to a newly allocated block of non-volatile memory.
The index page restore operation 300 can provide the following advantages: 1) relevant data blocks can be more quickly identified (e.g., instead of reading block TOCs from non-volatile memory to determine relevance, page ranges from volatile memory can be accessed and compared against the lost index page) and 2) index page restore efficiency can be increased (e.g., only relevant data blocks are read from non-volatile memory).
Example Delayed Index Page Restore Operation
FIG. 4 is a flow diagram of an example delayed index page restore operation 400 using the memory mapping architecture shown in FIGS. 1A-1B. The operation 400 immediately restores a requested logical sector to data page mapping in a lost index page and then schedules restoration of the index page for a later time when the device is idle.
The operation 400, in some implementations, can begin by receiving a request to read from or write to a data page in non-volatile memory (402). In an attempt to process the received request, an index table (e.g., the index table 106) can be consulted for the physical address of the requested data page. The index page that contains the logical to physical address mapping for the requested data page can be identified as lost (404), similar to the description of identifying lost index pages as described above with regard to FIG. 2A.
The physical address for the requested data page can be located (406) using a variety of index page restore techniques, such as operation 200, operation 300, or the brute-force technique described above. For instance, the index page restore operations 200 and 300, as described above with regard to FIGS. 2A-2B and 3A-3B, could be modified to locate and restore a single entry within a lost index page instead of the entire index page. With the physical address for the requested data page located, an entry for the requested data page can be added to the lost index page (408). Additionally, the received request to read from or write to the requested data page can be performed using the located physical address.
Instead of proceeding to restore the entire index page, reconstruction of the remaining portions of the lost index page can be scheduled for performance during an idle period (410). For example, the flash memory device within which the operation is being performed may be a cell phone, a portable media player, an embedded device, etc. Each of these devices will experience idle time when a user is not actively using them. For instance, a portable media player experiences idle time when it is not playing media (e.g., video, music, etc.) or receiving input from a user. During an idle period, the remaining portions (e.g., the portions not corresponding to the requested data page) of the lost index are reconstructed (412).
In some implementations, reconstruction of the remaining portions of the lost index page is scheduled for a idle period when the flash memory device is either receiving power from an external source (e.g., device is being charged) or when a portable power source is above a threshold level (e.g., battery has over 50% charge). For instance, restoring an index page can be an intensive process for the flash memory device that may reduce the charge of the device.
Reconstruction of an index page can additionally be a time intensive task. By reconstructing only the immediately needed portion of a lost index page, the operation 400 can permit the device performing the operation to process the request and restore the index page at a future time without affecting performance while the device is in use.
Example Memory Subsystems
FIG. 5A is a block diagram of example memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6-7. In some implementations, the subsystem 500 can include a controller 502, non-volatile memory 504 and host interface 506. The controller 502 can include volatile memory 510 (e.g., RAM) and processor 508. The volatile memory 510 stores a block TOC 512, a block table 513 and an index table cache 514. The volatile memory 510 can be configured dynamically by the processor 508 based on availability and any other suitable factors. The non-volatile memory 504 can include an index table 516 and data pages 518. The subsystem 500 can include other components that have been omitted from FIG. 5 for clarity.
In operation, the host interface 506 can obtain read/write requests from a host system over a bus (e.g., IDE/ATT). The host interface 506 can include circuitry and software for receiving data, addresses and control signals. The read/write requests can include a logical sector number and a number of consecutive logical sectors to read/write.
The processor 508 can access the volatile memory 510 and read the index TOC 512 to determine if the index table cache 514 includes physical addresses for the logical sector. If the index table cache 514 includes the physical addresses, then the physical addresses are used for the read/write operation. If the index table cache 514 does not include the physical addresses, then the processor 508 accesses volatile memory 510 to read the index TOC 512 to get the page address of the index table 516 in the non-volatile memory 504. The processor 508 can use the physical addresses in the index table 516 to perform a memory mapping to data pages 518 during the read/write operation. The block table 513 can store the block allocation numbers for blocks which can be used to determine the newest data block. Additionally, the block table 513 can store ranges of logical sectors and/or index pages for data blocks, as described with reference to FIGS. 1A, 2A-2B, and 3A-3B. A variety of techniques can be used to establish the range of logical sectors and/or index pages written in a block. In some implementations, range information for a block can be kept in memory and updated during a block update. In some implementations, range information for a block can be identified by reading out a block TOC and scanning it to determine the range for the associated block.
In some implementations, the data pages 518, index TOC 512 and/or index table 516 can be implemented on one or more different memory devices.
FIG. 5B is a block diagram illustrating an example device 520 including a memory subsystem for implementing the memory architecture and operations of FIGS. 1-4 and 6-7. In some implementations, the device 520 is a portable device, such as a media player device, a personal digital assistant, a mobile phone, portable computers, digital cameras, and so on, for example.
The device 520 includes a host controller (or a so-called “System-on-Chip” or “SoC”) 522 and non-volatile memory 528. The device 520 can optionally include additional memory external to the host controller 522 and the non-volatile memory 528. The host controller 522 includes one or more processors 524 and volatile memory 526. In some implementations, volatile memory 526 is static random-access memory (SRAM). The host controller 522 performs various processing operations and input/output operations, including the operations described in reference to FIGS. 2-4. For example, the host controller 522 can receive and process user inputs, generate outputs, perform media (e.g., audio, video, graphics) decoding and processing operations, other processing operations, and so on. The host controller 522 can read data from and write data to volatile memory 526. The host controller 522 can also issue read or write operations to the non-volatile memory 528 through an interface (not shown).
In some implementations, the non-volatile memory 528 is NAND flash memory. In some other implementations, the non-volatile memory 528 is another type of non-volatile memory, such as NOR flash memory, other types of solid state memory, or a hard disk drive, for example. The device 520 can also include one or more other components that have been omitted from FIG. 5B for clarity.
Example Index Super Block
FIG. 6 is a block diagram of an example index super block 600 that can be used to restore a lost index page within the memory architecture described above with regard to FIGS. 1A-1B. The super block 600 can provide a data structure in which a lost index page can be restored without relying on the block TOCs of data blocks.
The super block 600 is composed of blocks 602 a-d. In the depicted example, each of the blocks 602 a-d is the same block (e.g., block 1) from a different physical die. The first three blocks 602 a-c are blocks storing index pages (e.g., index pages from the index table 106). The fourth block 602 d is a block that stores parity bits. Performing an XOR operation on stripes of the blocks 602 a-c can derive the parity bits that are stored in block 602 d. A stripe in a super block includes corresponding bits from each of the blocks. In the depicted example, each row is a stripe. For example, the parity bits for the first stripe are derived by performing the following operation: 010 XOR 011 XOR 111=110.
The parity bits stored in the fourth block 602 d can be used to restore a lost index page by performing the same XOR operation on the other blocks in the stripe. For example, in the fourth stripe 604 a-c the bits associated with block 1 604 b have been lost. Performing an XOR operation using 604 a, 604 c, and 604 d can retrieve the bits. For example, the parity bits 110 were derived by the following operation: 000 XOR 101 XOR 011=110. The bits 604 b can be retrieved y performing the same operation using 604 a, 604 c, and 604 d. For instance: 000 XOR 011 XOR 110=101.
The super block 600 is presented for illustrative purposes. Any number of index blocks (e.g., 2, 5, 10, etc.) can be used in conjunction with a block storing parity bits. Additionally, the size of the bits in each stripe can vary (e.g., a word, a double word, a page, etc.). Methods other than parity bits can be used to correct for index page errors, such as using error-correcting code (ECC).
Example Index Page Restore Operation using a Super Block
FIG. 7 is a flow diagram of an example index page restore operation 700 using a super block within the memory mapping architecture shown in FIGS. 1A-1B and 6. The index page restore operation 700 can restore an index page without having to use the block TOCs contained in data blocks.
The operation 700, in some implementations, can begin by receiving a request to read from or write to a data page in non-volatile memory (702). In an attempt to process the received request, an index table (e.g., the index table 106) can be consulted for the physical address of the requested data page. The index page that contains the logical to physical address mapping for the requested data page can be identified as lost (703), similar to the description of identifying lost index pages as described above with regard to FIG. 2A. A stripe of index pages from a super block corresponding to the lost index page can be identified (704). Referring to the super block depicted in FIG. 6 as an example, if the index page 604 b has been lost, the stripe 604 a-d can be identified to restore the index page 604 b. The other index pages in the stripe can be checked for errors (706). An error in one of the other index pages contained in the stripe can be problematic if using parity bits or another technique (e.g., ECC) for error correction (e.g., parity will not accurately restore an index page if another index page in the stripe has been lost). If one of the other index pages is found to contain an error, then another index page restore operation can be used (e.g., index restore operations 200-400). The bits from the stripe, excluding the lost index page, are then combined (e.g., using an XOR operation) to reconstruct the lost index page (708).
After the index page has been restored, additional steps (not depicted) can be performed to ensure the integrity of the restored index page. Such additional steps can include cross-referencing the file system for deleted pages (this may not be needed depending on how frequently the parity bits are updated) and moving the index block for the lost index page to a newly allocated block of non-volatile memory, similar to the steps described with reference to FIGS. 2B and 3B.
The operation 700 can provide advantages in restoring an index page in that it restores the index page without having to access block TOCs for data blocks in non-volatile memory.
A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made. For example, elements of one or more implementations may be combined, deleted, modified, or supplemented to form further implementations. As yet another example, the logic flows depicted in the figures do not require the particular order shown, or sequential order, to achieve desirable results. In addition, other steps may be provided, or steps may be eliminated, from the described flows, and other components may be added to, or removed from, the described systems. Accordingly, other implementations are within the scope of the following claims.

Claims (23)

What is claimed is:
1. A method comprising:
receiving a request to restore at least a portion of an index that maps logical sectors to physical pages of memory in a flash memory device;
reading first metadata associated with a block of memory in the device, wherein the first metadata maps physical pages of the block to logical sectors;
identifying that a page of the block mapped by the first metadata corresponds to the requested portion of the index; and
writing an entry corresponding to the identified page to the requested portion of the index.
2. The method of claim 1, further comprising:
identifying the block of memory from a plurality of blocks of memory based upon how recently each of the plurality of blocks of memory was accessed, wherein the identified block of memory was accessed most recently.
3. The method of claim 1, further comprising:
identifying the block of memory from a plurality of blocks of memory based upon second metadata that provides a range for each of the plurality of blocks, wherein a range for the identified block of memory corresponds to the requested portion of the index.
4. The method of claim 3, wherein the range provided by the second metadata comprises, for each of the plurality of blocks, a range of logical sectors stored by a block of memory.
5. The method of claim 3, wherein the range provided by the second metadata comprises, for each of the plurality of blocks, a range of index pages that correspond to a block of memory.
6. The method of claim 3, wherein the second metadata is store stored in volatile memory.
7. The method of claim 1, further comprising:
scheduling a remaining part of the requested portion of the index to be restored when the flash memory device is idle.
8. The method of claim 1, further comprising:
reading, repeatedly, the first metadata, identifying a logical sector, and writing the identified page until the requested portion of the index has been restored.
9. The method of claim 1, further comprising:
determining that memory associated with the entry written to the requested portion of the index has been deleted by cross-referencing the entry with a file system that stores information regarding deleted memory; and
rewriting the entry to the requested portion of the index to indicate the memory associated with the entry has been deleted.
10. The method of claim 1, further comprising:
allocating a new block of memory; and
transferring data from a block of memory associated with the index to the allocated new block of memory.
11. A method comprising:
receiving a request to restore at least a portion of a first index page that maps logical sectors to physical pages of memory in a flash memory device, wherein the first index page is part of a super block that associates the first index page with a second index page and a metadata page;
determining data for the requested portion of the index by combining at least a portion of the second index page and at least a portion the metadata page; and
writing the determined data to the requested portion of the index.
12. The method of claim 11, wherein the first index, the second index, and the metadata are stored on physically different dies of the flash memory device.
13. The method of claim 11, wherein the portion of the second index page and the portion of the metadata page are combined using an exclusive-or (XOR) operation to determine the data for restoring the requested portion of the index.
14. The method of claim 11, wherein the metadata comprises parity information that was previously generated by combining the first index page with the second index page using an XOR operation.
15. A system comprising:
a non-volatile memory;
a controller coupled to the non-volatile memory and configured to:
receive a request to restore at least a portion of an index that maps logical sectors to physical pages of the non-volatile memory;
read first metadata associated with a block of the non-volatile memory, wherein the first metadata is stored in non-volatile memory and maps logical physical pages of the block to logical sectors;
identify that a page of the block mapped by the first metadata corresponds to the requested portion of the index; and
write an entry corresponding to the identified page to the requested portion of the index.
16. The system of claim 15, wherein the controller is further configured to:
identify the block of memory from a plurality of blocks of memory based upon how recently each of the plurality of blocks of memory was accessed, wherein the identified block of memory accessed was most recently.
17. The system of claim 15, wherein the controller is further configured to
identify the block of memory from a plurality of blocks of memory based upon second metadata that provides a range for each of the plurality of blocks, wherein a range for the identified block of memory corresponds to the requested portion of the index.
18. The system of claim 17, wherein the range provided by the second metadata comprises, for each of the plurality of blocks, a range of logical sectors stored by a block of memory.
19. The system of claim 17, wherein the range provided by the second metadata comprises, for each of the plurality of blocks, a range of index pages that correspond to a block of memory.
20. The system of claim 17, further comprising
volatile memory that stores the second metadata.
21. A memory controller for a system including a non-volatile memory, the memory controller comprising:
a host interface; and
a control unit coupled to the host interface, wherein the control unit is configured to:
receive a request from a host through the host interface to restore at least a portion of an index that maps logical sectors to physical pages of the non-volatile memory;
read first metadata associated with a block of the non-volatile memory, wherein the first metadata is stored in non-volatile memory and maps logical physical pages of the block to logical sectors;
identify that a page of the block mapped by the first metadata corresponds to the requested portion of the index; and
write an entry corresponding to the identified page to the requested portion of the index.
22. The system of claim 21, wherein the volatile memory is configured to store an index table cache, an index table of contents (TOC), and a block table.
23. The system of claim 22, wherein the processor is further configured to create a memory map dependent upon physical address information stored in the index table cache.
US12/509,071 2009-07-24 2009-07-24 Restore index page Active 2031-08-10 US8468293B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
US12/509,071 US8468293B2 (en) 2009-07-24 2009-07-24 Restore index page
PCT/US2010/042696 WO2011011480A1 (en) 2009-07-24 2010-07-21 Restore index page
CN201080032931.XA CN102483714B (en) 2009-07-24 2010-07-21 System and method for restoring index page in flash restore
KR1020100071571A KR101257989B1 (en) 2009-07-24 2010-07-23 Restore index page
EP20100170700 EP2282267A1 (en) 2009-07-24 2010-07-23 Restore index page
KR1020110100232A KR20110117045A (en) 2009-07-24 2011-09-30 Restore index page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US12/509,071 US8468293B2 (en) 2009-07-24 2009-07-24 Restore index page

Publications (2)

Publication Number Publication Date
US20110022780A1 US20110022780A1 (en) 2011-01-27
US8468293B2 true US8468293B2 (en) 2013-06-18

Family

ID=43066897

Family Applications (1)

Application Number Title Priority Date Filing Date
US12/509,071 Active 2031-08-10 US8468293B2 (en) 2009-07-24 2009-07-24 Restore index page

Country Status (5)

Country Link
US (1) US8468293B2 (en)
EP (1) EP2282267A1 (en)
KR (2) KR101257989B1 (en)
CN (1) CN102483714B (en)
WO (1) WO2011011480A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107148622A (en) * 2014-09-23 2017-09-08 甲骨文国际公司 Intelligent flash cache record device

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726126B2 (en) * 2010-03-23 2014-05-13 Apple Inc. Non-regular parity distribution detection via metadata tag
US8812816B2 (en) * 2010-03-23 2014-08-19 Apple Inc. Garbage collection schemes for index block
US8762340B2 (en) * 2010-05-14 2014-06-24 Salesforce.Com, Inc. Methods and systems for backing up a search index in a multi-tenant database environment
US8204871B1 (en) * 2010-09-28 2012-06-19 Emc Corporation Extended file mapping cache for fast input-output
US8892981B2 (en) 2010-09-30 2014-11-18 Apple Inc. Data recovery using outer codewords stored in volatile memory
US8738882B2 (en) 2011-06-03 2014-05-27 Apple Inc. Pre-organization of data
US9235502B2 (en) 2011-09-16 2016-01-12 Apple Inc. Systems and methods for configuring non-volatile memory
US9104614B2 (en) * 2011-09-16 2015-08-11 Apple Inc. Handling unclean shutdowns for a system having non-volatile memory
US8924632B2 (en) 2011-09-16 2014-12-30 Apple Inc. Faster tree flattening for a system having non-volatile memory
US9026496B1 (en) * 2011-09-30 2015-05-05 Emc Corporation Efficient building of restore list
US8370567B1 (en) * 2012-03-23 2013-02-05 DSSD, Inc. Storage system with self describing data
US8554963B1 (en) 2012-03-23 2013-10-08 DSSD, Inc. Storage system with multicast DMA and unified address space
US8392428B1 (en) 2012-09-12 2013-03-05 DSSD, Inc. Method and system for hash fragment representation
CN103049390B (en) * 2012-12-14 2016-03-09 华为技术有限公司 The data processing method of apply metadata and storage system
US9158678B2 (en) * 2013-03-13 2015-10-13 Kabushiki Kaisha Toshiba Memory address management system and method
US9069695B2 (en) 2013-03-14 2015-06-30 Apple Inc. Correction of block errors for a system having non-volatile memory
US20140281780A1 (en) * 2013-03-15 2014-09-18 Teradata Corporation Error detection and recovery of transmission data in computing systems and environments
CN103207916B (en) * 2013-04-24 2017-09-19 曙光信息产业(北京)有限公司 The method and apparatus of metadata processing
WO2015130314A1 (en) 2014-02-28 2015-09-03 Hewlett-Packard Development Company, L.P. Mapping mode shift
US20150371536A1 (en) * 2014-06-20 2015-12-24 Ray Enterprises Inc. Universal remote control device
US9788067B2 (en) * 2014-06-20 2017-10-10 Ray Enterprises, LLC Caching programming data
US9378149B1 (en) 2014-08-29 2016-06-28 Emc Corporation Method and system for tracking modification times of data in a storage system
US9600409B2 (en) * 2014-08-29 2017-03-21 EMC IP Holding Company LLC Method and system for garbage collection in a storage system based on longevity of stored data
US9792069B2 (en) * 2014-09-29 2017-10-17 Western Digital Technologies, Inc. Offline deduplication for solid-state storage devices
CN104317833B (en) * 2014-10-10 2019-03-26 深圳市锐明技术股份有限公司 A kind of method and device of recovery system file index
US10824362B2 (en) 2015-03-27 2020-11-03 Hewlett Packard Enterprise Development Lp File migration to persistent memory
WO2016160027A1 (en) 2015-04-02 2016-10-06 Hewlett Packard Enterprise Development Lp Page cache on persistent memory
US10331364B2 (en) * 2015-10-16 2019-06-25 Cnex Labs, Inc. Method and apparatus for providing hybrid mode to access SSD drive
US10157004B2 (en) * 2016-04-14 2018-12-18 Sandisk Technologies Llc Storage system and method for recovering data corrupted in a host memory buffer
CN106339280B (en) * 2016-08-31 2019-05-24 四川效率源信息安全技术股份有限公司 A method of recombination spreadtrum system data
CN109032518A (en) * 2018-07-19 2018-12-18 江苏华存电子科技有限公司 The kind identification method of superblock in a kind of flash memory
CN111611258B (en) * 2020-05-27 2023-09-19 杭州海康威视系统技术有限公司 Stream data recovery method and storage device
CN114328375A (en) * 2020-09-29 2022-04-12 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for storage management
CN112698984B (en) * 2020-12-17 2023-07-04 宁波三星医疗电气股份有限公司 Database recovery method of embedded device, electronic device and medium
CN112700814A (en) * 2021-01-05 2021-04-23 潍柴动力股份有限公司 EEPROM data reading method, device, electric control equipment and medium

Citations (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4323987A (en) 1980-03-28 1982-04-06 Pitney Bowes Inc. Power failure memory support system
US5341330A (en) 1992-10-30 1994-08-23 Intel Corporation Method for writing to a flash memory array during erase suspend intervals
WO1994020906A1 (en) 1993-03-08 1994-09-15 M-Systems Ltd. Flash file system
US5689704A (en) 1994-03-04 1997-11-18 Sony Corporation Recording medium, recording/playback device which uses commands in character string form for audio system control
US5950013A (en) 1997-03-17 1999-09-07 Mitsubishi Denki Kabushiki Kaisha Memory card with submemory
US6188650B1 (en) 1997-10-21 2001-02-13 Sony Corporation Recording and reproducing system having resume function
US6199076B1 (en) 1996-10-02 2001-03-06 James Logan Audio program player including a dynamic program selection controller
US6263453B1 (en) 1996-09-24 2001-07-17 Apple Computer, Inc. System and method for preventing damage to media files within a digital camera device
US6282624B1 (en) 1997-11-13 2001-08-28 Seiko Epson Corporation Non-volatile memory apparatus including first and second address conversion tables stored in volatile and nonvolatile memories for improved access at power up
US6388961B1 (en) 1999-05-21 2002-05-14 Sony Corporation Recording apparatus, playback apparatus, recording method, and playback method
US6427186B1 (en) * 1999-03-30 2002-07-30 Frank (Fong-Long) Lin Memory, interface system and method for mapping logical block numbers to physical sector numbers in a flash memory, using a master index table and a table of physical sector numbers
US20030061189A1 (en) 2001-06-04 2003-03-27 Baskins Douglas L. System for and method of data compression in a valueless digital tree representing a bitset
US20030093610A1 (en) 2001-11-15 2003-05-15 Lai Chen Nan Algorithm of flash memory capable of quickly building table and preventing improper operation and control system thereof
US20040186946A1 (en) * 2003-03-19 2004-09-23 Jinaeon Lee Flash file system
US6832293B1 (en) 1999-05-28 2004-12-14 Matsushita Electric Industrial Co., Ltd. Audio playback apparatus and method for resuming interrupted playback recording
US20050015378A1 (en) 2001-06-05 2005-01-20 Berndt Gammel Device and method for determining a physical address from a virtual address, using a hierarchical mapping rule comprising compressed nodes
US20050251617A1 (en) 2004-05-07 2005-11-10 Sinclair Alan W Hybrid non-volatile memory system
US20060008256A1 (en) 2003-10-01 2006-01-12 Khedouri Robert K Audio visual player apparatus and system and method of content distribution using the same
US7099239B2 (en) 2001-09-03 2006-08-29 Pioneer Corporation Information record and playback apparatus and computer program having a resume function based on recorded playback stop position information
US7139937B1 (en) 2002-08-15 2006-11-21 Network Appliance, Inc. Method and apparatus to establish safe state in a volatile computer memory under multiple hardware and software malfunction conditions
US20070011445A1 (en) 2005-07-11 2007-01-11 Lenovo System and method for loading programs from HDD independent of operating system
US20070016721A1 (en) 2005-07-18 2007-01-18 Wyse Technology Inc. Flash file system power-up by using sequential sector allocation
US20070073764A1 (en) 2004-05-03 2007-03-29 Microsoft Corporation Systems and methods for automatic database or file system maintenance and repair
US20070124531A1 (en) * 2005-11-30 2007-05-31 Sony Corporation Storage device, computer system, and storage device access method
US20070130441A1 (en) 2005-12-01 2007-06-07 Microsoft Corporation Address translation table synchronization
US7234024B1 (en) 2003-07-03 2007-06-19 Veritas Operating Corporation Application-assisted recovery from data corruption in parity RAID storage using successive re-reads
US20070204128A1 (en) 2003-09-10 2007-08-30 Super Talent Electronics Inc. Two-Level RAM Lookup Table for Block and Page Allocation and Wear-Leveling in Limited-Write Flash-Memories
US20070300037A1 (en) 2006-06-23 2007-12-27 Microsoft Corporation Persistent flash memory mapping table
US20080104308A1 (en) * 2006-10-25 2008-05-01 Yeon-Jin Mo System with flash memory device and data recovery method thereof
US20080177937A1 (en) 2007-01-23 2008-07-24 Sony Corporation Storage apparatus, computer system, and method for managing storage apparatus
US20080189452A1 (en) 2007-02-07 2008-08-07 Merry David E Storage subsystem with configurable buffer
US7412558B2 (en) 2004-07-15 2008-08-12 Hagiwara Sys-Com Co., Ltd. Semiconductor storage device
US20090083478A1 (en) 2007-03-28 2009-03-26 Kabushiki Kaisha Toshiba Integrated memory management and memory management method
US20090150641A1 (en) 2007-12-06 2009-06-11 David Flynn Apparatus, system, and method for efficient mapping of virtual and physical addresses
US20090182962A1 (en) 2008-01-16 2009-07-16 Apple Inc. Memory Subsystem Hibernation
US20090198952A1 (en) * 2008-02-04 2009-08-06 Apple Inc Memory Mapping Architecture
US20090307409A1 (en) 2008-06-06 2009-12-10 Apple Inc. Device memory management

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3912355B2 (en) * 2003-10-14 2007-05-09 ソニー株式会社 Data management device, data management method, nonvolatile memory, storage device having nonvolatile memory, and data processing system
US8151082B2 (en) 2007-12-06 2012-04-03 Fusion-Io, Inc. Apparatus, system, and method for converting a storage request into an append data storage command
KR101437397B1 (en) * 2007-10-31 2014-09-05 삼성전자주식회사 Data management method and mapping table update method in nonvolatile memory device

Patent Citations (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4323987A (en) 1980-03-28 1982-04-06 Pitney Bowes Inc. Power failure memory support system
US5341330A (en) 1992-10-30 1994-08-23 Intel Corporation Method for writing to a flash memory array during erase suspend intervals
WO1994020906A1 (en) 1993-03-08 1994-09-15 M-Systems Ltd. Flash file system
US5689704A (en) 1994-03-04 1997-11-18 Sony Corporation Recording medium, recording/playback device which uses commands in character string form for audio system control
US6263453B1 (en) 1996-09-24 2001-07-17 Apple Computer, Inc. System and method for preventing damage to media files within a digital camera device
US6199076B1 (en) 1996-10-02 2001-03-06 James Logan Audio program player including a dynamic program selection controller
US5950013A (en) 1997-03-17 1999-09-07 Mitsubishi Denki Kabushiki Kaisha Memory card with submemory
US6188650B1 (en) 1997-10-21 2001-02-13 Sony Corporation Recording and reproducing system having resume function
US6282624B1 (en) 1997-11-13 2001-08-28 Seiko Epson Corporation Non-volatile memory apparatus including first and second address conversion tables stored in volatile and nonvolatile memories for improved access at power up
US6427186B1 (en) * 1999-03-30 2002-07-30 Frank (Fong-Long) Lin Memory, interface system and method for mapping logical block numbers to physical sector numbers in a flash memory, using a master index table and a table of physical sector numbers
US6388961B1 (en) 1999-05-21 2002-05-14 Sony Corporation Recording apparatus, playback apparatus, recording method, and playback method
US6832293B1 (en) 1999-05-28 2004-12-14 Matsushita Electric Industrial Co., Ltd. Audio playback apparatus and method for resuming interrupted playback recording
US20030061189A1 (en) 2001-06-04 2003-03-27 Baskins Douglas L. System for and method of data compression in a valueless digital tree representing a bitset
US20050015378A1 (en) 2001-06-05 2005-01-20 Berndt Gammel Device and method for determining a physical address from a virtual address, using a hierarchical mapping rule comprising compressed nodes
US7099239B2 (en) 2001-09-03 2006-08-29 Pioneer Corporation Information record and playback apparatus and computer program having a resume function based on recorded playback stop position information
US20030093610A1 (en) 2001-11-15 2003-05-15 Lai Chen Nan Algorithm of flash memory capable of quickly building table and preventing improper operation and control system thereof
US7139937B1 (en) 2002-08-15 2006-11-21 Network Appliance, Inc. Method and apparatus to establish safe state in a volatile computer memory under multiple hardware and software malfunction conditions
US20040186946A1 (en) * 2003-03-19 2004-09-23 Jinaeon Lee Flash file system
US7234024B1 (en) 2003-07-03 2007-06-19 Veritas Operating Corporation Application-assisted recovery from data corruption in parity RAID storage using successive re-reads
US20070204128A1 (en) 2003-09-10 2007-08-30 Super Talent Electronics Inc. Two-Level RAM Lookup Table for Block and Page Allocation and Wear-Leveling in Limited-Write Flash-Memories
US20060008256A1 (en) 2003-10-01 2006-01-12 Khedouri Robert K Audio visual player apparatus and system and method of content distribution using the same
US20070073764A1 (en) 2004-05-03 2007-03-29 Microsoft Corporation Systems and methods for automatic database or file system maintenance and repair
US20050251617A1 (en) 2004-05-07 2005-11-10 Sinclair Alan W Hybrid non-volatile memory system
US7412558B2 (en) 2004-07-15 2008-08-12 Hagiwara Sys-Com Co., Ltd. Semiconductor storage device
US20070011445A1 (en) 2005-07-11 2007-01-11 Lenovo System and method for loading programs from HDD independent of operating system
US20070016721A1 (en) 2005-07-18 2007-01-18 Wyse Technology Inc. Flash file system power-up by using sequential sector allocation
US20070124531A1 (en) * 2005-11-30 2007-05-31 Sony Corporation Storage device, computer system, and storage device access method
US20070130441A1 (en) 2005-12-01 2007-06-07 Microsoft Corporation Address translation table synchronization
US20070300037A1 (en) 2006-06-23 2007-12-27 Microsoft Corporation Persistent flash memory mapping table
US20080104308A1 (en) * 2006-10-25 2008-05-01 Yeon-Jin Mo System with flash memory device and data recovery method thereof
US20080177937A1 (en) 2007-01-23 2008-07-24 Sony Corporation Storage apparatus, computer system, and method for managing storage apparatus
US20080189452A1 (en) 2007-02-07 2008-08-07 Merry David E Storage subsystem with configurable buffer
US20090083478A1 (en) 2007-03-28 2009-03-26 Kabushiki Kaisha Toshiba Integrated memory management and memory management method
US20090150641A1 (en) 2007-12-06 2009-06-11 David Flynn Apparatus, system, and method for efficient mapping of virtual and physical addresses
US20090182962A1 (en) 2008-01-16 2009-07-16 Apple Inc. Memory Subsystem Hibernation
US20090198952A1 (en) * 2008-02-04 2009-08-06 Apple Inc Memory Mapping Architecture
US20090198947A1 (en) 2008-02-04 2009-08-06 Apple Inc. Memory Mapping Restore and Garbage Collection Operations
US20090198902A1 (en) 2008-02-04 2009-08-06 Apple Inc. Memory mapping techniques
WO2009100031A1 (en) 2008-02-04 2009-08-13 Apple Inc. Memory mapping techniques
US20090307409A1 (en) 2008-06-06 2009-12-10 Apple Inc. Device memory management

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
Extended European Search Report for Application No. 10170700.8, dated Nov. 29, 2010 7 pages.
International Search Report and Written Opinion for Application No. PCT/US2010/42696, dated Sep. 14, 2010, 9 pages.
International Search Report and Written Opinion, dated Jul. 9, 2009, issued in International Application No. PCT/US2009/032886, 20 pages.
International Search Report/Written Opinion in PCT/US2010/42707 mailed Sep. 7, 2010, 8 pages.
Invitation to Pay Additional Fees and Partial International Search Report, dated May 14, 2009, issued in International Application No. PCT/US2009/032886, 10 pages.
Post et al., "Index Cache Tree", U.S. Appl. No. 12, 509,267, filed on Jul. 24, 2009.
Rogers, et al., "Device Memory Management", U.S. Appl. No. 12/134,998, filed Jun. 6, 2008.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107148622A (en) * 2014-09-23 2017-09-08 甲骨文国际公司 Intelligent flash cache record device

Also Published As

Publication number Publication date
EP2282267A1 (en) 2011-02-09
KR20110010580A (en) 2011-02-01
KR20110117045A (en) 2011-10-26
KR101257989B1 (en) 2013-04-24
WO2011011480A1 (en) 2011-01-27
US20110022780A1 (en) 2011-01-27
CN102483714B (en) 2015-06-10
CN102483714A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
US8468293B2 (en) Restore index page
US8397014B2 (en) Memory mapping restore and garbage collection operations
JP5696118B2 (en) Weave sequence counter for non-volatile memory systems
US10318414B2 (en) Memory system and memory management method thereof
KR101522848B1 (en) Self-journaling and hierarchical consistency for non-volatile storage
KR101965549B1 (en) Methods, devices and systems for two stage power-on map rebuild with free space accounting in a solid state drive
TWI554877B (en) Handling unclean shutdowns for a system having non-volatile memory
CN107003942A (en) To for strengthening the performance of storage device and the processing of persistent unmapped order
CN107077427A (en) The mixing of mapping directive is tracked to writing commands and released across power cycle
US20100191897A1 (en) System and method for wear leveling in a data storage device
CN104978281A (en) Data Integrity Management In A Data Storage Device
US20100125694A1 (en) Memory device and management method of memory device
JP2012503234A (en) Built-in mapping information for memory devices
US7945762B2 (en) Method and apparatus for memory management in a non-volatile memory system using a block table
US20140244912A1 (en) Retired Page Utilization (RPU) for Improved Write Capacity of Solid State Drives
US20200327066A1 (en) Method and system for online recovery of logical-to-physical mapping table affected by noise sources in a solid state drive
Park et al. A Crash Recovery Scheme for a Hybrid Mapping FTL in NAND Flash Storage Devices. Electronics 2021, 10, 327
CN116881184A (en) Memory and management method thereof

Legal Events

Date Code Title Description
AS Assignment

Owner name: APPLE INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WAKRAT, NIR JACOB;KHMELNITSKY, VADIM;REEL/FRAME:023092/0173

Effective date: 20090723

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8