mirror of https://lore.kernel.org/lkml/
 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; 9+ 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] 9+ messages in thread

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20260112215315996jocrkFSqeYfhABkZxqs4T@zte.com.cn>
2026-01-12 13:59 ` [PATCH 1/2] ksm: Initial the addr only once in rmap_walk_ksm xu.xin16
2026-01-12 14:01 ` [PATCH 2/2] ksm: Optimize rmap_walk_ksm by passing a suitable address range 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
2026-02-06  7:14     ` [Reproducer]: " xu.xin16
2026-01-15  7:34 yang.yang29

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

all inboxes | Powered by JetHome®