aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/proc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/filesystems/proc.txt')
-rw-r--r--Documentation/filesystems/proc.txt63
1 files changed, 52 insertions, 11 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index a6aca8740883..60740e8ecb37 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -136,6 +136,7 @@ Table 1-1: Process specific entries in /proc
136 statm Process memory status information 136 statm Process memory status information
137 status Process status in human readable form 137 status Process status in human readable form
138 wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan 138 wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan
139 pagemap Page table
139 stack Report full stack trace, enable via CONFIG_STACKTRACE 140 stack Report full stack trace, enable via CONFIG_STACKTRACE
140 smaps a extension based on maps, showing the memory consumption of 141 smaps a extension based on maps, showing the memory consumption of
141 each mapping 142 each mapping
@@ -370,17 +371,25 @@ Shared_Dirty: 0 kB
370Private_Clean: 0 kB 371Private_Clean: 0 kB
371Private_Dirty: 0 kB 372Private_Dirty: 0 kB
372Referenced: 892 kB 373Referenced: 892 kB
374Anonymous: 0 kB
373Swap: 0 kB 375Swap: 0 kB
374KernelPageSize: 4 kB 376KernelPageSize: 4 kB
375MMUPageSize: 4 kB 377MMUPageSize: 4 kB
376 378Locked: 374 kB
377The first of these lines shows the same information as is displayed for the 379
378mapping in /proc/PID/maps. The remaining lines show the size of the mapping, 380The first of these lines shows the same information as is displayed for the
379the amount of the mapping that is currently resident in RAM, the "proportional 381mapping in /proc/PID/maps. The remaining lines show the size of the mapping
380set size” (divide each shared page by the number of processes sharing it), the 382(size), the amount of the mapping that is currently resident in RAM (RSS), the
381number of clean and dirty shared pages in the mapping, and the number of clean 383process' proportional share of this mapping (PSS), the number of clean and
382and dirty private pages in the mapping. The "Referenced" indicates the amount 384dirty private pages in the mapping. Note that even a page which is part of a
383of memory currently marked as referenced or accessed. 385MAP_SHARED mapping, but has only a single pte mapped, i.e. is currently used
386by only one process, is accounted as private and not as shared. "Referenced"
387indicates the amount of memory currently marked as referenced or accessed.
388"Anonymous" shows the amount of memory that does not belong to any file. Even
389a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE
390and a page is modified, the file page is replaced by a private anonymous copy.
391"Swap" shows how much would-be-anonymous memory is also used, but out on
392swap.
384 393
385This file is only present if the CONFIG_MMU kernel configuration option is 394This file is only present if the CONFIG_MMU kernel configuration option is
386enabled. 395enabled.
@@ -397,6 +406,9 @@ To clear the bits for the file mapped pages associated with the process
397 > echo 3 > /proc/PID/clear_refs 406 > echo 3 > /proc/PID/clear_refs
398Any other value written to /proc/PID/clear_refs will have no effect. 407Any other value written to /proc/PID/clear_refs will have no effect.
399 408
409The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags
410using /proc/kpageflags and number of times a page is mapped using
411/proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt.
400 412
4011.2 Kernel data 4131.2 Kernel data
402--------------- 414---------------
@@ -531,7 +543,7 @@ just those considered 'most important'. The new vectors are:
531 their statistics are used by kernel developers and interested users to 543 their statistics are used by kernel developers and interested users to
532 determine the occurrence of interrupts of the given type. 544 determine the occurrence of interrupts of the given type.
533 545
534The above IRQ vectors are displayed only when relevent. For example, 546The above IRQ vectors are displayed only when relevant. For example,
535the threshold vector does not exist on x86_64 platforms. Others are 547the threshold vector does not exist on x86_64 platforms. Others are
536suppressed when the system is a uniprocessor. As of this writing, only 548suppressed when the system is a uniprocessor. As of this writing, only
537i386 and x86_64 platforms support the new IRQ vector displays. 549i386 and x86_64 platforms support the new IRQ vector displays.
@@ -659,6 +671,8 @@ varies by architecture and compile options. The following is from a
659 671
660> cat /proc/meminfo 672> cat /proc/meminfo
661 673
674The "Locked" indicates whether the mapping is locked in memory or not.
675
662 676
663MemTotal: 16344972 kB 677MemTotal: 16344972 kB
664MemFree: 13634064 kB 678MemFree: 13634064 kB
@@ -822,7 +836,6 @@ Provides counts of softirq handlers serviced since boot time, for each cpu.
822 TASKLET: 0 0 0 290 836 TASKLET: 0 0 0 290
823 SCHED: 27035 26983 26971 26746 837 SCHED: 27035 26983 26971 26746
824 HRTIMER: 0 0 0 0 838 HRTIMER: 0 0 0 0
825 RCU: 1678 1769 2178 2250
826 839
827 840
8281.3 IDE devices in /proc/ide 8411.3 IDE devices in /proc/ide
@@ -1170,6 +1183,30 @@ Table 1-12: Files in /proc/fs/ext4/<devname>
1170 mb_groups details of multiblock allocator buddy cache of free blocks 1183 mb_groups details of multiblock allocator buddy cache of free blocks
1171.............................................................................. 1184..............................................................................
1172 1185
11862.0 /proc/consoles
1187------------------
1188Shows registered system console lines.
1189
1190To see which character device lines are currently used for the system console
1191/dev/console, you may simply look into the file /proc/consoles:
1192
1193 > cat /proc/consoles
1194 tty0 -WU (ECp) 4:7
1195 ttyS0 -W- (Ep) 4:64
1196
1197The columns are:
1198
1199 device name of the device
1200 operations R = can do read operations
1201 W = can do write operations
1202 U = can do unblank
1203 flags E = it is enabled
1204 C = it is preferred console
1205 B = it is primary boot console
1206 p = it is used for printk buffer
1207 b = it is not a TTY but a Braille device
1208 a = it is safe to use when cpu is offline
1209 major:minor major and minor number of the device separated by a colon
1173 1210
1174------------------------------------------------------------------------------ 1211------------------------------------------------------------------------------
1175Summary 1212Summary
@@ -1285,11 +1322,15 @@ scaled linearly with /proc/<pid>/oom_score_adj.
1285Writing to /proc/<pid>/oom_score_adj or /proc/<pid>/oom_adj will change the 1322Writing to /proc/<pid>/oom_score_adj or /proc/<pid>/oom_adj will change the
1286other with its scaled value. 1323other with its scaled value.
1287 1324
1325The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last
1326value set by a CAP_SYS_RESOURCE process. To reduce the value any lower
1327requires CAP_SYS_RESOURCE.
1328
1288NOTICE: /proc/<pid>/oom_adj is deprecated and will be removed, please see 1329NOTICE: /proc/<pid>/oom_adj is deprecated and will be removed, please see
1289Documentation/feature-removal-schedule.txt. 1330Documentation/feature-removal-schedule.txt.
1290 1331
1291Caveat: when a parent task is selected, the oom killer will sacrifice any first 1332Caveat: when a parent task is selected, the oom killer will sacrifice any first
1292generation children with seperate address spaces instead, if possible. This 1333generation children with separate address spaces instead, if possible. This
1293avoids servers and important system daemons from being killed and loses the 1334avoids servers and important system daemons from being killed and loses the
1294minimal amount of work. 1335minimal amount of work.
1295 1336