20
edits
Changes
m
Corrected typo (KSM should be written in lowercase)
[root@container /]# yum install -y yum-downloadonly
''...bunch of output...''
(If you get an error like "No package yum-downloadonly available", just ignore it and proceed. Most likely, your Yum installation includes that plugin already).
[root@container src]# yum -y --downloadonly --downloaddir=/usr/local/src install ksm_preload
''...bunch of output...''
'''LD_PRELOAD=/usr/lib64/libksm_preload.so'''
'''export LD_PRELOAD'''
''mode=$1 # start or stop''
== How to check efficiency of KSM == <!--T:26-->
To check if KSM is actually reducing memory usage, issue this command on the HN:
[root@HN /]# cat /sys/kernel/mm/KSMksm/pages_sharing
If the value is greater than 0, you're saving memory. Refer to https://www.kernel.org/doc/Documentation/vm/ksm.txt for more details.