From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbdJ0Kbv (ORCPT ); Fri, 27 Oct 2017 06:31:51 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:50688 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbdJ0Kbs (ORCPT ); Fri, 27 Oct 2017 06:31:48 -0400 X-Google-Smtp-Source: ABhQp+SkP7a45QX0CFLBs4d0Gfy06/XbvhiNMc2vowqqZGkFC0/TfzlLrLAci3y3+ur9Yw2m3XubfruvlMLGB6s4Dc0= MIME-Version: 1.0 In-Reply-To: <5A90DA2E42F8AE43BC4A093BF06788481AA514EA@SHSMSX104.ccr.corp.intel.com> References: <1508891255-15427-1-git-send-email-fan.du@intel.com> <1508891255-15427-2-git-send-email-fan.du@intel.com> <20171025093045.s3rpcuovld22bhqu@dhcp22.suse.cz> <1f673f36-74b0-3321-32a4-a8031d5f268a@intel.com> <20171026141604.susqkaniglc5aqw2@dhcp22.suse.cz> <97774073-1df0-328a-68f8-f59667bce168@intel.com> <20171026143133.7rm5wcgikjgmx4sc@dhcp22.suse.cz> <83cb9f0e-cd37-5355-9b03-aef9e62e7200@intel.com> <5A90DA2E42F8AE43BC4A093BF06788481AA514EA@SHSMSX104.ccr.corp.intel.com> From: Dan Williams Date: Fri, 27 Oct 2017 03:31:46 -0700 Message-ID: Subject: Re: [PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX To: "Du, Fan" Cc: "Hansen, Dave" , Michal Hocko , "akpm@linux-foundation.org" , "hch@lst.de" , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26, 2017 at 9:00 PM, Du, Fan wrote: > > >>-----Original Message----- >>From: linux-kernel-owner@vger.kernel.org >>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Dave Hansen >>Sent: Thursday, October 26, 2017 10:51 PM >>To: Michal Hocko >>Cc: Du, Fan ; akpm@linux-foundation.org; hch@lst.de; >>Williams, Dan J ; linux-kernel@vger.kernel.org; >>linux-api@vger.kernel.org >>Subject: Re: [PATCH 2/2] Add /proc/PID/{smaps, numa_maps} support for DAX >> >>On 10/26/2017 07:31 AM, Michal Hocko wrote: >>> On Thu 26-10-17 07:24:14, Dave Hansen wrote: >>>> Actually, I don't remember whether it was tooling or just confused >>>> humans. I *think* Dan was trying to write test cases for huge page DAX >>>> support and couldn't figure out whether or not it was using large pages. >>> >>> That sounds like a very weak justification to adding new stuff to smaps >>> to be honest. >> >>Yep, agreed. It can't go in _just_ for DAX, and Fan and the other DAX >>folks need to elaborate on their needs here. > > If user creates device DAX /dev/dax with some capacity like 512G, mmap it and > Use it will, or touched 128G. To my best knowledge at this part, there is no > statistics reported how much memory behind DAX actually used. > > This is the problem our customer is facing right now. I'm not sure I understand, DAX is statically allocated. There's no private memory taken from the page allocator to back device-dax mappings. Unless you are trying to determine memory usage of page tables?