[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190807204449.GA90900@google.com>
Date: Wed, 7 Aug 2019 16:44:49 -0400
From: Joel Fernandes <joel@...lfernandes.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org,
Alexey Dobriyan <adobriyan@...il.com>,
Borislav Petkov <bp@...en8.de>,
Brendan Gregg <bgregg@...flix.com>,
Catalin Marinas <catalin.marinas@....com>,
Christian Hansen <chansen3@...co.com>, dancol@...gle.com,
fmayer@...gle.com, "H. Peter Anvin" <hpa@...or.com>,
Ingo Molnar <mingo@...hat.com>,
Jonathan Corbet <corbet@....net>,
Kees Cook <keescook@...omium.org>, kernel-team@...roid.com,
linux-api@...r.kernel.org, linux-doc@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
Michal Hocko <mhocko@...e.com>,
Mike Rapoport <rppt@...ux.ibm.com>, minchan@...nel.org,
namhyung@...gle.com, paulmck@...ux.ibm.com,
Robin Murphy <robin.murphy@....com>,
Roman Gushchin <guro@...com>,
Stephen Rothwell <sfr@...b.auug.org.au>, surenb@...gle.com,
Thomas Gleixner <tglx@...utronix.de>, tkjos@...gle.com,
Vladimir Davydov <vdavydov.dev@...il.com>,
Vlastimil Babka <vbabka@...e.cz>,
Will Deacon <will@...nel.org>,
Brendan Gregg <brendan.d.gregg@...il.com>
Subject: Re: [PATCH v4 1/5] mm/page_idle: Add per-pid idle page tracking
using virtual indexing
On Wed, Aug 07, 2019 at 01:01:22PM -0700, Andrew Morton wrote:
> On Wed, 7 Aug 2019 06:00:13 -0400 Joel Fernandes <joel@...lfernandes.org> wrote:
>
> > > > 8 files changed, 376 insertions(+), 45 deletions(-)
> > >
> > > Quite a lot of new code unconditionally added to major architectures.
> > > Are we confident that everyone will want this feature?
> >
> > I did not follow, could you clarify more? All of this diff stat is not to
> > architecture code:
>
>
> My point is that the patchset adds a lot of new code with no way in
> which users can opt out. Almost everyone gets a fatter kernel - how
> many of those users will actually benefit from it?
>
> If "not many" then shouldn't we be making it Kconfigurable?
Almost all of this code is already configurable with
CONFIG_IDLE_PAGE_TRACKING. If you disable it, then all of this code gets
disabled.
Or are you referring to something else that needs to be made configurable?
> Are there userspace tools which present this info to users or which
> provide monitoring of some form? Do major distros ship those tools?
> Do people use them? etcetera.
>
Android's heapprofd is what I was working on which is already using it (patch
is not yet upstreamed). There is working set tracking which Sandeep (also
from Android) said he wants to use. Minchan plans to use this in combination
with ZRAM-based idle tracking. Mike Rappoport also showed some interest, but
I am not sure where/how he is using it. These are just some of the usecases I
am aware off. I am pretty sure more will come as well.
thanks,
- Joel
Powered by blists - more mailing lists