Patent ID: 7890712

Claim:
A method for managing allocation of memory to guests of respective virtual machines in a real computer, said method comprising the steps of: a computer monitoring at least three of the following: a number of said guests on a dispatch list waiting for pages of said memory, a number of times an available-frame of said memory becomes empty for each of said guests, a total working set size of all of said guests on said dispatch list, a number of frames of said memory on an available-frame list, a number of resident pages of said memory for each of said guests, a number of resident referenced frames of said memory, and a number of reserved pages of said memory for each of said guests; the computer automatically determining, based at least in part on results of said monitoring step, that there is a memory constraint of said memory, and in response, the computer automatically determining amounts of existing memory allocations to said virtual machines to be released by said virtual machines, respectively, to relieve said memory constraint, and the computer automatically sending a notification to said virtual machines to release said respective amounts of their memory allocations; and the computer automatically determining, based at least in part on subsequent results of said monitoring step, that there is not a memory constraint in said memory, and in response, the computer automatically determining additional amounts of said memory currently unallocated to be allocated to said virtual machines, respectively, and the computer automatically allocating said respective additional amounts of said memory to said virtual machines.