linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] ksm: Optimize rmap_walk_ksm by passing a suitable address  range
@ 2026-01-15  7:34 yang.yang29
  0 siblings, 0 replies; 7+ messages in thread
From: yang.yang29 @ 2026-01-15  7:34 UTC (permalink / raw)
  To: xu.xin16
  Cc: akpm, david, chengming.zhou, hughd, wang.yaxin, linux-mm, linux-kernel

> + pgoff_start = rmap_item->address >> PAGE_SHIFT;
> + pgoff_end = pgoff_start + folio_nr_pages(folio) - 1;
> +
> anon_vma_interval_tree_foreach(vmac, &anon_vma->rb_root,
> - 0, ULONG_MAX) {
> + pgoff_start, pgoff_end) {

Good job.
I see there is another similar situations in collect_procs_ksm().
We can simulate memory errors by calling the memory_failure().


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <20260112215315996jocrkFSqeYfhABkZxqs4T@zte.com.cn>]

end of thread, other threads:[~2026-01-15  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15  7:34 [PATCH 2/2] ksm: Optimize rmap_walk_ksm by passing a suitable address range yang.yang29
     [not found] <20260112215315996jocrkFSqeYfhABkZxqs4T@zte.com.cn>
2026-01-12 14:01 ` xu.xin16
2026-01-12 17:47   ` Andrew Morton
2026-01-12 19:25   ` David Hildenbrand (Red Hat)
2026-01-14  2:40     ` xu.xin16
2026-01-14 10:24       ` David Hildenbrand (Red Hat)
2026-01-15  1:41         ` xu.xin16

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