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)] | 10 Claims |
1. A method for managing a memory apparatus, the memory apparatus comprising a volatile memory and at least one non-volatile (NV) memory element comprising a plurality of physical blocks, the method comprising:
obtaining a first host address and first data from a received first access command;
obtaining a second host address and second data from a received second access command;
linking the first host address to at least a first page of a physical block of the plurality of physical blocks and linking the second host address to at least a second page of the physical block;
storing the first data and second data into the physical block;
building a valid page position table indicating positions of valid pages within the physical block, and storing the valid page position table in the volatile memory; and
building a global page address linking table according to the linking relationships between the pages of the physical block and the host addresses and storing the global page address linking table in the volatile memory;
wherein the valid page position table and the global page address linking table are loaded from the volatile memory and stored to the NV memory element at predetermined time periods.
|