Installation guide
167
pages_volatile
Number of volatile pages.
run
Whether the KSM process is running.
sleep_millisecs
Sleep milliseconds.
KSM tuning activity is stored in the /var/log/ksmtuned log file if the DEBUG=1 line is added to
the /etc/ksmtuned.conf file. The log file location can be changed with the LOGFILE parameter.
Changing the log file location is not advised and may require special configuration of SELinux settings.
The /etc/sysconfig/ksm file can manually set a number or all pages used by KSM as not
swappable.
1. Open the /etc/sysconfig/ksm file with a text editor.
# The maximum number of unswappable kernel pages
# which may be allocated by ksm (0 for unlimited)
# If unset, defaults to half of total memory
# KSM_MAX_KERNEL_PAGES=
2. Uncomment the KSM_MAX_KERNEL_PAGES line to manually configure the number of
unswappable pages for KSM. Setting this variable to 0 configures KSM to keep all identical pages
in main memory which can improve performance if the system has sufficient main memory.
# The maximum number of unswappable kernel pages
# which may be allocated by ksm (0 for unlimited)
# If unset, defaults to half of total memory
KSM_MAX_KERNEL_PAGES=0
Deactivating KSM
KSM has a performance overhead which may be too large for certain environments or host systems.
KSM can be deactivated by stopping the ksm service and the ksmtuned service. Stopping the
services deactivates KSM but does not persist after restarting.
# service ksm stop
Stopping ksm: [ OK ]
# service ksmtuned stop
Stopping ksmtuned: [ OK ]
Persistently deactivate KSM with the chkconfig command. To turn off the services, run the following
commands:
# chkconfig ksm off
# chkconfig ksmtuned off