Hello,
Kernel Samepage Merging (KSM) [1] seems to be an interesting linux kernel feature and I
wonder if I should expect it to work with podman. On my Fedora 35 [2], I tried to enable
it (both by `echo 1 >/sys/kernel/mm/ksm/run`, and with `ksmtuned`) and started a few
container instances _of the same_ (podman) image. But `/sys/kernel/mm/ksm/pages_shared`
always shows 0.
According to the KVM documention [3], it is supported there. But it seems that KSM support
is an application opt-in (with `int madvise(addr, length, MADV_MERGEABLE)`).
Hence my question is: Is KSM supported with podman?
Kind regards,
aanno
[1]
https://www.kernel.org/doc/Documentation/vm/ksm.txt
[2]
https://fedoraproject.org/wiki/Features/KSM
[3]
https://www.linux-kvm.org/page/KSM