Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752326AbdHJBYx (ORCPT ); Wed, 9 Aug 2017 21:24:53 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60140 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbdHJBYw (ORCPT ); Wed, 9 Aug 2017 21:24:52 -0400 Subject: Re: [PATCH RFC v2] Add /proc/pid/smaps_rollup To: Daniel Colascione , linux-kernel@vger.kernel.org, timmurray@google.com, joelaf@google.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org References: <20170808132554.141143-1-dancol@google.com> <20170810001557.147285-1-dancol@google.com> From: Randy Dunlap Message-ID: <6d20ced6-a7ca-f4b9-81eb-e34517f97644@infradead.org> Date: Wed, 9 Aug 2017 18:24:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170810001557.147285-1-dancol@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 28 On 08/09/2017 05:15 PM, Daniel Colascione wrote: > > diff --git a/Documentation/ABI/testing/procfs-smaps_rollup b/Documentation/ABI/testing/procfs-smaps_rollup > new file mode 100644 > index 000000000000..fd5a3699edf1 > --- /dev/null > +++ b/Documentation/ABI/testing/procfs-smaps_rollup > @@ -0,0 +1,34 @@ > +What: /proc/pid/smaps_Rollup smaps_rollup \although I would prefer smaps_summary. whatever. > +Date: August 2017 > +Contact: Daniel Colascione > +Description: > + This file provides pre-summed memory information for a > + process. The format is identical to /proc/pid/smaps, > + except instead of an entry for each VMA in a process, > + smaps_rollup has a single entry (tagged "[rollup]") > + for which each field is the sum of the corresponding > + fields from all the maps in /proc/pid/smaps. > + For more details, see the procfs man page. -- ~Randy