From patchwork Wed Sep 12 20:24:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prakash Sangappa X-Patchwork-Id: 10598309 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F215014DB for ; Wed, 12 Sep 2018 20:25:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E253927C0B for ; Wed, 12 Sep 2018 20:25:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6B312A7D5; Wed, 12 Sep 2018 20:25:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6879227C0B for ; Wed, 12 Sep 2018 20:25:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D91DD8E0008; Wed, 12 Sep 2018 16:25:06 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9AB448E0009; Wed, 12 Sep 2018 16:25:06 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6CC8F8E0008; Wed, 12 Sep 2018 16:25:06 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by kanga.kvack.org (Postfix) with ESMTP id 38B828E0007 for ; Wed, 12 Sep 2018 16:25:06 -0400 (EDT) Received: by mail-qk1-f198.google.com with SMTP id x204-v6so2861118qka.6 for ; Wed, 12 Sep 2018 13:25:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=BgUFdWmTW4g8bFO+cR3WOQwK/nWdihiqPWZP+p36KpQ=; b=ujZqN1yk9a40oFhz7PvKuYnT9rvG0plTaALBPFTNifBM+EjLbY3G+yY91DD0w1jlq/ 1BpvIAechPvUTWBDv0ozX4KWu62xrTiloNAWCxfvugqivenn4InWQ5IJDpNcF4pXB5/E NOr5bDLMJT/oHoWRKESNWml/1GxY/+tfzRPGf6OA/qL48mSu7KOMEo5R+uLoSMm/voE6 +PApwL1NnL4FbK6X57vlssPSuxQ40QyjX5O7B5JOL875shWpHNlz6oW6MaNPJYgsl+fV YpgRUbMneBfVvls2Bft1zMH4nE2H7N7eozjiT30XzT6Wa4g3ZnaWT9yaOKnx7Llbytwv 9pcQ== X-Gm-Message-State: APzg51BiZ4RCETyBrVj6is++GxKbIPEsRuMAtUarfp3nCQFGSyN8rBbS +zbrRTMDw7L56GXeB/JFJ2b8jXX6tAVZ0nHliEcGdzF/8c5HNoiemFqh1JPCUNlqdbNk44yc25u Qg+c7KVspVUZUuRUsjhERdXgMc1bYKdpiHw/g1IwLiMKQYm+YPByhLOlSsQ5ueMDeqw== X-Received: by 2002:ac8:2a13:: with SMTP id k19-v6mr2849711qtk.245.1536783905925; Wed, 12 Sep 2018 13:25:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdapZpx3KeXa0+VI/cR8m87swglHTJ0UaXT/Oq/ZRC1THrqQxJ/J154N7iqbasFUU5eKa+B3 X-Received: by 2002:ac8:2a13:: with SMTP id k19-v6mr2849678qtk.245.1536783905075; Wed, 12 Sep 2018 13:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536783905; cv=none; d=google.com; s=arc-20160816; b=wbVDJnMfoufYzjMP5ZLaZqfDOc4+GVtyyLHhjKM3hXXI0ktewI4gBveC6KiYOp9cw2 oFpiqWNcE6p+c+ILc67CADqHTxdvMki9tWMG6SQLrrJt6pM4cVJFCBvAUnnQ+OTz5EWm cTKaR94U0eA8kMNH37mTs3IXuN9Rdo2g8aBqkWUFqmtRVwkKprffyXBkCP12Rg2bYVLz FHst5eCnYxiPVoeTUI2ucCvTZPHOJVvhtn+Tn+8RSWSIAnBy18Q9WgjNxfAShV41RXvs PUmfFZPe7B6xFpXlOown+gNPMpPEcAZ+D7WjZwl625wbnhh6jsqSLDhJEvvQVTfrdkvb EADA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BgUFdWmTW4g8bFO+cR3WOQwK/nWdihiqPWZP+p36KpQ=; b=aSlJNySAdumDu9275q7BRfOzKkymAAtYYEbRrkytMnz42DVchx5Psf374OmZL4OPw9 t9vOdbb8rlo/PeZDwjDJZSNg7FnBUnqRm01QViNCvgEXaFrPbdy/4Mz+HvpT/RBfsE84 QmlEgRbtbiaKAo7CTFSCb+GrP10o4GndHnb0VanehRObYAS7p/fTGFQSFR2Qj7UeOYXM SyZk7aenSiOgaEY8i9d8vSIzMXx889/nwtUJeHKMBPwQE2DRVPeh7wv/RyU3CjgICgbt h3poFmdrm0CUJTKk47AA/9d0YjFHpGYlnsHZCTyUK2YgEnMqkzbuBo343VTjbzSh3KXS 9YSQ== 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: domain of prakash.sangappa@oracle.com designates 156.151.31.85 as permitted sender) smtp.mailfrom=prakash.sangappa@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from userp2120.oracle.com (userp2120.oracle.com. [156.151.31.85]) by mx.google.com with ESMTPS id q8-v6si1456450qvh.274.2018.09.12.13.25.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 13:25:05 -0700 (PDT) Received-SPF: pass (google.com: domain of prakash.sangappa@oracle.com designates 156.151.31.85 as permitted sender) client-ip=156.151.31.85; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=T37IkL7f; spf=pass (google.com: domain of prakash.sangappa@oracle.com designates 156.151.31.85 as permitted sender) smtp.mailfrom=prakash.sangappa@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 ---------------