CPC G06F 12/0246 (2013.01) [G06F 12/1009 (2013.01); G06F 2212/7207 (2013.01); G06F 2212/7208 (2013.01); G06F 2212/7209 (2013.01)] | 12 Claims |
1. A method for managing a memory apparatus comprising a plurality of non-volatile (NV) memory elements, each NV memory element comprising a plurality of physical blocks, and a volatile memory, the method comprising:
programming at least a physical block of a specific NV memory element of the NV memory elements, comprising:
receiving a first host command from a host;
obtaining a first host address and first data from the first host command; and
linking the first host address to at least a first page of a physical block of the specific NV memory element and storing the first data into the physical block;
before the pages of the physical block are fully programmed, storing a temporary local page linking address table in the volatile memory, and updating the temporary local page linking address table each time a linking relationship between a page of the physical block and a host address is changed;
when the memory apparatus is to be shut down, writing the temporary local page linking address table to the physical block of the specific NV memory element; and
when the memory apparatus begins a start-up process, building a global page address linking table by reading the local page address linking table.
|