From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966453AbcKKEMl (ORCPT ); Thu, 10 Nov 2016 23:12:41 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50202 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752529AbcKKEMk (ORCPT ); Thu, 10 Nov 2016 23:12:40 -0500 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: Dave Hansen , linux-nvdimm@ml01.01.org, Christoph Hellwig , linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Anshuman Khandual Date: Fri, 11 Nov 2016 09:42:18 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.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 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16111104-0008-0000-0000-000000E0C7BC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16111104-0009-0000-0000-00000879D969 Message-Id: <58254522.70008@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-11_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611110073 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 obtaining the mappings they expect, > or otherwise accounting them. This might also help when we will have ZONE_DEVICE based solution for HMM based device memory.