| CPC G06F 12/1054 (2013.01) [G06F 2212/7201 (2013.01)] | 15 Claims |

|
1. A method for managing memory, the method comprising:
generating a first data structure associated with one or more virtual addresses mapped to one or more physical addresses of the memory, wherein the first data structure is configured to implement a circular buffer, and wherein a size of the first data structure is based on a characteristic of the memory;
receiving, from a storage device coupled to a processor, data to be stored in the memory;
identifying a virtual address of the one or more virtual addresses based on the first data structure;
mapping the virtual address to a physical address;
storing the data in the physical address; and
updating identification of a first location of the first data structure based on the storing of the data, wherein the storage device provides the identification of the first location;
retrieving the data from the memory based on a request by the processor; and
updating identification of a second location of the first data structure based on the retrieving of the data, wherein the processor provides the identification of the second location.
|