KSM how to clear current "KSM Sharing"?

harmonyp

Member
Nov 26, 2020
196
4
23
46
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!