1NUMA_MAPS(5) Linux Programmer's Manual NUMA_MAPS(5)
2
3
4
6 numa_maps - information about numa memory
7
9 The file /proc/<pid>/numa_maps contrains information about each memory
10 area used by a given process allowing--among other information--the
11 determination of which nodes were used for the pages.
12
13 numa_maps is only read by programs or by shell commands, and not writ‐
14 ten to. A read operation on the file will make the kernel scan the
15 memory area of a process to determine how memory is used. One line is
16 displayed for each memory area of the process.
17
18 The numa_maps format is very simple. The first field shown on each line
19 is the starting address that allows a correlation with output from
20 /proc/<pid/maps. The second field shows the memory policy currently in
21 effect for this particular memory area.
22
23 The rest of the line contains series of informationi items about the
24 pages in the memory area.
25
26 Possible information items
27 N<node>=<pages>
28 The number of pages used on a node. The number of pages
29 includes only pages mapped by this process. If this is a
30 shared mapping then other processes may have mapped dif‐
31 ferent pages in a memory area. Note also that page
32 migration may have temporarily unmapped pages. These may
33 only show up again after the process has attempted to
34 reference these pages.
35
36 file=<filename>
37 The file backing the memory area. If COW (Copy-On-Write)
38 pages were generated then the memory area may contain
39 additional anonymous pages.
40
41 heap Memory area is used for the heap.
42
43 stack Memory area is used for the stack.
44
45 huge Huge memory area. The page counts shown are huge pages
46 and not regular sized pages.
47
48 anon=<pages> The number of anonymous page in the range.
49
50 dirty=<pages> Number of dirty pages
51
52 mapped=<pages> Number of mapped pages for file backed files. Only shown
53 if different from the count of anonymous and dirty
54 pages.
55
56 mapmax=<count> Maximum mapcount (number of processes mapping a single
57 page) encountered during scan. This may be used as an
58 indicator as to the sharing occuring in a given memory
59 area.
60
61 swapcache=<count>
62 Number of pages that have an associated entry on the
63 swap device.
64
65 active=<pages> The number of pages on the active list (only shown if
66 different from the number of pages in this area). If
67 this item is shown then some inactive pages exist in
68 that particular memory area that may be removed from
69 memory by the swapper soon.
70
71 writeback=<pages>
72 Number of pages that are currently being written out to
73 disk.
74
76 /proc/<pid>/numa_maps
77
79 migratepages(8), numactl(8), cpuset(8), numactl(5)
80
81
82
83
84Linux 2.6 06 March 2006 NUMA_MAPS(5)