From: David Rientjes <rientjes@google.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Yuanchu Xie <yuanchu@google.com>,
David Hildenbrand <david@redhat.com>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>,
Khalid Aziz <khalid.aziz@oracle.com>,
Henry Huang <henry.hj@antgroup.com>, Yu Zhao <yuzhao@google.com>,
Dan Williams <dan.j.williams@intel.com>,
Gregory Price <gregory.price@memverge.com>,
Huang Ying <ying.huang@intel.com>,
Lance Yang <ioworker0@gmail.com>,
Randy Dunlap <rdunlap@infradead.org>,
Muhammad Usama Anjum <usama.anjum@collabora.com>,
Kalesh Singh <kaleshsingh@google.com>,
Wei Xu <weixugc@google.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Michal Hocko <mhocko@kernel.org>,
Roman Gushchin <roman.gushchin@linux.dev>,
Muchun Song <muchun.song@linux.dev>,
Shuah Khan <shuah@kernel.org>,
Yosry Ahmed <yosryahmed@google.com>,
Matthew Wilcox <willy@infradead.org>,
Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>,
Kairui Song <kasong@tencent.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Vasily Averin <vasily.averin@linux.dev>,
Nhat Pham <nphamcs@gmail.com>, Miaohe Lin <linmiaohe@huawei.com>,
Qi Zheng <zhengqi.arch@bytedance.com>,
Abel Wu <wuyun.abel@bytedance.com>,
"Vishal Moola (Oracle)" <vishal.moola@gmail.com>,
Kefeng Wang <wangkefeng.wang@huawei.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v3 0/7] mm: workingset reporting
Date: Thu, 15 Aug 2024 20:14:44 -0700 (PDT) [thread overview]
Message-ID: <54a4d626-faed-ad86-f3c4-5e725986bd29@google.com> (raw)
In-Reply-To: <20240813113313.1af3a5d7db7134a354a4cda3@linux-foundation.org>
On Tue, 13 Aug 2024, Andrew Morton wrote:
> On Tue, 13 Aug 2024 09:56:11 -0700 Yuanchu Xie <yuanchu@google.com> wrote:
>
> > This patch series provides workingset reporting of user pages in
> > lruvecs, of which coldness can be tracked by accessed bits and fd
> > references.
>
> Very little reviewer interest. I wonder why. Will Google be the only
> organization which finds this useful?
>
Although also from Google, I'm optimistic that others will find this very
useful. It's implemented in a way that is intended to be generally useful
for multiple use cases, including user defined policy for proactive
reclaim. The cited sample userspace implementation is intended to
demonstrate how this insight can be put into practice.
Insight into the working set of applications, particularly on multi-tenant
systems, has derived significant memory savings for Google over the past
decade. The introduction of MGLRU into the upstream kernel has allowed
this information to be derived in a much more efficient manner, presented
here, that should make upstreaming of this insight much more palatable.
This insight into working set will only become more critical going forward
with memory tiered systems.
Nothing here is specific to Google; in fact, we apply the insight into
working set in very different ways across our fleets.
> > Benchmarks
> > ==========
> > Ghait Ouled Amar Ben Cheikh has implemented a simple "reclaim everything
> > colder than 10 seconds every 40 seconds" policy and ran Linux compile
> > and redis from the phoronix test suite. The results are in his repo:
> > https://github.com/miloudi98/WMO
>
> I'd suggest at least summarizing these results here in the [0/N]. The
> Linux kernel will probably outlive that URL!
>
Fully agreed that this would be useful for including in the cover letter.
The results showing the impact of proactive reclaim using insight into
working set is impressive for multi-tenant systems. Having very
comparable performance for kernbench with a fraction of the memory usage
shows the potential for proactive reclaim and without the dependency on
direct reclaim or throttling of the application itself.
This is one of several benchmarks that we are running and we'll be
expanding upon this with cotenancy, user defined latency senstivity per
job, extensions for insight into memory re-access, and in-guest use cases.
next prev parent reply other threads:[~2024-08-16 3:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 16:56 Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 1/7] mm: aggregate working set information into histograms Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 2/7] mm: use refresh interval to rate-limit workingset report aggregation Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 3/7] mm: report workingset during memory pressure driven scanning Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 4/7] mm: extend working set reporting to memcgs Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 5/7] mm: add kernel aging thread for workingset reporting Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 6/7] selftest: test system-wide " Yuanchu Xie
2024-08-13 16:56 ` [PATCH v3 7/7] Docs/admin-guide/mm/workingset_report: document sysfs and memcg interfaces Yuanchu Xie
2024-08-13 18:23 ` Waiman Long
2024-08-13 23:45 ` Randy Dunlap
2024-08-13 18:33 ` [PATCH v3 0/7] mm: workingset reporting Andrew Morton
2024-08-16 3:14 ` David Rientjes [this message]
2024-08-20 13:00 ` Gregory Price
2024-08-26 23:43 ` Yuanchu Xie
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=54a4d626-faed-ad86-f3c4-5e725986bd29@google.com \
--to=rientjes@google.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.ibm.com \
--cc=cgroups@vger.kernel.org \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.price@memverge.com \
--cc=hannes@cmpxchg.org \
--cc=henry.hj@antgroup.com \
--cc=ioworker0@gmail.com \
--cc=kaleshsingh@google.com \
--cc=kasong@tencent.com \
--cc=khalid.aziz@oracle.com \
--cc=linmiaohe@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=mst@redhat.com \
--cc=muchun.song@linux.dev \
--cc=nphamcs@gmail.com \
--cc=quic_sudaraja@quicinc.com \
--cc=rafael@kernel.org \
--cc=rdunlap@infradead.org \
--cc=roman.gushchin@linux.dev \
--cc=shuah@kernel.org \
--cc=usama.anjum@collabora.com \
--cc=vasily.averin@linux.dev \
--cc=vishal.moola@gmail.com \
--cc=wangkefeng.wang@huawei.com \
--cc=weixugc@google.com \
--cc=willy@infradead.org \
--cc=wuyun.abel@bytedance.com \
--cc=ying.huang@intel.com \
--cc=yosryahmed@google.com \
--cc=yuanchu@google.com \
--cc=yuzhao@google.com \
--cc=zhengqi.arch@bytedance.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