linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] KSM: Optimizations for rmap_walk_ksm
@ 2026-02-06  9:55 xu.xin16
  0 siblings, 0 replies; 3+ messages in thread
From: xu.xin16 @ 2026-02-06  9:55 UTC (permalink / raw)
  To: david, akpm
  Cc: chengming.zhou, hughd, wang.yaxin, yang.yang29, linux-mm, linux-kernel

From: xu xin <xu.xin16@zte.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


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

* Re: [PATCH v2 0/2] KSM: Optimizations for rmap_walk_ksm
  2026-02-06  9:56 xu.xin16
@ 2026-02-06 10:47 ` David Hildenbrand (Arm)
  0 siblings, 0 replies; 3+ messages in thread
From: David Hildenbrand (Arm) @ 2026-02-06 10:47 UTC (permalink / raw)
  To: xu.xin16, akpm
  Cc: chengming.zhou, hughd, wang.yaxin, yang.yang29, linux-mm, linux-kernel

On 2/6/26 10:56, xu.xin16@zte.com.cn wrote:
> From: xu xin <xu.xin16@zte.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].

For the future, we usually describe what changed between versions 
briefly in the cover letter. Thanks!

-- 
Cheers,

David


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

* [PATCH v2 0/2] KSM: Optimizations for rmap_walk_ksm
@ 2026-02-06  9:56 xu.xin16
  2026-02-06 10:47 ` David Hildenbrand (Arm)
  0 siblings, 1 reply; 3+ messages in thread
From: xu.xin16 @ 2026-02-06  9:56 UTC (permalink / raw)
  To: david, akpm
  Cc: chengming.zhou, hughd, wang.yaxin, yang.yang29, linux-mm,
	linux-kernel, xu.xin16

From: xu xin <xu.xin16@zte.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


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

end of thread, other threads:[~2026-02-06 10:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-06  9:55 [PATCH v2 0/2] KSM: Optimizations for rmap_walk_ksm xu.xin16
2026-02-06  9:56 xu.xin16
2026-02-06 10:47 ` David Hildenbrand (Arm)

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