linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [Regerssion] [KSM] KSM CPU overhead in 6.16+ kernel compared to <=6.15 versions ("folio_walk_start" kernel object overhead)
@ 2025-10-13  9:22 craftfever
  2025-10-13  9:52 ` David Hildenbrand
  0 siblings, 1 reply; 6+ messages in thread
From: craftfever @ 2025-10-13  9:22 UTC (permalink / raw)
  To: akpm, david, xu.xin16, chengming.zhou; +Cc: linux-mm, linux-kernel, regressions

I've posted about that problem already on bigzilla (#220599), but maintainers asked to post issues on maillist.
The problem with freezes during KSM page scanning with certain processes like Chromium with huge virtual memory size amount was fized in 6.17.1 compared to 6.16.x/6.17, but problem with huge CPU overhead is present there. Compared to Linux <=6.15, where the overhead is much lighter anad there no much CPU consuming during KSM scanning, there is "folio_walk_start" kernel object is present (which I reviewed with "perf top" command) that is not present in versions <=6.15 during KSM work and which is in work starting from Linux 6.16. This method very resource-consuming compared to algorithm used in <=6.15 versions. Is there a kernel parameter to disable it or it needs more optimization?

I'm using MemoryKSM setting in systemd in user@.service for KSM process merging and it very light on <=6.15 ver., but CPU consuming on 6.16+ (6.17.1 without freezes) due to reasons said above.


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <34d27471-80a4-49f8-b6cb-f2e51518d9ea@airmail.cc>]

end of thread, other threads:[~2025-10-14  7:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-13  9:22 [Regerssion] [KSM] KSM CPU overhead in 6.16+ kernel compared to <=6.15 versions ("folio_walk_start" kernel object overhead) craftfever
2025-10-13  9:52 ` David Hildenbrand
2025-10-13 10:18   ` David Hildenbrand
     [not found] <34d27471-80a4-49f8-b6cb-f2e51518d9ea@airmail.cc>
2025-10-13 18:55 ` David Hildenbrand
     [not found]   ` <46d26246-5bd5-43f7-b1a4-dc721f717413@airmail.cc>
2025-10-13 19:58     ` David Hildenbrand
2025-10-14  7:59       ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox