diff options
Diffstat (limited to 'Documentation/filesystems/proc.txt')
| -rw-r--r-- | Documentation/filesystems/proc.txt | 69 |
1 files changed, 67 insertions, 2 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 7f268f327d75..f566ad9bcb7b 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
| @@ -296,6 +296,7 @@ Table 1-4: Kernel info in /proc | |||
| 296 | uptime System uptime | 296 | uptime System uptime |
| 297 | version Kernel version | 297 | version Kernel version |
| 298 | video bttv info of video resources (2.4) | 298 | video bttv info of video resources (2.4) |
| 299 | vmallocinfo Show vmalloced areas | ||
| 299 | .............................................................................. | 300 | .............................................................................. |
| 300 | 301 | ||
| 301 | You can, for example, check which interrupts are currently in use and what | 302 | You can, for example, check which interrupts are currently in use and what |
| @@ -557,6 +558,49 @@ VmallocTotal: total size of vmalloc memory area | |||
| 557 | VmallocUsed: amount of vmalloc area which is used | 558 | VmallocUsed: amount of vmalloc area which is used |
| 558 | VmallocChunk: largest contigious block of vmalloc area which is free | 559 | VmallocChunk: largest contigious block of vmalloc area which is free |
| 559 | 560 | ||
| 561 | .............................................................................. | ||
| 562 | |||
| 563 | vmallocinfo: | ||
| 564 | |||
| 565 | Provides information about vmalloced/vmaped areas. One line per area, | ||
| 566 | containing the virtual address range of the area, size in bytes, | ||
| 567 | caller information of the creator, and optional information depending | ||
| 568 | on the kind of area : | ||
| 569 | |||
| 570 | pages=nr number of pages | ||
| 571 | phys=addr if a physical address was specified | ||
| 572 | ioremap I/O mapping (ioremap() and friends) | ||
| 573 | vmalloc vmalloc() area | ||
| 574 | vmap vmap()ed pages | ||
| 575 | user VM_USERMAP area | ||
| 576 | vpages buffer for pages pointers was vmalloced (huge area) | ||
| 577 | N<node>=nr (Only on NUMA kernels) | ||
| 578 | Number of pages allocated on memory node <node> | ||
| 579 | |||
| 580 | > cat /proc/vmallocinfo | ||
| 581 | 0xffffc20000000000-0xffffc20000201000 2101248 alloc_large_system_hash+0x204 ... | ||
| 582 | /0x2c0 pages=512 vmalloc N0=128 N1=128 N2=128 N3=128 | ||
| 583 | 0xffffc20000201000-0xffffc20000302000 1052672 alloc_large_system_hash+0x204 ... | ||
| 584 | /0x2c0 pages=256 vmalloc N0=64 N1=64 N2=64 N3=64 | ||
| 585 | 0xffffc20000302000-0xffffc20000304000 8192 acpi_tb_verify_table+0x21/0x4f... | ||
| 586 | phys=7fee8000 ioremap | ||
| 587 | 0xffffc20000304000-0xffffc20000307000 12288 acpi_tb_verify_table+0x21/0x4f... | ||
| 588 | phys=7fee7000 ioremap | ||
| 589 | 0xffffc2000031d000-0xffffc2000031f000 8192 init_vdso_vars+0x112/0x210 | ||
| 590 | 0xffffc2000031f000-0xffffc2000032b000 49152 cramfs_uncompress_init+0x2e ... | ||
| 591 | /0x80 pages=11 vmalloc N0=3 N1=3 N2=2 N3=3 | ||
| 592 | 0xffffc2000033a000-0xffffc2000033d000 12288 sys_swapon+0x640/0xac0 ... | ||
| 593 | pages=2 vmalloc N1=2 | ||
| 594 | 0xffffc20000347000-0xffffc2000034c000 20480 xt_alloc_table_info+0xfe ... | ||
| 595 | /0x130 [x_tables] pages=4 vmalloc N0=4 | ||
| 596 | 0xffffffffa0000000-0xffffffffa000f000 61440 sys_init_module+0xc27/0x1d00 ... | ||
| 597 | pages=14 vmalloc N2=14 | ||
| 598 | 0xffffffffa000f000-0xffffffffa0014000 20480 sys_init_module+0xc27/0x1d00 ... | ||
| 599 | pages=4 vmalloc N1=4 | ||
| 600 | 0xffffffffa0014000-0xffffffffa0017000 12288 sys_init_module+0xc27/0x1d00 ... | ||
| 601 | pages=2 vmalloc N1=2 | ||
| 602 | 0xffffffffa0017000-0xffffffffa0022000 45056 sys_init_module+0xc27/0x1d00 ... | ||
| 603 | pages=10 vmalloc N0=10 | ||
| 560 | 604 | ||
| 561 | 1.3 IDE devices in /proc/ide | 605 | 1.3 IDE devices in /proc/ide |
| 562 | ---------------------------- | 606 | ---------------------------- |
| @@ -887,7 +931,7 @@ group_prealloc max_to_scan mb_groups mb_history min_to_scan order2_req | |||
| 887 | stats stream_req | 931 | stats stream_req |
| 888 | 932 | ||
| 889 | mb_groups: | 933 | mb_groups: |
| 890 | This file gives the details of mutiblock allocator buddy cache of free blocks | 934 | This file gives the details of multiblock allocator buddy cache of free blocks |
| 891 | 935 | ||
| 892 | mb_history: | 936 | mb_history: |
| 893 | Multiblock allocation history. | 937 | Multiblock allocation history. |
| @@ -1295,6 +1339,25 @@ Enables/Disables the protection of the per-process proc entries "maps" and | |||
| 1295 | "smaps". When enabled, the contents of these files are visible only to | 1339 | "smaps". When enabled, the contents of these files are visible only to |
| 1296 | readers that are allowed to ptrace() the given process. | 1340 | readers that are allowed to ptrace() the given process. |
| 1297 | 1341 | ||
| 1342 | msgmni | ||
| 1343 | ------ | ||
| 1344 | |||
| 1345 | Maximum number of message queue ids on the system. | ||
| 1346 | This value scales to the amount of lowmem. It is automatically recomputed | ||
| 1347 | upon memory add/remove or ipc namespace creation/removal. | ||
| 1348 | When a value is written into this file, msgmni's value becomes fixed, i.e. it | ||
| 1349 | is not recomputed anymore when one of the above events occurs. | ||
| 1350 | Use auto_msgmni to change this behavior. | ||
| 1351 | |||
| 1352 | auto_msgmni | ||
| 1353 | ----------- | ||
| 1354 | |||
| 1355 | Enables/Disables automatic recomputing of msgmni upon memory add/remove or | ||
| 1356 | upon ipc namespace creation/removal (see the msgmni description above). | ||
| 1357 | Echoing "1" into this file enables msgmni automatic recomputing. | ||
| 1358 | Echoing "0" turns it off. | ||
| 1359 | auto_msgmni default value is 1. | ||
| 1360 | |||
| 1298 | 1361 | ||
| 1299 | 2.4 /proc/sys/vm - The virtual memory subsystem | 1362 | 2.4 /proc/sys/vm - The virtual memory subsystem |
| 1300 | ----------------------------------------------- | 1363 | ----------------------------------------------- |
| @@ -1430,7 +1493,7 @@ used because pages_free(1355) is smaller than watermark + protection[2] | |||
| 1430 | normal page requirement. If requirement is DMA zone(index=0), protection[0] | 1493 | normal page requirement. If requirement is DMA zone(index=0), protection[0] |
| 1431 | (=0) is used. | 1494 | (=0) is used. |
| 1432 | 1495 | ||
| 1433 | zone[i]'s protection[j] is calculated by following exprssion. | 1496 | zone[i]'s protection[j] is calculated by following expression. |
| 1434 | 1497 | ||
| 1435 | (i < j): | 1498 | (i < j): |
| 1436 | zone[i]->protection[j] | 1499 | zone[i]->protection[j] |
| @@ -2350,6 +2413,8 @@ The following 4 memory types are supported: | |||
| 2350 | - (bit 1) anonymous shared memory | 2413 | - (bit 1) anonymous shared memory |
| 2351 | - (bit 2) file-backed private memory | 2414 | - (bit 2) file-backed private memory |
| 2352 | - (bit 3) file-backed shared memory | 2415 | - (bit 3) file-backed shared memory |
| 2416 | - (bit 4) ELF header pages in file-backed private memory areas (it is | ||
| 2417 | effective only if the bit 2 is cleared) | ||
| 2353 | 2418 | ||
| 2354 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages | 2419 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages |
| 2355 | are always dumped regardless of the bitmask status. | 2420 | are always dumped regardless of the bitmask status. |
