Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5932526imm; Wed, 12 Sep 2018 13:26:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbanCfmWzXzKqAhwZL5H8TZTeVo9XFTfG7GQ5Ac79wbe0sFTYiI0mWrrxjMH4spxpe/Swnn X-Received: by 2002:a62:444d:: with SMTP id r74-v6mr4168502pfa.96.1536784008738; Wed, 12 Sep 2018 13:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536784008; cv=none; d=google.com; s=arc-20160816; b=cEKzIvuMk/cKX7awPByzpuYKSMFHGf/XvN/zM59DqcOX4uHGEz6dpH1wrcpG/JVNob KaR3mIwtNLkY6/HbfoId/tDqgLw7K72z0YoDaxaH6iEd5yDf1snNsa7mNmsMtbcSdA0d yUTypiLkpOVyCWSHDOtpaWFEeSgN7yoJE+3ay0bvk1PmkVV7r6kZLxpjjIxeaCKgku64 9oKjnJ5Pe871/r4T5t/r5bJ0/DevZ2uePdeAHDnvA8V5QH1I4er7GtjA6y9Gd2WKk30d N4J+XS3CFBr2giLo6d8qwEe8LWvFCsKoWwDNLGyfAGxe0gp/Wiofd/i05e54aXQi9XbQ g2vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=BgUFdWmTW4g8bFO+cR3WOQwK/nWdihiqPWZP+p36KpQ=; b=hqBsYL6+kUodsao2SziQmuu07DOnvrOJP092LyXSSNeSd9VcnwkUipgp6LYvOQ8tpa ljIUskDpAhNwgZIVaXDYnH6pr+TdlmGWPmp1/Kzjj+8cIYC0lRfqQxB6Ea7waqKgxDVA iQ4Pza8s+htJwY2wEMfyN1+XbaZ9v9vBEEl+lXJav3/MggJsWEW5Ztl9fxdNaNbmae7y 2ES4djp2u64Meo+jvSIoL1zYV72jFnxOzdKdF0qmUEpi9nwoCxZUO6nHXOqf8FMmbjUM W+aWndD16adKysJKRQlZiZVNshtlbXMS5/JITpUSTYsIM9bAMtMgGG+X6COnVkMdZBLm rDig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=T37IkL7f; 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 d4-v6si1973788pgl.147.2018.09.12.13.26.34; Wed, 12 Sep 2018 13:26:48 -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-2018-07-02 header.b=T37IkL7f; 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 S1728321AbeIMBbV (ORCPT + 99 others); Wed, 12 Sep 2018 21:31:21 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:37080 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbeIMBbU (ORCPT ); Wed, 12 Sep 2018 21:31:20 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8CKO6D5041220; Wed, 12 Sep 2018 20:25:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=BgUFdWmTW4g8bFO+cR3WOQwK/nWdihiqPWZP+p36KpQ=; b=T37IkL7fRt667QSrO0DhbhjBMVgkatGJQ8UWVbbEeUxcBVIuZjIDt7SuK+etZxmAPXoM ycfqNgV3jlG+onleGUryB/KSafqNUkKQJBbpssxkWKZCndlT9a/f+dsPmJZgMB2Q3ukd 7XOer//7YFA6rqjh2BZLjVveW7lyhnoh4m2o0MCFt0tqkeIZRrfS2YEGQP4oNV6UDkGx Kk0yYuk9PkOg91FOzy3sgcz3/gk1y1zDkB3Ik031gm03LJp7L/5HzJrQOY+vNIP8cpTM kTKvJmvSbHjVUaMO91dHGeVfwBRLEMEzFGnXqV6RN78ja7hBX5ceMUYKgXhYQWcttZB/ sg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2mc72qvbvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Sep 2018 20:25:01 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8CKP1i5015346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Sep 2018 20:25:01 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8CKP1BL015860; Wed, 12 Sep 2018 20:25:01 GMT Received: from pp-ThinkCentre-M82.us.oracle.com (/10.132.93.61) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 Sep 2018 13:25:00 -0700 From: Prakash Sangappa To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: dave.hansen@intel.com, mhocko@suse.com, nao.horiguchi@gmail.com, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, khandual@linux.vnet.ibm.com, steven.sistare@oracle.com, prakash.sangappa@oracle.com Subject: [PATCH V2 6/6] /proc/pid/numa_vamaps: document in Documentation/filesystems/proc.txt Date: Wed, 12 Sep 2018 13:24:04 -0700 Message-Id: <1536783844-4145-7-git-send-email-prakash.sangappa@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536783844-4145-1-git-send-email-prakash.sangappa@oracle.com> References: <1536783844-4145-1-git-send-email-prakash.sangappa@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9014 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=854 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809120201 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for /proc//numa_vamaps in Documentation/filesystems/proc.txt Signed-off-by: Prakash Sangappa Reviewed-by: Steve Sistare --- Documentation/filesystems/proc.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 22b4b00..7095216 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -150,6 +150,9 @@ Table 1-1: Process specific entries in /proc each mapping and flags associated with it numa_maps an extension based on maps, showing the memory locality and binding policy as well as mem usage (in pages) of each mapping. + numa_vamaps Presents information about mapped address ranges to numa node + from where the physical memory is allocated. + .............................................................................. For example, to get the status information of a process, all you have to do is @@ -571,6 +574,24 @@ Where: node locality page counters (N0 == node0, N1 == node1, ...) and the kernel page size, in KB, that is backing the mapping up. +The /proc/pid/numa_vamaps shows mapped address ranges to numa node id from +where the physical pages are allocated. For mapped address ranges not having +any pages mapped a '-' is shown instead of the node id. Each line in the file +will show address range to one numa node. + +address-range numa-node-id + +00400000-00410000 N1 +00410000-0047f000 N0 +0047f000-00480000 N2 +00480000-00481000 - +00481000-004a0000 N0 +004a0000-004a2000 - +004a2000-004aa000 N2 +004aa000-004ad000 N0 +004ad000-004ae000 - +.. + 1.2 Kernel data --------------- -- 2.7.4