Received: by 10.192.165.148 with SMTP id m20csp86787imm; Thu, 3 May 2018 15:27:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBm/SVjH6OqcT/haoqVio+YdiAiIvBl/UHm9R8bvNTlCoxBmpSalUAL3IEx4wMrNsYkqb5 X-Received: by 10.98.8.69 with SMTP id c66mr12681326pfd.189.1525386461423; Thu, 03 May 2018 15:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525386461; cv=none; d=google.com; s=arc-20160816; b=OPrvkFCNeR8EPM2zmIrmH2416FZ+Q8p2vjxCs90SXCmVX4XWlfg0CS/QQWKQWCL1Al TmtI0HeFkmLdHFPeGPu2mUTmlhagyXzLKtwE6s1sYATNjozmIaDSdMPTZsh30AGYGXGU xrdTAbqoQZn/2h4LzdurUaGdrLGrHgj8RzXFQ0rmnMMz/21atvwwXu+6wyONwa6W1Uja ++5e/m2r97CBd7rRZ5XwB0b/9DayqIxSFM5GyigUFjRye6xd0OntQJcHCxdnXffgX+bm 2+86BGoUayFf0JeP95KnYsi4+F4HEf8uvXCkMFUuzS9N4wfkk2pGAFfY9JiG17PCBAY7 t6Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:to:references :subject:reply-to:dkim-signature:arc-authentication-results; bh=fdLzAEqz8feRJc4d1mAUgLKDf8SnOBmQZkmThoem/7Q=; b=Cz7MdsI5Y5B47mAywY9xkTa8F9TRYrgR7scYAF/Y+jKuxiXqU1f5ztCPliUKzOTjuA DEkfCr31P7Gf8FS7oV982WGzTca74wv0W52wVEFqsu2ULI8sSVmN4u4MBS15bQwdioIh BKvhJb4JJnbvkwcAYenUFzMWaGkDfU+HfRvZt8CcpXJS7aaZjDz5F34m81jIBAv0RJ8+ tESgv0Dgc38z4CsLna9CcbncLnxqj8LADrMwhyTo/xNLVxGm8+FF0LSTsbXiKUu1JX5i ujBaXYXTH4TCo+FExf6ALiFrOL9OdW1kqt55Aw92ROyxI2oKspOcd/KwgaoSFGm2tCX9 WNXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=uJfjKqYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14-v6si11992679pgc.250.2018.05.03.15.27.27; Thu, 03 May 2018 15:27:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=uJfjKqYK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128AbeECW0D (ORCPT + 99 others); Thu, 3 May 2018 18:26:03 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:37178 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbeECW0C (ORCPT ); Thu, 3 May 2018 18:26:02 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w43MLAfc140108; Thu, 3 May 2018 22:25:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=reply-to : subject : references : to : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=fdLzAEqz8feRJc4d1mAUgLKDf8SnOBmQZkmThoem/7Q=; b=uJfjKqYKJds1rDVJx/cjEtERyIYvkrmGktbl+g92BKQEBdMq06Lw2MEN/Q+Bc/P3XfwF +M4KSaY32UMW2hk9Av6RB8SKEztI6nNF2g3PDgqPM4SmxR6UpSvDyoRRD3RzxmMT86tG QlV75wKiteDbhx44clTpylIzeaQ2nwS6vZdr8IfZRpWJ560eujR5Mqr4dNFyfJ6jXrtL HfOjVYZEARaji2yFzOlOv4BL3uKRo3LAEC+8QH0dCL5NzgR8uaiE0PLHlmjI9e8wjn/+ VG1ebrhCHukLR8MqkDiYB83boPacY/0C227hOEjb/igvPeZLpMwpDjJ49xbwmD7bN/K1 5g== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2hmeg63xe6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 03 May 2018 22:25:45 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w43MPiHo009342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 May 2018 22:25:44 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w43MPhBh025390; Thu, 3 May 2018 22:25:43 GMT Received: from [10.132.92.130] (/10.132.92.130) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 03 May 2018 15:25:43 -0700 Reply-To: prakash.sangappa@oracle.com Subject: Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information References: <1525240686-13335-1-git-send-email-prakash.sangappa@oracle.com> <20180502143323.1c723ccb509c3497050a2e0a@linux-foundation.org> <2ce01d91-5fba-b1b7-2956-c8cc1853536d@intel.com> <33f96879-351f-674a-ca23-43f233f4eb1d@linux.vnet.ibm.com> To: Anshuman Khandual , Dave Hansen , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, mhocko@suse.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, drepper@gmail.com, rientjes@google.com, Naoya Horiguchi From: "prakash.sangappa" Message-ID: <82d2b35c-272a-ad02-692f-2c109aacdfb6@oracle.com> Date: Thu, 3 May 2018 15:27:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <33f96879-351f-674a-ca23-43f233f4eb1d@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8882 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805030194 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/2018 01:46 AM, Anshuman Khandual wrote: > On 05/03/2018 03:58 AM, Dave Hansen wrote: >> On 05/02/2018 02:33 PM, Andrew Morton wrote: >>> On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa wrote: >>>> For analysis purpose it is useful to have numa node information >>>> corresponding mapped address ranges of the process. Currently >>>> /proc//numa_maps provides list of numa nodes from where pages are >>>> allocated per VMA of the process. This is not useful if an user needs to >>>> determine which numa node the mapped pages are allocated from for a >>>> particular address range. It would have helped if the numa node information >>>> presented in /proc//numa_maps was broken down by VA ranges showing the >>>> exact numa node from where the pages have been allocated. >> I'm finding myself a little lost in figuring out what this does. Today, >> numa_maps might us that a 3-page VMA has 1 page from Node 0 and 2 pages >> from Node 1. We group *entirely* by VMA: >> >> 1000-4000 N0=1 N1=2 >> >> We don't want that. We want to tell exactly where each node's memory is >> despite if they are in the same VMA, like this: >> >> 1000-2000 N1=1 >> 2000-3000 N0=1 >> 3000-4000 N1=1 > I am kind of wondering on a big memory system how many lines of output > we might have for a large (consuming lets say 80 % of system RAM) VMA > in interleave policy. Is not that a problem ? > If each consecutive page comes from different node, yes in the extreme case is this file will have a lot of lines. All the lines are generated at the time file is read. The amount of data read will be limited to the user read buffer size used in the read. /proc//pagemap also has kind of similar issue. There is 1 64 bit value for each user page.