From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161045AbcKPAPK (ORCPT ); Tue, 15 Nov 2016 19:15:10 -0500 Received: from mga04.intel.com ([192.55.52.120]:8511 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161013AbcKPAPH (ORCPT ); Tue, 15 Nov 2016 19:15:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,497,1473145200"; d="scan'208";a="31357672" Subject: Re: [PATCH] mm: add ZONE_DEVICE statistics to smaps To: Dan Williams , akpm@linux-foundation.org References: <147881591739.39198.1358237993213024627.stgit@dwillia2-desk3.amr.corp.intel.com> Cc: linux-nvdimm@ml01.01.org, Christoph Hellwig , linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Dave Hansen Message-ID: <1c6d61ef-2331-e517-d0d8-d4eefea8b18a@intel.com> Date: Tue, 15 Nov 2016 16:15:05 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <147881591739.39198.1358237993213024627.stgit@dwillia2-desk3.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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?