From: Lian Wang <lianux.mm@gmail.com>
To: Ravi Jonnalagadda <ravis.opensrc@gmail.com>
Cc: "Lian Wang (ProcessMission)" <lianux.mm@gmail.com>,
sj@kernel.org, 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 10:54:51 +0800 [thread overview]
Message-ID: <20260915025514.2434-1-lianux.mm@gmail.com> (raw)
In-Reply-To: <20260910171623.6638-1-ravis.opensrc@gmail.com>
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.
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.
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.
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.
Thanks,
Lian
On Thu, 10 Sep 2026 10:16:14 -0700 Ravi Jonnalagadda <ravis.opensrc@gmail.com> wrote:
> This series lets DAMON take its access information from a hardware sampler
> instead of from a page-table scan, and lets a scheme's score be weighted by what
> that sampler reported.
Sent using hkml (https://github.com/sjp38/hackermail)
next prev parent reply other threads:[~2026-09-15 2:55 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 [this message]
2026-09-16 0:58 ` SJ Park
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=20260915025514.2434-1-lianux.mm@gmail.com \
--to=lianux.mm@gmail.com \
--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=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=sj@kernel.org \
--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®