Why KSM enabled but share bytes is zero?

chineseswish

New Member
Nov 12, 2024
10
0
1
systemctl status ksmtuned
Code:
ksmtuned.service - Kernel Samepage Merging (KSM) Tuning Daemon
     Loaded: loaded (/lib/systemd/system/ksmtuned.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-12-11 18:18:46 CST; 6 days ago
    Process: 1521 ExecStart=/usr/sbin/ksmtuned (code=exited, status=0/SUCCESS)
    Process: 3603720 ExecReload=/bin/kill -USR1 $MAINPID (code=exited, status=0/SUCCESS)
   Main PID: 1530 (ksmtuned)
      Tasks: 2 (limit: 154114)
     Memory: 3.4M
        CPU: 39min 43.637s
     CGroup: /system.slice/ksmtuned.service
             ├─   1530 /bin/bash /usr/sbin/ksmtuned
             └─3607170 sleep 60

Dec 11 18:18:46 pve8 systemd[1]: Starting ksmtuned.service - Kernel Samepage Merging (K>
Dec 11 18:18:46 pve8 systemd[1]: Started ksmtuned.service - Kernel Samepage Merging (KS>
Dec 18 13:56:54 pve8 systemd[1]: Reloading ksmtuned.service - Kernel Samepage Merging (>
 
What does your KSM configuration look like (cat /etc/ksmtuned)? IBy default, it does not start looking for pages to merge before 80% of host memory is used (free -m). If also works mostly (only?) on memory used for VMs and not containers. Maybe it did not find any lasting pages with the same content (cat /sys/kernel/mm/ksm/pages_sharing)?
The Proxmox Wiki has some links to more information about KSM: https://pve.proxmox.com/wiki/Dynamic_Memory_Management#KSM
 

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!