Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-15 Thread Dan Williams
On Tue, Nov 15, 2016 at 4:15 PM, Dave Hansen 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" >>

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-15 Thread Dave Hansen
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

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-15 Thread Andrew Morton
On Thu, 10 Nov 2016 14:11:57 -0800 Dan Williams wrote: > ZONE_DEVICE pages are mapped into a process via the filesystem-dax and > device-dax mechanisms. There are also proposals to use ZONE_DEVICE > pages for other usages outside of dax. Add statistics to smaps so > applications can debug that

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-15 Thread Christoph Hellwig
Hi Dan, On Mon, Nov 14, 2016 at 07:14:22PM -0800, Dan Williams wrote: > Wanted to get your opinion on this given your earlier concerns about > the VM_DAX flag. > > This instead lets an application know how much of a vma is backed by > ZONE_DEVICE pages, but does not make any indications about the

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-14 Thread Dan Williams
On Thu, Nov 10, 2016 at 2:11 PM, Dan Williams wrote: > ZONE_DEVICE pages are mapped into a process via the filesystem-dax and > device-dax mechanisms. There are also proposals to use ZONE_DEVICE > pages for other usages outside of dax. Add statistics to smaps so > applications can debug that the

Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-10 Thread Anshuman Khandual
On 11/11/2016 03:41 AM, Dan Williams wrote: > ZONE_DEVICE pages are mapped into a process via the filesystem-dax and > device-dax mechanisms. There are also proposals to use ZONE_DEVICE > pages for other usages outside of dax. Add statistics to smaps so > applications can debug that they are obta

[PATCH] mm: add ZONE_DEVICE statistics to smaps

2016-11-10 Thread Dan Williams
ZONE_DEVICE pages are mapped into a process via the filesystem-dax and device-dax mechanisms. There are also proposals to use ZONE_DEVICE pages for other usages outside of dax. Add statistics to smaps so applications can debug that they are obtaining the mappings they expect, or otherwise account