Installation
apt install ksmtuned
KSM_SLEEP_MSEC=100 KSM_THRES_COEF=50
Enable
systemctl enable ksmtuned; systemctl start ksmtuned
Check if greater then 0
cat /sys/kernel/mm/ksm/pages_shared
Unlock VM
qm unlock <VMID>