Address mappings for random access operations
Methods, systems, and devices for address mappings for random access operations are described. A portion of a L2P table may be loaded (e.g., to a buffer) upon receiving a write command (e.g., a random write command). In some instances, one or more entries (e.g., one or more mappings) included in the portion of the L2P table may be updated based on the write command. The portion of the L2P table may be maintained in the buffer during subsequent access operations, such as random read operations. The subsequent access operations may utilize the portion of the L2P table to access a memory device.
1 . An apparatus, comprising:
a controller associated with a memory device, wherein the controller is configured to cause the apparatus to:
receive a write command comprising a logical address associated with one or more non-volatile memory cells;
update, at a buffer of the memory device, a mapping between the logical address and a physical address of the one or more non-volatile memory cells based at least in part on receiving the write command;
transfer information stored in the buffer to the one or more non-volatile memory cells based at least in part on updating the mapping in the buffer;
maintain the updated mapping in the buffer of the memory device for a duration based at least in part on the write command comprising a random write command and based at least in part on transferring the information stored in the buffer to the one or more non-volatile memory cells, wherein the duration is based at least in part on a duration for performing at least one subsequent operation;
receive a read command comprising the logical address based at least in part on updating the mapping between the logical address and the physical address of the one or more non-volatile memory cells;
read, during the duration and using the updated mapping stored in the buffer of the memory device, the physical address of the one or more non-volatile memory cells corresponding to the logical address based at least in part on receiving the read command; and
remove the mapping from the buffer in accordance with expiration of the duration.
2 . The apparatus of claim 1 , wherein, to transfer the information, the controller is further configured to cause the apparatus to:
transmit an indication of the updated mapping from the buffer of the memory device to the one or more non-volatile memory cells during the duration.
3 . The apparatus of claim 1 , wherein the controller is further configured to cause the apparatus to:
load the mapping to the buffer of the memory device based at least in part on receiving the write command, wherein updating the mapping between the logical address and the physical address is based at least in part on loading the mapping to the buffer.
4 . The apparatus of claim 1 , wherein the controller is further configured to cause the apparatus to:
receive a second write command comprising a plurality of logical addresses associated with the memory device;
update, at the buffer of the memory device, mappings between each logical address of the plurality of logical addresses and a corresponding physical address of the one or more non-volatile memory cells based at least in part on receiving the second write command;
receive a second read command comprising a subset of the plurality of logical addresses based at least in part on updating the mappings between each logical address of the plurality of logical addresses and the corresponding physical address of the one or more non-volatile memory cells; and
read, using the updated mappings at the buffer of the memory device, physical addresses of the one or more non-volatile memory cells corresponding to the subset of the plurality of logical addresses based at least in part on receiving the second read command.
5 . The apparatus of claim 4 , wherein the controller is further configured to cause the apparatus to:
maintain the updated mappings between each logical address of the plurality of logical addresses and the corresponding physical address of the one or more non-volatile memory cells in the buffer of the memory device for a second duration, wherein reading the physical addresses of the one or more non-volatile memory cells corresponding to the subset of the plurality of logical addresses occurs during the second duration.
6 . The apparatus of claim 1 , wherein the controller is further configured to cause the apparatus to:
write data to the physical address of the one or more non-volatile memory cells based at least in part on receiving the write command.
7 . The apparatus of claim 1 , wherein the read command comprises a random read command.
8 . The apparatus of claim 1 , wherein the controller is further configured to cause the apparatus to:
update a change-log of changes to the mapping based at least in part on receiving the write command, wherein updating the mapping is based at least in part on updating the change-log.
9 . The apparatus of claim 8 , wherein the controller is further configured to cause the apparatus to:
transfer a portion of the mapping from the one or more non-volatile memory cells to the buffer based at least in part on updating the change-log, wherein updating the mapping is based at least in part on transferring the portion of the mapping and on one or more entries in the change-log.
10 . The apparatus of claim 1 , wherein the buffer comprises a mapping merge buffer.
11 . A non-transitory computer-readable medium storing code comprising instructions which, when executed by a processor of an electronic device, cause the electronic device to:
receive a write command comprising a logical address associated with a memory system comprising non-volatile memory cells;
update, at a buffer of the memory system, a mapping between the logical address and a physical address of the non-volatile memory cells based at least in part on receiving the write command;
transfer information stored in the buffer to the non-volatile memory cells based at least in part on updating the mapping in the buffer;
maintain the updated mapping in the buffer of the memory system for a duration based at least in part on the write command comprising a random write command and based at least in part on transferring the information stored in the buffer to the non-volatile memory cells, wherein the duration is based at least in part on a duration for performing at least one subsequent operation;
receive a read command comprising the logical address based at least in part on updating the mapping between the logical address and the physical address of the non-volatile memory cells;
read, during the duration and using the updated mapping stored in the buffer of the memory system, the physical address of the non-volatile memory cells corresponding to the logical address based at least in part on receiving the read command; and
remove the mapping from the buffer in accordance with expiration of the duration.
12 . The non-transitory computer-readable medium of claim 11 , wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to:
transmit an indication of the updated mapping from the buffer of the memory system to the non-volatile memory cells during the duration.
13 . The non-transitory computer-readable medium of claim 11 , wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to:
load the mapping to the buffer of the memory system based at least in part on receiving the write command, wherein updating the mapping between the logical address and the physical address is based at least in part on loading the mapping to the buffer.
14 . The non-transitory computer-readable medium of claim 11 , wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to:
receive a second write command comprising a plurality of logical addresses associated with the memory system;
update, at the buffer of the memory system, mappings between each logical address of the plurality of logical addresses and a corresponding physical address of the non-volatile memory cells based at least in part on receiving the second write command;
receive a second read command comprising a subset of the plurality of logical addresses based at least in part on updating the mappings between each logical address of the plurality of logical addresses and the corresponding physical address of the non-volatile memory cells; and
read, using the updated mappings at the buffer of the memory system, physical addresses of the non-volatile memory cells corresponding to the subset of the plurality of logical addresses based at least in part on receiving the second read command.
15 . The non-transitory computer-readable medium of claim 14 , wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to:
maintain the updated mappings between each logical address of the plurality of logical addresses and the corresponding physical address of the non-volatile memory cells in the buffer of the memory system for a second duration, wherein reading the physical addresses of the non-volatile memory cells corresponding to the subset of the plurality of logical addresses occurs during the second duration.
16 . The non-transitory computer-readable medium of claim 11 , wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to:
write data to the physical address of the non-volatile memory cells based at least in part on receiving the write command.
17 . The non-transitory computer-readable medium of claim 11 , wherein the read command comprises a random read command.
18 . A method, comprising:
receiving a write command comprising a logical address associated with a memory system comprising non-volatile memory cells;
updating, at a buffer of the memory system, a mapping between the logical address and a physical address of the non-volatile memory cells based at least in part on receiving the write command;
transferring information stored in the buffer to the non-volatile memory cells based at least in part on updating the mapping in the buffer;
maintaining the updated mapping in the buffer of the memory system for a duration based at least in part on the write command comprising a random write command and based at least in part on transferring the information stored in the buffer to the non-volatile memory cells, wherein the duration is based at least in part on a duration for performing at least one subsequent operation;
receiving a read command comprising the logical address based at least in part on updating the mapping between the logical address and the physical address of the non-volatile memory cells;
reading, during the duration and using the updated mapping stored in the buffer of the memory system, the physical address of the non-volatile memory cells corresponding to the logical address based at least in part on receiving the read command; and
removing the mapping from the buffer in accordance with expiration of the duration.