Patent ID: 8244957

Claim:
A computer-implemented method, comprising: determining, by a host controller machine, candidate target host machines capable of receiving a virtual machine (VM) to be migrated; obtaining, by the host controller machine, hash values for memory pages of the VM to be migrated; obtaining, by the host controller machine for each of the determined candidate target host machines, hash values for shared memory pages utilized by one or more VMs hosted by the candidate target host machine; comparing, by the host controller machine for each of the determined candidate target host machine, the hash values for the memory pages of the VM to be migrated with the hash values for the shared memory pages of the candidate target host machine; and adjusting, by the host controller machine, a score in a general selection algorithm for the candidate target host machine with the most identical matches of the hash values for the shared memory pages with the hash values for the memory pages of the VM to be migrated.