KSM Sharing

esra

New Member
Feb 27, 2020
20
2
3
Hi,
Can we increase the KSM sharing in proxmox.It has very high RAM value.Please see attachment.
How we can do ?
 

Attachments

  • prx ksm sharing.jpg
    prx ksm sharing.jpg
    62.7 KB · Views: 220
  • Like
Reactions: zaidRANGER
By default ksm sharing only starts working if RAM exceeds 80% usage. And make sure ksm is installed. Using ProxmoxVE-ISO it was installed by default but I reinstalled the system and installed Proxmox atop of Debian and ksm wasn't installed by default. I needed to manually install und enable it.

Code:
# apt-get install -y ksmtuned
# systemctl enable ksmtuned
# systemctl start ksmtuned
# systemctl enable --now ksm.service

Look at the /etc/ksmtuned.conf if you can find a way to lower the activation threshold ("KSM_THRES_COEF" maybe?):

Code:
# Configuration file for ksmtuned.
# How long ksmtuned should sleep between tuning adjustments
# KSM_MONITOR_INTERVAL=60

# Millisecond sleep between ksm scans for 16Gb server.
# Smaller servers sleep more, bigger sleep less.
# KSM_SLEEP_MSEC=10

# KSM_NPAGES_BOOST - is added to the `npages` value, when `free memory` is less than `thres`.
# KSM_NPAGES_BOOST=300

# KSM_NPAGES_DECAY - is the value given is subtracted to the `npages` value, when `free memory` is greater than `thres`.
# KSM_NPAGES_DECAY=-50

# KSM_NPAGES_MIN - is the lower limit for the `npages` value.
# KSM_NPAGES_MIN=64

# KSM_NPAGES_MAX - is the upper limit for the `npages` value.
# KSM_NPAGES_MAX=1250

# KSM_THRES_COEF - is the RAM percentage to be calculated in parameter `thres`.
# KSM_THRES_COEF=20

# KSM_THRES_CONST - If this is a low memory system, and the `thres` value is less than `KSM_THRES_CONST`, then reset `thres` value to `KSM_THRES_CONST` value.
# KSM_THRES_CONST=2048

# uncomment the following to enable ksmtuned debug information
# LOGFILE=/var/log/ksmtuned
# DEBUG=1
 
It has very high RAM value.

It is not RAM, it's swap and it is not enough - only 8 GB for 768 GB of RAM, I would increase it tremendously (e.g. factor of 8).

Keep in mind that LXC does not support KSM per se, only QEMU does, because the memory is specially flagged as deduplicable. Please see the documentation.
 
It is not RAM, it's swap and it is not enough - only 8 GB for 768 GB of RAM, I would increase it tremendously (e.g. factor of 8).

Keep in mind that LXC does not support KSM per se, only QEMU does, because the memory is specially flagged as deduplicable. Please see the documentation.
how i can increase RAM?
 

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!