KSM sharing

Discussion in 'Proxmox VE: Installation and configuration' started by Eric_D, Apr 19, 2019.

  1. Eric_D

    Eric_D New Member

    Joined:
    Apr 19, 2019
    Messages:
    2
    Likes Received:
    0
    Hi,

    I have a few VM and CT on my server, mostly under Ubuntu 18.04, and my KSM sharing always show "0B".

    Do you know why ?
     
  2. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,924
    Likes Received:
    168
    Normaly this feature need 3 to 5 days, depending on shared data. But it works here on us sever. The service is running?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Eric_D

    Eric_D New Member

    Joined:
    Apr 19, 2019
    Messages:
    2
    Likes Received:
    0
    Yes, service is running :
    Code:
    root@pve:~# systemctl status ksmtuned.service
    ● ksmtuned.service - Kernel Samepage Merging (KSM) Tuning Daemon
       Loaded: loaded (/lib/systemd/system/ksmtuned.service; enabled; vendor preset: enabled)
       Active: active (running) since Mon 2019-04-15 21:47:00 CEST; 4 days ago
      Process: 987 ExecStart=/usr/sbin/ksmtuned (code=exited, status=0/SUCCESS)
     Main PID: 1033 (ksmtuned)
        Tasks: 2 (limit: 4915)
       Memory: 11.1M
          CPU: 1min 59.171s
       CGroup: /system.slice/ksmtuned.service
               ├─1033 /bin/bash /usr/sbin/ksmtuned
               └─6115 sleep 60
    
    Apr 15 21:47:00 pve systemd[1]: Starting Kernel Samepage Merging (KSM) Tuning Daemon...
    Apr 15 21:47:00 pve systemd[1]: Started Kernel Samepage Merging (KSM) Tuning Daemon.
    
    Server and VM / CT are up for 4 days
     
  4. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,640
    Likes Received:
    326
    AFAIK it'll only be triggered if the ram is sufficient full and also independent of the time.

    I updated our cluster the last week and the KSM directly kicks in on a freshly updated node while moving a lot of machines to that node.
     
  5. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,924
    Likes Received:
    168
    Works here, and Memory is not full.
     

    Attached Files:

    • ksm.png
      ksm.png
      File size:
      36.2 KB
      Views:
      9
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,640
    Likes Received:
    326
  7. aychprox

    aychprox Member

    Joined:
    Oct 27, 2015
    Messages:
    61
    Likes Received:
    4
    uncomment KSM_THRES_COEF in /etc/ksmtuned.conf and set your value.
    reboot or restart ksmtuned service and wait for a while, you should see the changes.
     
    guletz likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice