From: Hao Jia <jiahao.kernel@gmail.com>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: hannes@cmpxchg.org, akpm@linux-foundation.org, tj@kernel.org,
corbet@lwn.net, mhocko@kernel.org, roman.gushchin@linux.dev,
shakeel.butt@linux.dev, muchun.song@linux.dev,
cgroups@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Hao Jia <jiahao1@lixiang.com>
Subject: Re: [PATCH 1/2] mm: vmscan: Split proactive reclaim statistics from direct reclaim statistics
Date: Wed, 19 Mar 2025 10:38:01 +0800 [thread overview]
Message-ID: <b8c1a314-13ad-e610-31e4-fa931531aea9@gmail.com> (raw)
In-Reply-To: <unm54ivbukzxasmab7u5r5uyn7evvmsmfzsd7zytrdfrgbt6r3@vasumbhdlyhm>
On 2025/3/18 20:59, Michal Koutný wrote:
> On Tue, Mar 18, 2025 at 08:03:44PM +0800, Hao Jia <jiahao.kernel@gmail.com> wrote:
>>> How silly is it to have multiple memory.reclaim writers?
>>> Would it make sense to bind those statistics to each such a write(r)
>>> instead of the aggregated totals?
>>
>>
>> I'm sorry, I didn't understand what your suggestion was conveying.
>
> For instance one reclaimer for page cache and another for anon (in one
> memcg):
> echo "1G swappiness=0" >memory.reclaim &
> echo "1G swappiness=200" >memory.reclaim
>
Thank you for your suggestion.
However, binding the statistics to the memory.reclaim writers may not be
suitable for our scenario. The userspace proactive memory reclaimer
triggers proactive memory reclaim on different memory cgroups, and all
memory reclaim statistics would be tied to this userspace proactive
memory reclaim process. This does not distinguish the proactive memory
reclaim status of different cgroups.
Thanks,
Hao
next prev parent reply other threads:[~2025-03-19 2:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-18 7:58 [PATCH 0/2] Adding Proactive Memory Reclaim Statistics Hao Jia
2025-03-18 7:58 ` [PATCH 1/2] mm: vmscan: Split proactive reclaim statistics from direct reclaim statistics Hao Jia
2025-03-18 10:17 ` Michal Koutný
2025-03-18 12:03 ` Hao Jia
2025-03-18 12:59 ` Michal Koutný
2025-03-19 2:38 ` Hao Jia [this message]
2025-03-19 9:15 ` Michal Koutný
[not found] ` <3a7a14fb-2eb7-3580-30f8-9a8f1f62aad4@lixiang.com>
2025-03-19 10:33 ` Michal Koutný
2025-03-19 15:44 ` Johannes Weiner
2025-03-21 12:30 ` Michal Koutný
2025-03-18 16:42 ` Johannes Weiner
2025-03-18 7:58 ` [PATCH 2/2] cgroup: docs: Add pswpin and pswpout items in cgroup v2 doc Hao Jia
2025-03-18 10:18 ` Michal Koutný
2025-03-18 15:58 ` Tejun Heo
2025-03-18 16:43 ` Johannes Weiner
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=b8c1a314-13ad-e610-31e4-fa931531aea9@gmail.com \
--to=jiahao.kernel@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=hannes@cmpxchg.org \
--cc=jiahao1@lixiang.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=mkoutny@suse.com \
--cc=muchun.song@linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=tj@kernel.org \
/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