Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

KSM (kernel same-page merging)

21 bytes added, 11:25, 18 July 2015
Enabling memory deduplication libraries in containers
:''This mechanism requires the application to opt-in using the madvise() syscall. KSM Preload enables legacy applications (about any current application) to leverage this system by calling madvise(…, MADV_MERGEABLE) on every heap-allocated pages.''
Do not use the usual "<code># yum install ksm_preload" </code> command inside your containers, as it will install an unnecessary stream of dependencies. Assuming your container is running on a recent CentOS 6.x template, issue the following commands instead:
[root@container /]# cd /usr/local/src
20
edits