[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260206175507055aERH4UFC0NcZLtWAwn1hv@zte.com.cn>
Date: Fri, 6 Feb 2026 17:55:07 +0800 (CST)
From: <xu.xin16@....com.cn>
To: <david@...nel.org>, <akpm@...ux-foundation.org>
Cc: <chengming.zhou@...ux.dev>, <hughd@...gle.com>, <wang.yaxin@....com.cn>,
<yang.yang29@....com.cn>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH v2 0/2] KSM: Optimizations for rmap_walk_ksm
From: xu xin <xu.xin16@....com.cn>
There are two perfomance optimization patches for rmap_walk_ksm.
The patch [1/2] move the initializaion of addr from the position inside loop
to the position before the loop, since the variable will not change in the
loop.
The patch [2/2] optimize rmap_walk_ksm by passing a suitable page offset range
to the anon_vma_interval_tree_foreach loop to reduce ineffective checks.
The metric performance is seen at patch[2/2].
xu xin (2):
ksm: Initialize the addr only once in rmap_walk_ksm
ksm: Optimize rmap_walk_ksm by passing a suitable address range
mm/ksm.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
--
2.25.1
Powered by blists - more mailing lists