[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160815134227.GE3360@dhcp22.suse.cz>
Date: Mon, 15 Aug 2016 15:42:28 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Robert Foss <robert.foss@...labora.com>
Cc: corbet@....net, akpm@...ux-foundation.org, vbabka@...e.cz,
koct9i@...il.com, hughd@...gle.com, n-horiguchi@...jp.nec.com,
minchan@...nel.org, john.stultz@...aro.org,
ross.zwisler@...ux.intel.com, jmarchan@...hat.com,
hannes@...xchg.org, keescook@...omium.org, viro@...iv.linux.org.uk,
gorcunov@...nvz.org, plaguedbypenguins@...il.com,
rientjes@...gle.com, eric.engestrom@...tec.com, jdanis@...gle.com,
calvinowens@...com, adobriyan@...il.com, jann@...jh.net,
sonnyrao@...omium.org, kirill.shutemov@...ux.intel.com,
ldufour@...ux.vnet.ibm.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, Ben Zhang <benzh@...omium.org>,
Bryan Freed <bfreed@...omium.org>,
Filipe Brandenburger <filbranden@...omium.org>,
Mateusz Guzik <mguzik@...hat.com>
Subject: Re: [PACTH v2 0/3] Implement /proc/<pid>/totmaps
On Mon 15-08-16 09:00:04, Robert Foss wrote:
>
>
> On 2016-08-14 05:04 AM, Michal Hocko wrote:
> > On Fri 12-08-16 18:04:19, robert.foss@...labora.com wrote:
> > > From: Robert Foss <robert.foss@...labora.com>
> > >
> > > This series implements /proc/PID/totmaps, a tool for retrieving summarized
> > > information about the mappings of a process.
> >
> > The changelog is absolutely missing the usecase. Why do we need this?
> > Why existing interfaces are not sufficient?
>
> You are absolutely right, more info information is in 1/3.
Patch 1 is silent about the use case as well. It is usually recommended
to describe the motivation for the change in the cover letter.
> But the gist of it is that it provides a faster and more convenient way of
> accessing the information in /proc/PID/smaps.
I am sorry to insist but this is far from a description I was hoping
for. Why do we need a more convenient API? Please note that this is a
userspace API which we will have to maintain for ever. We have made many
mistakes in the past where exporting some information made sense at the
time while it turned out being a mistake only later on. So let's make
sure we will not fall into the same trap again.
So please make sure you describe the use case, why the current API is
insufficient and why it cannot be tweaked to provide the information you
are looking for.
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists