There are lots of virtual memory management techniques, including ballooning and memory compression. You can use these methods to control resource sharing among colocated VMs.