diff options
Diffstat (limited to 'Documentation/filesystems/proc.txt')
-rw-r--r-- | Documentation/filesystems/proc.txt | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index b488edad743c..bcceb99b81dd 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
@@ -1321,6 +1321,18 @@ debugging information is displayed on console. | |||
1321 | NMI switch that most IA32 servers have fires unknown NMI up, for example. | 1321 | NMI switch that most IA32 servers have fires unknown NMI up, for example. |
1322 | If a system hangs up, try pressing the NMI switch. | 1322 | If a system hangs up, try pressing the NMI switch. |
1323 | 1323 | ||
1324 | panic_on_unrecovered_nmi | ||
1325 | ------------------------ | ||
1326 | |||
1327 | The default Linux behaviour on an NMI of either memory or unknown is to continue | ||
1328 | operation. For many environments such as scientific computing it is preferable | ||
1329 | that the box is taken out and the error dealt with than an uncorrected | ||
1330 | parity/ECC error get propogated. | ||
1331 | |||
1332 | A small number of systems do generate NMI's for bizarre random reasons such as | ||
1333 | power management so the default is off. That sysctl works like the existing | ||
1334 | panic controls already in that directory. | ||
1335 | |||
1324 | nmi_watchdog | 1336 | nmi_watchdog |
1325 | ------------ | 1337 | ------------ |
1326 | 1338 | ||
@@ -1372,15 +1384,18 @@ causes the kernel to prefer to reclaim dentries and inodes. | |||
1372 | dirty_background_ratio | 1384 | dirty_background_ratio |
1373 | ---------------------- | 1385 | ---------------------- |
1374 | 1386 | ||
1375 | Contains, as a percentage of total system memory, the number of pages at which | 1387 | Contains, as a percentage of the dirtyable system memory (free pages + mapped |
1376 | the pdflush background writeback daemon will start writing out dirty data. | 1388 | pages + file cache, not including locked pages and HugePages), the number of |
1389 | pages at which the pdflush background writeback daemon will start writing out | ||
1390 | dirty data. | ||
1377 | 1391 | ||
1378 | dirty_ratio | 1392 | dirty_ratio |
1379 | ----------------- | 1393 | ----------------- |
1380 | 1394 | ||
1381 | Contains, as a percentage of total system memory, the number of pages at which | 1395 | Contains, as a percentage of the dirtyable system memory (free pages + mapped |
1382 | a process which is generating disk writes will itself start writing out dirty | 1396 | pages + file cache, not including locked pages and HugePages), the number of |
1383 | data. | 1397 | pages at which a process which is generating disk writes will itself start |
1398 | writing out dirty data. | ||
1384 | 1399 | ||
1385 | dirty_writeback_centisecs | 1400 | dirty_writeback_centisecs |
1386 | ------------------------- | 1401 | ------------------------- |
@@ -2400,24 +2415,29 @@ will be dumped when the <pid> process is dumped. coredump_filter is a bitmask | |||
2400 | of memory types. If a bit of the bitmask is set, memory segments of the | 2415 | of memory types. If a bit of the bitmask is set, memory segments of the |
2401 | corresponding memory type are dumped, otherwise they are not dumped. | 2416 | corresponding memory type are dumped, otherwise they are not dumped. |
2402 | 2417 | ||
2403 | The following 4 memory types are supported: | 2418 | The following 7 memory types are supported: |
2404 | - (bit 0) anonymous private memory | 2419 | - (bit 0) anonymous private memory |
2405 | - (bit 1) anonymous shared memory | 2420 | - (bit 1) anonymous shared memory |
2406 | - (bit 2) file-backed private memory | 2421 | - (bit 2) file-backed private memory |
2407 | - (bit 3) file-backed shared memory | 2422 | - (bit 3) file-backed shared memory |
2408 | - (bit 4) ELF header pages in file-backed private memory areas (it is | 2423 | - (bit 4) ELF header pages in file-backed private memory areas (it is |
2409 | effective only if the bit 2 is cleared) | 2424 | effective only if the bit 2 is cleared) |
2425 | - (bit 5) hugetlb private memory | ||
2426 | - (bit 6) hugetlb shared memory | ||
2410 | 2427 | ||
2411 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages | 2428 | Note that MMIO pages such as frame buffer are never dumped and vDSO pages |
2412 | are always dumped regardless of the bitmask status. | 2429 | are always dumped regardless of the bitmask status. |
2413 | 2430 | ||
2414 | Default value of coredump_filter is 0x3; this means all anonymous memory | 2431 | Note bit 0-4 doesn't effect any hugetlb memory. hugetlb memory are only |
2415 | segments are dumped. | 2432 | effected by bit 5-6. |
2433 | |||
2434 | Default value of coredump_filter is 0x23; this means all anonymous memory | ||
2435 | segments and hugetlb private memory are dumped. | ||
2416 | 2436 | ||
2417 | If you don't want to dump all shared memory segments attached to pid 1234, | 2437 | If you don't want to dump all shared memory segments attached to pid 1234, |
2418 | write 1 to the process's proc file. | 2438 | write 0x21 to the process's proc file. |
2419 | 2439 | ||
2420 | $ echo 0x1 > /proc/1234/coredump_filter | 2440 | $ echo 0x21 > /proc/1234/coredump_filter |
2421 | 2441 | ||
2422 | When a new process is created, the process inherits the bitmask status from its | 2442 | When a new process is created, the process inherits the bitmask status from its |
2423 | parent. It is useful to set up coredump_filter before the program runs. | 2443 | parent. It is useful to set up coredump_filter before the program runs. |