linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] propose a auto-run mode for ksm
@ 2022-08-03 10:03 cgel.zte
  2022-08-03 10:05 ` [RFC PATCH 1/4] ksm: propose a auto-run mode of ksm cgel.zte
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: cgel.zte @ 2022-08-03 10:03 UTC (permalink / raw)
  To: akpm; +Cc: hughd, izik.eidus, willy, linux-kernel, linux-mm, xu xin

From: xu xin <xu.xin16@zte.com.cn>

The following patch series bring a NEW running state "auto mode". In
traditional KSM, whether ksmd works scanning and merging or not
depends on the sysfs klob ksm_run.

Most of time, letting ksmd run is not very much needed, for example,
when memory is sufficient, because it increases the delays of COW for
user applications and also consume some cpu resource. 

Besides, the fixed pages_to_scan is not always good. When there are a
lot of same pages, the default pages_to_scan makes ksmd so slow to merge
them.

The four patches try to optimize the above two points with a auto mode.
It's a lightweight optimization to KSM.

xu xin (4):
  ksm: propose a auto-run mode of ksm
  ksm: implement scan-enhanced algorithm of auto mode
  ksm: let ksmd work automatically with memory threshold
  ksm: show ksmd status of auto mode

 mm/ksm.c | 212 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 206 insertions(+), 6 deletions(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-03 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 10:03 [RFC PATCH 0/4] propose a auto-run mode for ksm cgel.zte
2022-08-03 10:05 ` [RFC PATCH 1/4] ksm: propose a auto-run mode of ksm cgel.zte
2022-08-03 10:05 ` [RFC PATCH 2/4] ksm: implement scan-enhanced algorithm of auto mode cgel.zte
2022-08-03 10:05 ` [RFC PATCH 3/4] ksm: let ksmd work automatically with memory threshold cgel.zte
2022-08-03 10:05 ` [RFC PATCH 4/4] ksm: show ksmd status of auto mode cgel.zte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).