| CPC G06F 3/0656 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] | 16 Claims |

|
1. A memory access method, comprising:
identifying, when an access to a page of a remote memory occurs, a type of the access;
allocating a sparse buffer when the access is a sparse write;
storing data for the sparse write in the sparse buffer;
storing an address for the sparse write as a key and the sparse buffer as a value in a buffer table; and
updating an instruction pointer to point to a next instruction,
wherein, when a read access to the page of the remote memory occurs, the method further comprises:
searching the buffer table by using an address for the read access as a key; and
determining from the searched result whether a sparse buffer corresponding to the address for the read access exists,
wherein, when it is determined that the sparse buffer corresponding to the address for the read access exists, the method further comprises:
fetching the page from the remote memory into the local memory;
reflecting the data stored in the sparse buffer to the fetched page; and
mapping the reflected page as read-only to an address space.
|