Received: by 10.192.165.148 with SMTP id m20csp2142607imm; Thu, 3 May 2018 11:04:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEGHVT77CFWWnyUTOymWdbBHfZG1ATr0eYQyxDtkUPvJO3eQ92oC5HEACT/3vikAMbFhZt X-Received: by 10.167.134.20 with SMTP id p20mr23968514pfn.159.1525370659906; Thu, 03 May 2018 11:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525370659; cv=none; d=google.com; s=arc-20160816; b=K+mUbEtmF1zqmWMCuj3pcomluzG/cXLPbBJZsR2tSzGewwH+KShdqJhESgGX57CbUL nnylFoZ1vesdvEp60EcNQtepA9aMbp4cTzu3FtNcSzvcrrjKzD1YuU90AVjxgmuGJlec B20NldRQ5k32JEubqorGcSvXXwqpROfIBFB6zvpyIoow1YC/6lDi38vOsmSVnZqFRO1G W61njOlwGUnTnhehmG808dqwnhnh61s0aYEQHnou1Oyfnco+VxOC6D++21zVWPcgcVfl AsqdfjUzHSyLUITN1kZYCHJonAk3uV4WSLop5oIUehXjkRYSQlQQ4G26w69ljc7WfbHC 5B+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=6+Z7DyEvHLSY9SfsTjbpwJ+qdkMb5LQXNl2m7a+fgfs=; b=VNiKNULKJTzV8x+vsjSVXPU6k3x7GVtAX9Xj9dfuP0pKoZsbVIo4VJhUMZKiYPC3eN 5sotXcev5eASNJdnkrJEEf9tgyIsxDTJfp787q3lb7Je1++JcVhsv9JbTtLb2CjkYUwv 9S4KiULGb8rvXRGMStkNu8O5XFs2rHFYQzaIwwsnShKVVwNsFzRJdQaB1S36SSRCxYEM L/5PsYB+L3nG7Vru9BCES2QniYbQsaccwsjtImw4Q+S0I0BNBzcraSgL7Q4GD9ssCsDV FUgN+DUyArA5SeFbLgeRwpS83MkbjrlRkijSqpZpYFYR7TpweeJVSrBHwIERkVJv6RLn PcVA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si14991140pll.423.2018.05.03.11.04.05; Thu, 03 May 2018 11:04:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751178AbeECSDz (ORCPT + 99 others); Thu, 3 May 2018 14:03:55 -0400 Received: from resqmta-ch2-05v.sys.comcast.net ([69.252.207.37]:45664 "EHLO resqmta-ch2-05v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbeECSDx (ORCPT ); Thu, 3 May 2018 14:03:53 -0400 Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id EEgSfCb9WLGymEIa8flhzI; Thu, 03 May 2018 18:03:52 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-18v.sys.comcast.net with ESMTPA id EIa7fkaesDxYAEIa8fkSQK; Thu, 03 May 2018 18:03:52 +0000 Received: by gentwo.org (Postfix, from userid 1001) id C9A8F1161683; Thu, 3 May 2018 13:03:51 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id C71D8116165A; Thu, 3 May 2018 13:03:51 -0500 (CDT) Date: Thu, 3 May 2018 13:03:51 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Prakash Sangappa 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 Subject: Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information In-Reply-To: <1525240686-13335-1-git-send-email-prakash.sangappa@oracle.com> Message-ID: References: <1525240686-13335-1-git-send-email-prakash.sangappa@oracle.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfMQj+j9pzr/a7KIxG+yDgC92sSsHCTYpwzj66p0zHTyYdShZRcLsAvnw3/9fRBtz2AYp/kGUC+hKSi7Bon3s8a1C8QIHqhZPQqRZHA0Sj7kLgl4K/Geq QkmBUkzKlCbld9fyyPNF0y+nUc1+xdpeUtNW/JNZmpsE2ucvrB2EKAo5rjp9X0OJ1Lbo4UN/R3mAm6F5kLEQFflkVbAcSJ14jf+SYwdHBxhi5n4UXIZ5M+sh Z88FO7lwsrl2GAzHUUA0CF9HUiAQMUIEY9jnibAINJ6T6SGi/3QJ87yfOY0aqHAQJlBocESt3FFm5g480XV7EmAcJav9gjJl9hvzSSTUBYLWgh0OeNvXmfiF j8SLzCZTurn4kEUpj7ixFtY42inUe23puiv5aj+HOQshCFg5+TjUSB7aRHtOT/IknYwRhi4yODiIrmiim+/B4V+1WHpogzrmbj/G10DWOMAtUvt5ta0zAmCL beUqbwos0tcPx+FU Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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?