Method and apparatus for swapping virtual machine memory
AssigneeRed Hat Israel, Ltd.
InventorShahar Frank
Life of this patent
Estimating the term…
Abstract
A method and system for swapping memory of a virtual machine are described. In one embodiment, virtual machines are hosted by a server and accessed by remote clients over a network. The server assigns first storage and second storage to each virtual machine, where the first storage is designated for swap memory of a respective virtual machine and the second storage is designated for persistent data of a respective virtual machine. The server monitors events pertaining to the virtual machines. Upon detecting a predefined event pertaining to one of the virtual machines, the server causes the contents of the first storage to be wiped out.
Claims20
A computer-implemented method comprising:
- identifying, by a virtual machine, a disk access request;
- determining, by the virtual machine, whether the disk access request pertains to swap memory;
- and
- if the disk access request pertains to swap memory, causing the disk access request to be performed with respect to a first disk, the first disk being designated for swap memory.
A computer-implemented method for a server hosting a plurality of virtual machines, the method comprising:
- assigning, by the server, a first storage and a second storage to each virtual machine, the first storage being designated for swap memory of a respective virtual machine and the second storage being designated for persistent data of a respective virtual machine;
- monitoring, by the server, events pertaining to the plurality of virtual machines;
- detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines;
- and
- causing the contents of the first storage of the one of the plurality of virtual machines to be wiped out.
A system comprising:
- data storage to have a plurality of first disks designated for swap memory and a plurality of second disks designated for persistent data;
- and
- a host coupled to the data storage to run a plurality of virtual machines, wherein the host further comprises a swap memory manager operable to
- assign at least one first disk and at least one second disk to each virtual machine,
- monitor events pertaining to the plurality of virtual machines,
- detect a predefined event pertaining to one of the plurality of virtual machines, and
- cause contents of the first disk of the one of the plurality of virtual machines to be wiped out.
A computer readable storage medium including instructions that, when executed by a processing system, cause the processing system to perform a method comprising:
- assigning, by the server, a first storage and a second storage to each virtual machine, the first storage being designated for swap memory of a respective virtual machine and the second storage being designated for persistent data of a respective virtual machine;
- monitoring, by the server, events pertaining to the plurality of virtual machines;
- detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines;
- and
- causing the contents of the first storage of the one of the plurality of virtual machines to be wiped out.
Dependencies are inferred from the claim text.