diff options
Diffstat (limited to 'Documentation/filesystems/proc.txt')
| -rw-r--r-- | Documentation/filesystems/proc.txt | 63 |
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 | |||
| 370 | Private_Clean: 0 kB | 371 | Private_Clean: 0 kB |
| 371 | Private_Dirty: 0 kB | 372 | Private_Dirty: 0 kB |
| 372 | Referenced: 892 kB | 373 | Referenced: 892 kB |
| 374 | Anonymous: 0 kB | ||
| 373 | Swap: 0 kB | 375 | Swap: 0 kB |
| 374 | KernelPageSize: 4 kB | 376 | KernelPageSize: 4 kB |
| 375 | MMUPageSize: 4 kB | 377 | MMUPageSize: 4 kB |
| 376 | 378 | Locked: 374 kB | |
| 377 | The first of these lines shows the same information as is displayed for the | 379 | |
| 378 | mapping in /proc/PID/maps. The remaining lines show the size of the mapping, | 380 | The first of these lines shows the same information as is displayed for the |
| 379 | the amount of the mapping that is currently resident in RAM, the "proportional | 381 | mapping in /proc/PID/maps. The remaining lines show the size of the mapping |
| 380 | set 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 |
| 381 | number of clean and dirty shared pages in the mapping, and the number of clean | 383 | process' proportional share of this mapping (PSS), the number of clean and |
| 382 | and dirty private pages in the mapping. The "Referenced" indicates the amount | 384 | dirty private pages in the mapping. Note that even a page which is part of a |
| 383 | of memory currently marked as referenced or accessed. | 385 | MAP_SHARED mapping, but has only a single pte mapped, i.e. is currently used |
| 386 | by only one process, is accounted as private and not as shared. "Referenced" | ||
| 387 | indicates 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 | ||
| 389 | a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE | ||
| 390 | and 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 | ||
| 392 | swap. | ||
| 384 | 393 | ||
| 385 | This file is only present if the CONFIG_MMU kernel configuration option is | 394 | This file is only present if the CONFIG_MMU kernel configuration option is |
| 386 | enabled. | 395 | enabled. |
| @@ -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 |
| 398 | Any other value written to /proc/PID/clear_refs will have no effect. | 407 | Any other value written to /proc/PID/clear_refs will have no effect. |
| 399 | 408 | ||
| 409 | The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags | ||
| 410 | using /proc/kpageflags and number of times a page is mapped using | ||
| 411 | /proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt. | ||
| 400 | 412 | ||
| 401 | 1.2 Kernel data | 413 | 1.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 | ||
| 534 | The above IRQ vectors are displayed only when relevent. For example, | 546 | The above IRQ vectors are displayed only when relevant. For example, |
| 535 | the threshold vector does not exist on x86_64 platforms. Others are | 547 | the threshold vector does not exist on x86_64 platforms. Others are |
| 536 | suppressed when the system is a uniprocessor. As of this writing, only | 548 | suppressed when the system is a uniprocessor. As of this writing, only |
| 537 | i386 and x86_64 platforms support the new IRQ vector displays. | 549 | i386 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 | ||
| 674 | The "Locked" indicates whether the mapping is locked in memory or not. | ||
| 675 | |||
| 662 | 676 | ||
| 663 | MemTotal: 16344972 kB | 677 | MemTotal: 16344972 kB |
| 664 | MemFree: 13634064 kB | 678 | MemFree: 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 | ||
| 828 | 1.3 IDE devices in /proc/ide | 841 | 1.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 | ||
| 1186 | 2.0 /proc/consoles | ||
| 1187 | ------------------ | ||
| 1188 | Shows registered system console lines. | ||
| 1189 | |||
| 1190 | To 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 | |||
| 1197 | The 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 | ------------------------------------------------------------------------------ |
| 1175 | Summary | 1212 | Summary |
| @@ -1285,11 +1322,15 @@ scaled linearly with /proc/<pid>/oom_score_adj. | |||
| 1285 | Writing to /proc/<pid>/oom_score_adj or /proc/<pid>/oom_adj will change the | 1322 | Writing to /proc/<pid>/oom_score_adj or /proc/<pid>/oom_adj will change the |
| 1286 | other with its scaled value. | 1323 | other with its scaled value. |
| 1287 | 1324 | ||
| 1325 | The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last | ||
| 1326 | value set by a CAP_SYS_RESOURCE process. To reduce the value any lower | ||
| 1327 | requires CAP_SYS_RESOURCE. | ||
| 1328 | |||
| 1288 | NOTICE: /proc/<pid>/oom_adj is deprecated and will be removed, please see | 1329 | NOTICE: /proc/<pid>/oom_adj is deprecated and will be removed, please see |
| 1289 | Documentation/feature-removal-schedule.txt. | 1330 | Documentation/feature-removal-schedule.txt. |
| 1290 | 1331 | ||
| 1291 | Caveat: when a parent task is selected, the oom killer will sacrifice any first | 1332 | Caveat: when a parent task is selected, the oom killer will sacrifice any first |
| 1292 | generation children with seperate address spaces instead, if possible. This | 1333 | generation children with separate address spaces instead, if possible. This |
| 1293 | avoids servers and important system daemons from being killed and loses the | 1334 | avoids servers and important system daemons from being killed and loses the |
| 1294 | minimal amount of work. | 1335 | minimal amount of work. |
| 1295 | 1336 | ||
