Hello, all. I started reading about KSM Sharing. I noticed that this should start working when 80% or so.
The majority of my CTs, and VMs are Ubuntu Based. So should all be sharing same base image.
Proxmox01 I (Not in screenshot) I spun up another VM on Ubuntu and got the memory utilization up to 90% and noticed KSM doesn't appear to do anything.
Proxmox02 I spun up 3 identical machines, with 18GB each, and loaded up the memory to use about 58GB total. KSM also did not appear to work.
Any Ideas?
Does Ballooning memory need to be used for this feature in the Linux Kernel to work?
Or am I missing something obvious.
Lol, do I just need to uncomment these lines for this to work?
KSM_THRES_COEF=20
KSM_THRES_CONST=2048
ksmtuned.conf
# 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=100
# KSM_NPAGES_BOOST=300
# KSM_NPAGES_DECAY=-50
# KSM_NPAGES_MIN=64
# KSM_NPAGES_MAX=1250
# KSM_THRES_COEF=20
# KSM_THRES_CONST=2048
# uncomment the following if you want ksmtuned debug info
# LOGFILE=/var/log/ksmtuned
# DEBUG=1
The majority of my CTs, and VMs are Ubuntu Based. So should all be sharing same base image.
Proxmox01 I (Not in screenshot) I spun up another VM on Ubuntu and got the memory utilization up to 90% and noticed KSM doesn't appear to do anything.
Proxmox02 I spun up 3 identical machines, with 18GB each, and loaded up the memory to use about 58GB total. KSM also did not appear to work.
Any Ideas?
Does Ballooning memory need to be used for this feature in the Linux Kernel to work?
Or am I missing something obvious.
Lol, do I just need to uncomment these lines for this to work?
KSM_THRES_COEF=20
KSM_THRES_CONST=2048
ksmtuned.conf
# 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=100
# KSM_NPAGES_BOOST=300
# KSM_NPAGES_DECAY=-50
# KSM_NPAGES_MIN=64
# KSM_NPAGES_MAX=1250
# KSM_THRES_COEF=20
# KSM_THRES_CONST=2048
# uncomment the following if you want ksmtuned debug info
# LOGFILE=/var/log/ksmtuned
# DEBUG=1
Attachments
Last edited: