Did some tests on a
E5-2620 v4
machine. The closest we have around for tests to the
E5-2670 v3
you have.
But that also doesn't make a difference and works as expected with kernel 6.2.
To get some more infos from your systems, we can enable logging for KSM. For that, uncomment the last 2 lines in
/etc/ksmtuned.conf
and restart the
ksmtuned
service.
Every minute you should see a few lines in the
/var/log/ksmtuned
file.
An example from my current test system:
Code:
ue 01 Aug 2023 04:02:17 PM CEST: committed 857117848 free 13873844
Tue 01 Aug 2023 04:02:17 PM CEST: 889982808 > 65729920, start ksm
Tue 01 Aug 2023 04:02:17 PM CEST: 13873844 < 32864960, boost
Tue 01 Aug 2023 04:02:17 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:03:17 PM CEST: committed 857120932 free 14294436
Tue 01 Aug 2023 04:03:17 PM CEST: 889985892 > 65729920, start ksm
Tue 01 Aug 2023 04:03:17 PM CEST: 14294436 < 32864960, boost
Tue 01 Aug 2023 04:03:17 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:04:17 PM CEST: committed 857122988 free 14662940
Tue 01 Aug 2023 04:04:17 PM CEST: 889987948 > 65729920, start ksm
Tue 01 Aug 2023 04:04:17 PM CEST: 14662940 < 32864960, boost
Tue 01 Aug 2023 04:04:17 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:05:17 PM CEST: committed 857133268 free 15062264
Tue 01 Aug 2023 04:05:17 PM CEST: 889998228 > 65729920, start ksm
Tue 01 Aug 2023 04:05:17 PM CEST: 15062264 < 32864960, boost
Tue 01 Aug 2023 04:05:18 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:06:18 PM CEST: committed 857133268 free 15501284
Tue 01 Aug 2023 04:06:18 PM CEST: 889998228 > 65729920, start ksm
Tue 01 Aug 2023 04:06:18 PM CEST: 15501284 < 32864960, boost
Tue 01 Aug 2023 04:06:18 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:07:18 PM CEST: committed 857140464 free 15896628
Tue 01 Aug 2023 04:07:18 PM CEST: 890005424 > 65729920, start ksm
Tue 01 Aug 2023 04:07:18 PM CEST: 15896628 < 32864960, boost
Tue 01 Aug 2023 04:07:18 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:08:18 PM CEST: committed 906934656 free 13719736
Tue 01 Aug 2023 04:08:18 PM CEST: 939799616 > 65729920, start ksm
Tue 01 Aug 2023 04:08:18 PM CEST: 13719736 < 32864960, boost
Tue 01 Aug 2023 04:08:18 PM CEST: KSMCTL start 1250 25
Tue 01 Aug 2023 04:09:18 PM CEST: committed 1007000468 free 4567776
Tue 01 Aug 2023 04:09:18 PM CEST: 1039865428 > 65729920, start ksm
Tue 01 Aug 2023 04:09:18 PM CEST: 4567776 < 32864960, boost
Tue 01 Aug 2023 04:09:18 PM CEST: KSMCTL start 1250 25
This is while the system is actively merging memory. Would be interesting what it looks like for you on the system where it doesn't work, and one where it is in a good state.
Additionally, could you run the following one-liner on the problematic and a good system?
for i in /sys/kernel/mm/ksm/*; do echo "$i:"; cat $i; done