There's KSM that should help: https://pve.proxmox.com/wiki/Kernel_Samepage_Merging_(KSM)
Probably works best running VMs with the same kernel and software version.