主权项 |
1. A method for providing hints for page stealing by prioritizing pages based on the number of residences for the pages in a virtual environment comprising:
receiving, by one or more computer processors, a plurality of pages that are candidates to be hinted to a hypervisor for page stealing; determining, by one or more computer processors, at least two page types from the plurality of pages, wherein the page type include at least one of Klock (Kernel pages), working segment pages, remote pages, and persistent pages; determining, by one or more computer processors, whether any of the at least two page types have a total number of residences less than a total number of potential residences in a virtual environment for all page types and have a total number of residences less than a threshold, wherein the threshold is determined by a user of the virtual environment in real time, and wherein the total number of potential residences is the sum of readable residences and writeable residences, and wherein the total number of residences include a paging space, a shared memory pool, and a main memory, and wherein the paging space comprises paging space found on a computer that hosts the hypervisor; and responsive to determining a first page type of the at least two page types has a total number of residences less than a total number of potential residences in the virtual environment for all page types and has a total number of residences less than a threshold, notifying, by one or more computer processors, the hypervisor of at least one page, from the plurality of pages, that is of the first page type, and wherein the notification includes an indication that the at least one page is an optimal candidate for page stealing. |