diff options
Diffstat (limited to 'Documentation/filesystems/proc.txt')
-rw-r--r-- | Documentation/filesystems/proc.txt | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 99902ae6804e..7240ee7515de 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
@@ -39,6 +39,8 @@ Table of Contents | |||
39 | 2.9 Appletalk | 39 | 2.9 Appletalk |
40 | 2.10 IPX | 40 | 2.10 IPX |
41 | 2.11 /proc/sys/fs/mqueue - POSIX message queues filesystem | 41 | 2.11 /proc/sys/fs/mqueue - POSIX message queues filesystem |
42 | 2.12 /proc/<pid>/oom_adj - Adjust the oom-killer score | ||
43 | 2.13 /proc/<pid>/oom_score - Display current oom-killer score | ||
42 | 44 | ||
43 | ------------------------------------------------------------------------------ | 45 | ------------------------------------------------------------------------------ |
44 | Preface | 46 | Preface |
@@ -1124,11 +1126,15 @@ debugging information is displayed on console. | |||
1124 | NMI switch that most IA32 servers have fires unknown NMI up, for example. | 1126 | NMI switch that most IA32 servers have fires unknown NMI up, for example. |
1125 | If a system hangs up, try pressing the NMI switch. | 1127 | If a system hangs up, try pressing the NMI switch. |
1126 | 1128 | ||
1127 | [NOTE] | 1129 | nmi_watchdog |
1128 | This function and oprofile share a NMI callback. Therefore this function | 1130 | ------------ |
1129 | cannot be enabled when oprofile is activated. | 1131 | |
1130 | And NMI watchdog will be disabled when the value in this file is set to | 1132 | Enables/Disables the NMI watchdog on x86 systems. When the value is non-zero |
1131 | non-zero. | 1133 | the NMI watchdog is enabled and will continuously test all online cpus to |
1134 | determine whether or not they are still functioning properly. | ||
1135 | |||
1136 | Because the NMI watchdog shares registers with oprofile, by disabling the NMI | ||
1137 | watchdog, oprofile may have more registers to utilize. | ||
1132 | 1138 | ||
1133 | 1139 | ||
1134 | 2.4 /proc/sys/vm - The virtual memory subsystem | 1140 | 2.4 /proc/sys/vm - The virtual memory subsystem |
@@ -1958,6 +1964,22 @@ a queue must be less or equal then msg_max. | |||
1958 | maximum message size value (it is every message queue's attribute set during | 1964 | maximum message size value (it is every message queue's attribute set during |
1959 | its creation). | 1965 | its creation). |
1960 | 1966 | ||
1967 | 2.12 /proc/<pid>/oom_adj - Adjust the oom-killer score | ||
1968 | ------------------------------------------------------ | ||
1969 | |||
1970 | This file can be used to adjust the score used to select which processes | ||
1971 | should be killed in an out-of-memory situation. Giving it a high score will | ||
1972 | increase the likelihood of this process being killed by the oom-killer. Valid | ||
1973 | values are in the range -16 to +15, plus the special value -17, which disables | ||
1974 | oom-killing altogether for this process. | ||
1975 | |||
1976 | 2.13 /proc/<pid>/oom_score - Display current oom-killer score | ||
1977 | ------------------------------------------------------------- | ||
1978 | |||
1979 | ------------------------------------------------------------------------------ | ||
1980 | This file can be used to check the current score used by the oom-killer is for | ||
1981 | any given <pid>. Use it together with /proc/<pid>/oom_adj to tune which | ||
1982 | process should be killed in an out-of-memory situation. | ||
1961 | 1983 | ||
1962 | ------------------------------------------------------------------------------ | 1984 | ------------------------------------------------------------------------------ |
1963 | Summary | 1985 | Summary |