Received: by 10.192.165.148 with SMTP id m20csp94850imm; Thu, 3 May 2018 15:38:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZppJQwelP4qqDy4uVjQj66bJ7pitQSdWQJHS813aLzDxQzoTIncyEEfosb9mQ9XF4LR5s4S X-Received: by 2002:a63:7702:: with SMTP id s2-v6mr20128915pgc.399.1525387106508; Thu, 03 May 2018 15:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525387106; cv=none; d=google.com; s=arc-20160816; b=WfplCXRePdK1hS4gylhbIDzb9SkaU8BeYv0rlhuIn+YY7nXM/17Stsfa89NUqEABX9 4vIjDfPNtSXo9zHgS8kNHJTonDQR9Bij2ERVy8B9c3l7DPinpKAJ9Olrpi4WBJt1z986 0iAZ7A2mrrMRD4sooAUVfTF4LjA3C8vQXpGyKGEbpdsQzFxo/paRLDkUkj7NLL6gnz5T /Jz17RFWkOsgH85DLEJVPAIyyAq0jjBESr79qTWVotLg2D42ID51Cz6SlbA+vO55CCwW fECTCC4rmZ5ExpSyssFDMVDBxun9dfX3Qpl2gPnPHocvinPNJGUekSJZ+SPVCziHtoqL 9O/g== 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=jBSdnG1uN/zb89PD42F+Ui83vTGnT0zeUs/+siI8Msk=; b=c3vZ4AJeV3AxFZmXpD/eB1txXrBCDmeZ4T7imVefNS2WvToIMLwWSpX5FwewXa6mdi E3D2Vc1G25tylwGGU+8Hj7jBPw317eersoh6sH/ZzHweH4l2M2QJSO6pS8ferSqrrqud nnL18nR3+QNCGzVwTVaHTB+7d3eP5WH5PuQdXfhNiiHPZ1tI6oviXUwwHonUCvgQZZfx I6NghZmFswJe/0wDDrvfA5jcfzCv37o73ImUQWnheH3eqabu8Lq/flrd0MINpFB8b/bu IClRkBS37DIAuR7XJr9acns2yQfufCtl/u+c2RflfrhinGgTSLSVApDuUgiXQNrgbYsQ B5dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=NRBS5U1j; 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 a11-v6si5298276pgd.421.2018.05.03.15.38.08; Thu, 03 May 2018 15:38:26 -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=NRBS5U1j; 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 S1751139AbeECWhy (ORCPT + 99 others); Thu, 3 May 2018 18:37:54 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:45826 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbeECWhw (ORCPT ); Thu, 3 May 2018 18:37:52 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w43MaSwb182300; Thu, 3 May 2018 22:37:39 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=jBSdnG1uN/zb89PD42F+Ui83vTGnT0zeUs/+siI8Msk=; b=NRBS5U1jfhOBapYE3dkOyjzOrIahIQPuV0z4g2nbO6RPfJlmtlNtwYhka8ByLu/AG4w7 LdlgebemZG5oD0MayI3D2jeB152nA6G0DYIXtGwAxH5JuCB9nkOHJ57ATaeyaqEAEILN o3fsy+4jfPGoQvcQEIpO6lzWrukflA95K40m/ZS84dMRuTILHlTz4YBCMGWKcLw2i2CF PybzTCOmmHneHq9hxAPxu3MulcfSasDR71rk9gwCksSxzdjD9VCaHqix6qzNmN5zffsm nOfBl9fLsOA44d+j9C+dkhCM9kTRLcUjaI6DIToCFCgA2m5gqagAg1lbnq3K5wY5jWF9 AQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hmgdjuupd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 03 May 2018 22:37:38 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w43Mbb2a027428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 May 2018 22:37:37 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w43Mbasp031998; Thu, 3 May 2018 22:37:36 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:37:35 -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> To: Christopher Lameter Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, akpm@linux-foundation.org, mhocko@suse.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, drepper@gmail.com, rientjes@google.com From: "prakash.sangappa" Message-ID: Date: Thu, 3 May 2018 15:39:49 -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: Content-Type: text/plain; charset=windows-1252; 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-1805030196 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/03/2018 11:03 AM, Christopher Lameter wrote: > On Tue, 1 May 2018, 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. > Cant you write a small script that scans the information in numa_maps and > then displays the total pages per NUMA node and then a list of which > ranges have how many pages on a particular node? Don't think we can determine which numa node a given user process address range has pages from, based on the existing 'numa_maps' file. >> reading this file will not be restricted(i.e requiring CAP_SYS_ADMIN). > So a prime motivator here is security restricted access to numa_maps? No it is the opposite. A regular user should be able to determine numa node information.