Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

KSM (kernel same-page merging)

162 bytes added, 04:35, 10 October 2016
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...''
== 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.
20
edits