hi,
afaik,you set the desired vm ram in vm config
then if your pve host has ksm enabled, that vm ram will remain the same, from the vm pov,
but the host could save _its_ ram deduplicating ram pages used in common by other vm on the same host...
esxi servers probably use other concepts to overcommit vm ram
Marco