[PATCH V2 6/6] /proc/pid/numa_vamaps: document in Documentation/filesystems/proc.txt

2018-09-12 Thread Prakash Sangappa
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
+
+0040-0041 N1
+0041-0047f000 N0
+0047f000-0048 N2
+0048-00481000 -
+00481000-004a N0
+004a-004a2000 -
+004a2000-004aa000 N2
+004aa000-004ad000 N0
+004ad000-004ae000 -
+..
+
 1.2 Kernel data
 ---
 
-- 
2.7.4



[PATCH V2 6/6] /proc/pid/numa_vamaps: document in Documentation/filesystems/proc.txt

2018-09-12 Thread Prakash Sangappa
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
+
+0040-0041 N1
+0041-0047f000 N0
+0047f000-0048 N2
+0048-00481000 -
+00481000-004a N0
+004a-004a2000 -
+004a2000-004aa000 N2
+004aa000-004ad000 N0
+004ad000-004ae000 -
+..
+
 1.2 Kernel data
 ---
 
-- 
2.7.4