主权项 |
1. A method for dynamically managing cache assignments to a plurality of virtualized environments, the method comprising:
receiving a first cache request from a first Virtual Machine (VM); determining an amount of cache available; determining a first cache allocation based on the first cache request, the amount of cache available, and a Virtual Machine Quota (VM_quota), the VM_quota determined by an administrator; allocating the first cache allocation to the first VM; designating a quick reclamation amount of cache within the first cache allocation; receiving a second cache request from a second VM; allocating the quick reclamation amount of cache to the second VM; negotiating cache requirements between the first VM and the second VM; determining a second cache allocation based on the second cache request, the amount of cache available, the negotiating, and the VM_quota; reclaiming a portion of cache from the first VM; allocating the second cache allocation to each of the first VM and the second VM based on the determining; designating a quick reclamation amount of cache within the second cache allocation; receiving an indication that a VM is idle; determining a third cache allocation based on a number of active VM, the VM_quota, the indication, and the amount of cache available; and reallocating the third cache allocation to each one of the number of active VM. |