From: SJ Park <sj@kernel.org>
To: Lian Wang <lianux.mm@gmail.com>
Cc: SJ Park <sj@kernel.org>,
Ravi Jonnalagadda <ravis.opensrc@gmail.com>,
akinobu.mita@gmail.com, damon@lists.linux.dev,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, akpm@linux-foundation.org,
corbet@lwn.net, bijan311@gmail.com, ajayjoshi@micron.com,
honggyu.kim@sk.com, yunjeong.mun@sk.com, rientjes@google.com,
weixugc@google.com, jic23@kernel.org, gourry@gourry.net,
Kunwu Chan <kunwu.chan@linux.dev>
Subject: Re: [RFC PATCH v2 0/9] mm/damon: hardware-sampled access reports
Date: Tue, 15 Sep 2026 17:58:09 -0700 [thread overview]
Message-ID: <20260916005810.101606-1-sj@kernel.org> (raw)
In-Reply-To: <20260915025514.2434-1-lianux.mm@gmail.com>
Hi Lian,
On Tue, 15 Sep 2026 10:54:51 +0800 Lian Wang <lianux.mm@gmail.com> wrote:
> From: "Lian Wang (ProcessMission)" <lianux.mm@gmail.com>
>
> Hi Ravi and SJ,
>
> Thank you for sharing this work. The report path looks potentially useful
> for a DAMON observation-granularity problem that we are investigating.
>
> The scenario originated from an issue reported by SXF, and we are planning to
> share and discuss it at LPC. We have now reproduced the underlying observation
> difference on both a local PC and an x86 server. The server run below is our
> larger, controlled reproduction.
>
> Our test monitors a QEMU process whose guest memory is backed by a shared
> tmpfs file. The guest repeatedly writes one 4 KiB page in every 2 MiB range
> of a resident 48 GiB data set. The unique 4 KiB spatial coverage of one sweep
> is about 96 MiB, or 0.195% of that data set.
>
> Using vaddr DAMON with a 500 ms sampling interval, 20 second aggregation
> interval, and 500--2000 regions, two opposite-order runs reported a mean hot
> ratio of 1.751% without shmem PMD mappings and 75.836% with them. A control
> that writes the full 2 MiB ranges reported 75.366% with PMD mappings. Hence,
> in this workload the current observation does not distinguish spatially sparse
> 4 KiB activity from dense activity once the large mappings are present.
The observation makes sense. However, does the sparse access pattern
realistic? If so, what is the purpose or expected benefit of using huge page
for workloads having such access pattern?
>
> We are testing existing DAMON strategy mitigations first. As a next step, we
> plan to replay recorded access addresses through the report/probe decision
> path, independently of a live PMU, and check whether DAMOS can distinguish the
> sparse and dense cases. In that experiment, raw report frequency and unique
> 4 KiB spatial coverage will remain separate quantities; lack of reports will
> remain unknown when source coverage or loss is insufficient.
>
> If the report evidence makes the decision reliable, the response we want to
> evaluate is an internal, bounded PMD mapping demotion (splitting the mapping
> while retaining the underlying THP folio), rather than exposing physical folio
> split as a DAMOS action. We will first keep the response stat-only and archive
> the would-act ranges. After the replay result is repeatable, we can replace
> the replay producer with an appropriate hardware source and share the results.
I'm not very sure if this is the right direction. PMD mapping demotion sounds
like you just don't want to use huge pages. If so, you could disable huge
pages. Answers to my above questions would be helpful for me.
>
> This seems like a useful consumer experiment for the report interface, even if
> the vaddr and optimized transport parts belong to the later phase. Please let
> us know if this direction conflicts with the intended report semantics.
I believe this doesn't conflict with the project, though. Nevertheless,
technically speaking, it is not the report semantics. Reporting allows any
information to be reported. Page faults like information could be coarse
grained, same to the current page table accessed-bit based one. Only finer
grained access primitive reports, like those from perf events, would increase
the accuracy for the sparse access pattern monitoring.
Whether sparse access pattern is realistic and using huge pages on systems
having such access pattern makes sense are different questions, though.
>
> We will share the strategy, replay, and mapping-decision results once they are
> repeatable. We are also reviewing and testing this series, and will follow up
> with the appropriate tag(s) for the exact revision if that work justifies them.
Looking forward to! Nonetheless, it would better to make sure we are on the
same page for the above questions before digging deeper, in my humble opinion.
Thanks,
SJ
[...]
next prev parent reply other threads:[~2026-09-16 0:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 17:16 Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 1/9] mm/damon/vaddr: support page fault access check primitive Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 2/9] mm/damon/core: read the CPU number with preemption disabled Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 3/9] mm/damon/paddr: lock the folio for the page fault primitive rmap walk Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 4/9] mm/damon: add damos_node_eligible_mem_bp tracepoint Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 5/9] mm/damon/core: add per-probe-class report rings and unified drain Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 6/9] mm/damon: add perf-event overflow handler feeding the report ring Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 7/9] mm/damon/ops-common: use probe-weighted score when probe weights are set Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 8/9] mm/damon: add perf_event prep for PMU-driven hotness probes Ravi Jonnalagadda
2026-09-10 17:16 ` [RFC PATCH v2 9/9] mm/damon/tests/drain-kunit: kunit for report rings and unified drain Ravi Jonnalagadda
2026-09-11 0:34 ` [RFC PATCH v2 0/9] mm/damon: hardware-sampled access reports SJ Park
2026-09-12 1:38 ` SJ Park
2026-09-15 21:23 ` Ravi Jonnalagadda
2026-09-16 0:42 ` SJ Park
2026-09-15 2:54 ` Lian Wang
2026-09-16 0:58 ` SJ Park [this message]
2026-09-16 3:44 ` Lian Wang (ProcessMission)
2026-09-16 5:11 ` DAMON reporting more hot memory on huge pages (was: "Re: [RFC PATCH v2 0/9] mm/damon: hardware-sampled access reports") SJ Park
2026-09-17 0:45 ` SJ Park
2026-09-17 2:06 ` Lian Wang
2026-09-17 3:35 ` SJ Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260916005810.101606-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=ajayjoshi@micron.com \
--cc=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bijan311@gmail.com \
--cc=corbet@lwn.net \
--cc=damon@lists.linux.dev \
--cc=gourry@gourry.net \
--cc=honggyu.kim@sk.com \
--cc=jic23@kernel.org \
--cc=kunwu.chan@linux.dev \
--cc=lianux.mm@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ravis.opensrc@gmail.com \
--cc=rientjes@google.com \
--cc=weixugc@google.com \
--cc=yunjeong.mun@sk.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®