From: Dan Williams <dan.j.williams@intel.com>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
"linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>,
Christoph Hellwig <hch@lst.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps
Date: Tue, 15 Nov 2016 16:48:58 -0800 [thread overview]
Message-ID: <CAPcyv4gGWxpntc141nDJ6Lwg=17e30O8=xDTpHBpJ=79+fT=VQ@mail.gmail.com> (raw)
In-Reply-To: <1c6d61ef-2331-e517-d0d8-d4eefea8b18a@intel.com>
On Tue, Nov 15, 2016 at 4:15 PM, Dave Hansen <dave.hansen@intel.com> wrote:
> On 11/10/2016 02:11 PM, Dan Williams wrote:
>> @@ -774,6 +778,8 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
>> "ShmemPmdMapped: %8lu kB\n"
>> "Shared_Hugetlb: %8lu kB\n"
>> "Private_Hugetlb: %7lu kB\n"
>> + "Device: %8lu kB\n"
>> + "DeviceHugePages: %7lu kB\n"
>> "Swap: %8lu kB\n"
>> "SwapPss: %8lu kB\n"
>> "KernelPageSize: %8lu kB\n"
>
> So, a couple of nits...
>
> smaps is getting a bit big, and the fields that get added in this patch
> are going to be pretty infrequently used. Is it OK if smaps grows
> forever, even if most of them items are "0 kB"?
>
> IOW, Could we make it output Device* only for DAX VMAs? All the parsers
> have to handle that field being there or not (for old kernels).
How about just hiding the field if it is zero? That way it's not an
backdoor way to leak vma_is_dax() which was Christoph's concern.
> The other thing missing for DAX is the page size. DAX mappings support
> mixed page sizes, so MMUPageSize in this context is pretty worthless.
> What will we do in here for 1GB DAX pages?
I was thinking that would be yet another field "DeviceGiganticPages?"
when we eventually add 1GB support (not there today).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2016-11-16 0:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-10 22:11 Dan Williams
2016-11-11 4:12 ` Anshuman Khandual
2016-11-15 3:14 ` Dan Williams
2016-11-15 18:50 ` Christoph Hellwig
2016-11-16 0:04 ` Andrew Morton
2016-11-16 0:15 ` Dave Hansen
2016-11-16 0:48 ` Dan Williams [this message]
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='CAPcyv4gGWxpntc141nDJ6Lwg=17e30O8=xDTpHBpJ=79+fT=VQ@mail.gmail.com' \
--to=dan.j.williams@intel.com \
--cc=akpm@linux-foundation.org \
--cc=dave.hansen@intel.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nvdimm@lists.01.org \
/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