Hello all,
I love the KSM feature in proxmox and would like some more knowledge on what the tuning fields do. My servers are mostly idle with CPU but are approaching Memory limits. I have the following config which works well, but I would love some more input to make it far more aggressive by sacrificing even more CPU cycles.
I have multiple 1TB Memory Servers where I am sitting around 700G used 700G KSM so i have more or less 2:1 my Memory. Typical CPU is under 20%
I love the KSM feature in proxmox and would like some more knowledge on what the tuning fields do. My servers are mostly idle with CPU but are approaching Memory limits. I have the following config which works well, but I would love some more input to make it far more aggressive by sacrificing even more CPU cycles.
I have multiple 1TB Memory Servers where I am sitting around 700G used 700G KSM so i have more or less 2:1 my Memory. Typical CPU is under 20%
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=20 #SLEEP LESS OFTEN
# KSM_NPAGES_BOOST=300
# KSM_NPAGES_DECAY=-50
# KSM_NPAGES_MIN=64
# KSM_NPAGES_MAX=1250
KSM_THRES_COEF=100 #RUN ALWAYS
# KSM_THRES_CONST=2048
# The metric used to calculate how much memory is used by a QEMU process
# The proportional set size (pss) or the residential (rsz) ones are good fits.
# KSM_PS_METRIC=pss
# uncomment the following if you want ksmtuned debug info
# LOGFILE=/var/log/ksmtuned
# DEBUG=1
Last edited: