Greetings all. We are running LXC v2.0.8 on Ubuntu 16.04 and all containers are running identical versions of the application stack (php, php-fpm, nginx, etc). Since each container is running the exact same versions of apps, how can I get the host server to use KSM (kernel same-page merging) on the containers? As you can see below, KSM has been enabled, but no pages seem to be shared.
Some additional info: ------------------- root@container01:# uname -a Linux HJ-WP-Container-001 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux ------------------- ------------------- root@container01:# grep KSM /boot/config-4.4.0-57-generic CONFIG_KSM=y ------------------- ------------------- root@container01:# ls -la /sys/kernel/mm/ksm/ total 0 drwxr-xr-x 2 root root 0 Feb 10 14:25 . drwxr-xr-x 6 root root 0 Feb 10 14:24 .. -r--r--r-- 1 root root 4096 Feb 10 14:25 full_scans -rw-r--r-- 1 root root 4096 Feb 10 14:25 merge_across_nodes -r--r--r-- 1 root root 4096 Feb 10 14:25 pages_shared -r--r--r-- 1 root root 4096 Feb 10 14:25 pages_sharing -rw-r--r-- 1 root root 4096 Feb 10 14:25 pages_to_scan -r--r--r-- 1 root root 4096 Feb 10 14:25 pages_unshared -r--r--r-- 1 root root 4096 Feb 10 14:25 pages_volatile -rw-r--r-- 1 root root 4096 Feb 2 07:07 run -rw-r--r-- 1 root root 4096 Feb 10 14:25 sleep_millisecs ------------------- ------------------- root@container01:# cat /sys/kernel/mm/ksm/pages_shared 0 ------------------- Thanks. -Ron _______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users