Patent ID: 7543124

Claim:
A computer-implemented method of managing memory pages in a memory, wherein the memory includes a page replacement function, said method comprising: detecting that a sequence of pages is read by an application into the memory; initiating a read-ahead to access a plurality of pages including said sequence of pages and a next page that has not yet been read, and storing the plurality in a page frame table of the memory; setting a soft-pin bit in the page frame table corresponding to each of the pages of the plurality of pages in the read-ahead; each said soft-pin bit temporarily reserving its respective page from replacement by the page replacement function; skipping replacement of the next page by the page replacement function, if its respective soft-pin bit remains set during a first pass of the page replacement function in the memory; setting a reference bit for the next page in the page frame table, in response to said skipping replacement of said next page; unsetting said soft-pin bit of the next page, if the next page is copied into an application buffer; and replacing the next page on a second pass of the page replacement function in the memory, if the reference bit is set, even though said soft-pin bit remains set.