linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Hao Jia" <jiahao1@lixiang.com>
To: "Michal Koutný" <mkoutny@suse.com>, "Hao Jia" <jiahao.kernel@gmail.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>
Subject: Re: [PATCH 1/2] mm: vmscan: Split proactive reclaim statistics from direct reclaim statistics
Date: Wed, 19 Mar 2025 17:49:15 +0800	[thread overview]
Message-ID: <3a7a14fb-2eb7-3580-30f8-9a8f1f62aad4@lixiang.com> (raw)
In-Reply-To: <hvdw5o6trz5q533lgvqlyjgaskxfc7thc7oicdomovww4pn6fz@esy4zzuvkhf6>

[-- Attachment #1: Type: text/plain, Size: 2288 bytes --]

On 2025/3/19 17:15, Michal Koutný wrote:
> On Wed, Mar 19, 2025 at 10:38:01AM +0800, Hao Jia <jiahao.kernel@gmail.com> wrote:
>> 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.
> 
> It thought that was what you wanted -- have stats related precisely to
> the process so that you can feedback-control the reclaim.


What I want is the proactive memory reclamation statistics for each 
memory cgroup.

> 
>> This does not distinguish the proactive memory reclaim status of different
>> cgroups.
> 
> 	a
> 	`- b
> 	`- c
> 
> Or do you mean that you write to a/memory.reclaim and want to observe
> respective results in {b,c}/memory.stat?

	root
  	`- a `- b`- c

We have a userspace proactive memory reclaim process that writes to 
a/memory.reclaim, observes a/memory.stat, then writes to 
b/memory.reclaim and observes b/memory.stat. This pattern is the same 
for other cgroups as well, so all memory cgroups(a, b, c) have the 
**same writer**. So, I need per-cgroup proactive memory reclaim statistics.


Thanks,
Hao

声明:这封邮件只允许文件接收者阅读,有很高的机密性要求。禁止其他人使用、打开、复制或转发里面的任何内容。如果本邮件错误地发给了你,请联系邮件发出者并删除这个文件。机密及法律的特权并不因为误发邮件而放弃或丧失。任何提出的观点或意见只属于作者的个人见解,并不一定代表本公司。
Disclaimer: This email is intended to be read only by the designated recipient of the document and has high confidentiality requirements. Anyone else is prohibited from using, opening, copying or forwarding any of the contents inside. If this email was sent to you by mistake, please contact the sender of the email and delete this file immediately. Confidentiality and legal privileges are not waived or lost by misdirected emails. Any views or opinions expressed in the email are those of the author and do not necessarily represent those of the Company.


[-- Attachment #2: Type: text/html, Size: 3511 bytes --]

  reply	other threads:[~2025-03-19  9:49 UTC|newest]

Thread overview: 16+ 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
2025-03-19  9:15           ` Michal Koutný
2025-03-19  9:49             ` Hao Jia [this message]
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=3a7a14fb-2eb7-3580-30f8-9a8f1f62aad4@lixiang.com \
    --to=jiahao1@lixiang.com \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=hannes@cmpxchg.org \
    --cc=jiahao.kernel@gmail.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