Patent ID: 9658775
Date: 2017-05-23
CPC Classifications: G06F

Claim:
1. A method of determining a page scan rate of a memory that is partitioned and accessed as large physical pages and small physical pages to identify potential page sharing opportunities, comprising: scanning at least one context for duplicated small virtual pages at a configurable page scan rate, wherein each of the at least one context has a virtual memory divided into a plurality of small virtual pages that are mappable to the physical pages; statistically estimating a percentage of small virtual pages mapped to large physical pages that are shareable while performing small virtual page scanning operations at a first page scan rate; and determining that the amount of free physical memory has decreased below a high memory threshold and, in response thereto, determining a second page scan rate based on the percentage of small virtual pages mapped to large physical pages that are shareable and performing small virtual page scanning operations at the second page scan rate instead of the first page scan rate.