Running a 4.19 linux kernel + couple of patches RT oriented + occasionally running a couple of processes SCHED_RR (for "pro"-audio purposes)
CONFIG_KSM set in the kernel and ksmd running, I usually keep /sys/kernel/mm/ksm/run = 0 except when only running standard desktop applications (KDE / KMAIL / Chromium / LibreOffice / VLC + a Mariadb server with max 2 clients of a tiny database)
In this latter case, I turn /sys/kernel/mm/ksm/run = 1 but, at the end of the day, all the witnesses of some useful activity supposed to be reported in the /sys/kernel/mm/ksm files desperately show : 0
1/ Am I missing something vs none of the applications I run actually madvise MADV_MERGEABLE ?
2/ Are there common desktop applications actually madvising MADV_MERGEABLE ? I thought my sql server would be one of those but... apparently... ???
3/ In the (un?)fortunate case KSM would appear of absolutely no use to me, I would like to get rid of the useless ksmd daemon but... running a non-systemd system (openrc) I fail to understand what commands its launch, I mean which rc service launches it if not launched by the kernel itself when CONFIG_KSM=[y].