/proc/PID/numa_maps doc changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lee, Cliff, all,

I added the numa_maps material to the proc(5) page, for man-pages-3.07.

I made some formatting and spelling fixes, and in addition:

* Noted need for CONFIG_NUMA
* Added kernel version (2.6.14)
* s/task/process in one place.

The patch to proc.5 is below.

Cheers,

Michael

===================================================================
--- proc.5      (revision 4745)
+++ proc.5      (working copy)
@@ -477,6 +474,116 @@
 .\"       Added in 2.6.17
 .\"
 .TP
+.IR /proc/[number]/numa_maps " (since Linux 2.6.14)"
+.\" See also Changelog-2.6.14
+.\" FIXME . Perhaps one day, numa_maps information belongs in a
+.\" to-be-written numa.7 page.
+This file displays information about a process's
+NUMA memory policy and allocation
+(see
+.BR set_mempolicy (2),
+.BR mbind (2),
+.BR cupset (7),
+.BR migratepages (8),
+.BR numactl (8)).
+
+Each line contains information about a memory range used by the process,
+displaying--among other information--the effective memory policy for
+that memory range and on which nodes the pages have been allocated.
+
+This file is only present if the
+.B CONFIG_NUMA
+kernel configuration
+option is enabled.
+
+.I numa_maps
+is a read-only file.
+When
+.I /proc/<pid>/numa_maps
+is read, the kernel will scan the virtual address space of the
+process and report how memory is used.
+One line is displayed for each unique memory range of the process.
+
+The first field of each line shows the starting address of the memory range.
+This field allows a correlation with the contents of the
+.I /proc/<pid>/maps
+file,
+which contains the end address of the range and other information,
+such as the access permissions and sharing.
+
+The second field shows the memory policy currently in effect for the
+memory range.
+Note that the effective policy is not necessarily the policy
+installed by the process for that memory range.
+Specifically, if the process installed a "default" policy for that range,
+the effective policy for that range will be the process policy,
+which may or may not be "default".
+
+The rest of the line contains information about the pages allocated in
+the memory range, as follows:
+.RS
+.TP
+.I N<node>=<nr_pages>
+The number of pages allocated on
+.IR <node> .
+.I <nr_pages>
+includes only pages currently mapped by the process.
+Page migration and memory reclaim may have temporarily unmapped pages
+associated with this memory range.
+These pages may only show up again after the process has
+attempted to reference them.
+If the memory range represents a shared memory area or file mapping,
+other processes may currently have additional pages mapped in a
+corresponding memory range.
+.TP
+.I file=<filename>
+The file backing the memory range.
+If the file is mapped as private, write accesses may have generated
+COW (Copy-On-Write) pages in this memory range.
+These pages are displayed as anonymous pages.
+.TP
+.I heap
+Memory range is used for the heap.
+.TP
+.I stack
+Memory range is used for the stack.
+.TP
+.I huge
+Huge memory range.
+The page counts shown are huge pages and not regular sized pages.
+.TP
+.I anon=<pages>
+The number of anonymous page in the range.
+.TP
+.I dirty=<pages>
+Number of dirty pages
+.TP
+.I mapped=<pages>
+Total number of mapped pages, if different from
+.IR dirty
+and
+.I anon
+pages.
+.TP
+.I mapmax=<count>
+Maximum mapcount (number of processes mapping a single page) encountered
+during the scan.
+This may be used as an indicator of the degree of sharing occurring in a
+given memory range.
+.TP
+.I swapcache=<count>
+Number of pages that have an associated entry on a swap device.
+.TP
+.I active=<pages>
+The number of pages on the active list.
+This field is only shown if different from the number of pages in this range.
+This means that some inactive pages exist in the memory range that may be
+removed from memory by the swapper soon.
+.TP
+.I writeback=<pages>
+Number of pages that are currently being written out to disk.
+.RE
+.TP
 .IR /proc/[number]/oom_adj " (since Linux 2.6.11)"
 This file can be used to adjust the score used to select which process
 should be killed in an out-of-memory (OOM) situation.


--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux