From: wangzicheng <wangzicheng@honor.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: "akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"yuanchu@google.com" <yuanchu@google.com>,
"tj@kernel.org" <tj@kernel.org>,
"mkoutny@suse.com" <mkoutny@suse.com>,
"corbet@lwn.net" <corbet@lwn.net>,
"kasong@tencent.com" <kasong@tencent.com>,
"qi.zheng@linux.dev" <qi.zheng@linux.dev>,
"shakeel.butt@linux.dev" <shakeel.butt@linux.dev>,
"baohua@kernel.org" <baohua@kernel.org>,
"axelrasmussen@google.com" <axelrasmussen@google.com>,
"weixugc@google.com" <weixugc@google.com>,
"david@kernel.org" <david@kernel.org>,
"ljs@kernel.org" <ljs@kernel.org>,
"liam@infradead.org" <liam@infradead.org>,
"vbabka@kernel.org" <vbabka@kernel.org>,
"rppt@kernel.org" <rppt@kernel.org>,
"surenb@google.com" <surenb@google.com>,
"mhocko@suse.com" <mhocko@suse.com>,
"roman.gushchin@linux.dev" <roman.gushchin@linux.dev>,
"muchun.song@linux.dev" <muchun.song@linux.dev>,
"cgroups@vger.kernel.org" <cgroups@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"willy@infradead.org" <willy@infradead.org>,
denghaojie <denghaojie@honor.com>,
"baoquan.he@linux.dev" <baoquan.he@linux.dev>,
"kaleshsingh@google.com" <kaleshsingh@google.com>,
"tjmercier@google.com" <tjmercier@google.com>,
wangtao <tao.wangtao@honor.com>, zhangji <zhangji1@honor.com>,
wangzhen <wangzhen5@honor.com>
Subject: RE: [RFC v2 0/3] mm/mglru: proactive aging via memory.aging
Date: Thu, 16 Jul 2026 06:37:50 +0000 [thread overview]
Message-ID: <0a218053083e41c8bc7aacc552c7f38c@honor.com> (raw)
In-Reply-To: <20260715140046.GO276793@cmpxchg.org>
> Subject: Re: [RFC v2 0/3] mm/mglru: proactive aging via memory.aging
>
> On Tue, Jul 14, 2026 at 08:15:26PM +0800, Zicheng Wang wrote:
> > MGLRU inverts the reclaim order when anonymous memory is faulted in
> > bulk: anonymous pages sit in the young generations while file pages
> > sit in the oldest two, so reclaim evicts hot file pages before cold
> > anonymous pages.
>
> An aging inversion in the reclaim algorithm seems like an exceedingly
> poor justification for a userspace interface to work around them.
Hi Johannes,
Thanks for the reply.
I agree the aging inversion is a real defect, and I have no good fix
for it. But aging is not a workaround for it. Aging is a `MGLRU feature':
rebalancing the generations lets MGLRU's swappiness work as designed,
and we measure gains on both Android and file-cache-bound server
workloads.
The capability already exists in debugfs (the lru_gen "+" command), but
production systems like Android cannot mount debugfs. memory.aging is a
feasible path to that existing primitive. We ship it as a GKI module
across kernels 6.6, 6.12 and 6.18 (Qcom and MTK), with stable
gains on both Android and server workloads. Having it in-tree would be
very helpful.
Best,
Zicheng
next prev parent reply other threads:[~2026-07-16 6:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 12:15 [RFC v2 0/3] mm/mglru: proactive aging via memory.aging Zicheng Wang
2026-07-14 12:15 ` [RFC v2 1/3] mm/lru_gen: add AGING counter and proactive aging helper Zicheng Wang
2026-07-14 12:15 ` [RFC v2 2/3] mm: memcontrol: add memory.aging cgroup v2 file Zicheng Wang
2026-07-14 12:15 ` [RFC v2 3/3] mm/lru_gen: expose oldest-generation page counts in memory.stat Zicheng Wang
2026-07-15 14:00 ` [RFC v2 0/3] mm/mglru: proactive aging via memory.aging Johannes Weiner
2026-07-16 6:37 ` wangzicheng [this message]
2026-07-15 17:55 ` T.J. Mercier
2026-07-16 2:29 ` Ridong Chen
2026-07-16 3:49 ` wangzicheng
2026-07-16 3:34 ` wangzicheng
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=0a218053083e41c8bc7aacc552c7f38c@honor.com \
--to=wangzicheng@honor.com \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=baohua@kernel.org \
--cc=baoquan.he@linux.dev \
--cc=cgroups@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=david@kernel.org \
--cc=denghaojie@honor.com \
--cc=hannes@cmpxchg.org \
--cc=kaleshsingh@google.com \
--cc=kasong@tencent.com \
--cc=liam@infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=mkoutny@suse.com \
--cc=muchun.song@linux.dev \
--cc=qi.zheng@linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=rppt@kernel.org \
--cc=shakeel.butt@linux.dev \
--cc=surenb@google.com \
--cc=tao.wangtao@honor.com \
--cc=tj@kernel.org \
--cc=tjmercier@google.com \
--cc=vbabka@kernel.org \
--cc=wangzhen5@honor.com \
--cc=weixugc@google.com \
--cc=willy@infradead.org \
--cc=yuanchu@google.com \
--cc=zhangji1@honor.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 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.