All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/damon/core: Iterate over installed probes instead of DAMON_MAX_PROBES
@ 2026-10-07 15:48 Suhaas Joshi
  2026-10-07 15:48 ` [PATCH 1/2] mm/damon/core: Use only installed probe in damon_merge_two_regions() Suhaas Joshi
  2026-10-07 15:48 ` [PATCH 2/2] mm/damon/core: Copy only installed probe in damon_split_region_at() Suhaas Joshi
  0 siblings, 2 replies; 9+ messages in thread
From: Suhaas Joshi @ 2026-10-07 15:48 UTC (permalink / raw)
  To: sj, akpm; +Cc: damon, linux-mm, linux-kernel, suhaas

Hello,

There were two "todo: " items of the same nature in mm/damon/core.c. Both
of these suggested that we should iterate over only installed probes while
updating (last_)probe_hits[] during merging/splitting regions, instead of
iterating over the entire array, which may have empty/unused indices.

So this patch series does exactly that. It replaces the for-loop over
[0, DAMON_MAX_PROBES) with a damon_for_each_probe() over the probe list of
the context.

These patches are based off mm-new. They pass all KUnit tests related to
damon. I have boot tested (but nothing beyond) on qemu-x86_64. Please do
let me know if I should do any specific tests and link the logs here.

Regards
Suhaas Joshi

Suhaas Joshi (2):
  mm/damon/core: Use only installed probe in damon_merge_two_regions()
  mm/damon/core: Copy only installed probe in damon_split_region_at()

 mm/damon/core.c             | 56 ++++++++++++++++++-------------
 mm/damon/tests/core-kunit.h | 67 +++++++++++++++++++++++++++++++------
 2 files changed, 89 insertions(+), 34 deletions(-)

-- 
2.55.0



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

end of thread, other threads:[~2026-10-13  3:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 15:48 [PATCH 0/2] mm/damon/core: Iterate over installed probes instead of DAMON_MAX_PROBES Suhaas Joshi
2026-10-07 15:48 ` [PATCH 1/2] mm/damon/core: Use only installed probe in damon_merge_two_regions() Suhaas Joshi
2026-10-07 15:58   ` sashiko-bot
2026-10-08 10:40   ` Liew Rui Yan
2026-10-08 10:44   ` SJ Park
2026-10-07 15:48 ` [PATCH 2/2] mm/damon/core: Copy only installed probe in damon_split_region_at() Suhaas Joshi
2026-10-07 16:00   ` sashiko-bot
2026-10-08 10:44   ` Liew Rui Yan
2026-10-08 11:03   ` SJ Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.