KSM how to clear current "KSM Sharing"?

harmonyp

Member
Nov 26, 2020
196
4
23
47
I accidentally configured KSM wrong

nano /etc/ksmtuned.conf

Code:
KSM_THRES_COEF=30

Thinking this would activate KSM when <30% RAM was remaining rather than what it's doing now (activating at 30% RAM usage).

How can I safely restart KSM and clear the current RAM being used by KSM? I am also using ZFS if that matters.
 
You can set KSM_THRES_COEF to 70 and reboot the host. After reboot it should be like you wanted that.
systemctl restart ksmtuned && systemctl restart ksm should work too if you aren't able to reboot.
 
Last edited:
  • Like
Reactions: harmonyp
You can set KSM_THRES_COEF to 70 and reboot the host. After reboot it should be like you wanted that.
systemctl restart ksmtuned && systemctl restart ksm should work too if you aren't able to reboot.
systemctl restart ksm service is not found