Home ยป Dynamic Memory Management in Proxmox (KSM and Ballooning)

Dynamic Memory Management in Proxmox (KSM and Ballooning)

0 comment 132 views

KSM (Kernel Samepage Merging)

KSM is Kernel Samepage Merging, running in PVE. Execute below command in PVE Shell to check if ksmtuned installed.

pveversion -v

If this is not install, execute below command to install

apt install ksmtuned

After that, can modify \etc\ksmtuned.conf to have adjustment. For example, if the memory used 60%, then take action by KSM. It can be done by updating below on ksmtuned.conf.

KSM_THRES_COEF=40

Restart ksmtuned service to take this effective. It may take a moment to let it run.

systemctl restart ksmtuned

Ballooning

This is a service running on guest OS. For Linux, balloon drive installed by default.

For Windows guest OS, need to install the drive and enable the services.

Insert “Windows VirtIO Drivers” ISO into guest os, then install :\virtio-win-gt-x64.msi. It will update the Balloon Drive, and enable the service.

Refer:
https://pve.proxmox.com/wiki/Dynamic_Memory_Management
https://forum.proxmox.com/threads/ksm-control-daemon-vs-ksmtuned-installation.81262/

Leave a Comment