Patent ID: 7484074

Claim:
A method of allocating real memory to virtual memory page sizes, said method comprising: in response to a page fault when all real memory is in use, selecting a first page frame for a virtual page; in response to determining that said virtual page does not represent a new page, paging-in a first page into said first page frame; and modifying a first repaging rate for a first page size of the first page in a repaging rates data structure; determining whether said first repaging rate for said first page size in said repaging rates data structure is different than a second repaging rate for a second page size in said repaging rates data structure; decreasing allocated first page frames for said first page size and increasing allocated second page frames for said second page size when said first repaging rate is lower than said second repaging rate; increasing said allocated first page frames for said first page size and decreasing said allocated second page frames for said second page size when said first repaging rate is higher than said second repaging rate, wherein said first page size is different from said second page size; and in response to determining that said first page represents a new page, zeroing said first page frame.