diff options
author | Fernando Luis Vázquez Cao <fernando@oss.ntt.co.jp> | 2012-02-09 17:42:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-02-11 09:11:30 -0500 |
commit | 5f329089431aac08bf759fa2bcb34077a6aa1f4e (patch) | |
tree | 400dd32e7651ca8fd34d52c63bf497aabb62d6b1 /lib/Kconfig.debug | |
parent | 9919cba7ff71147803c988521cc1ceb80e7f0f6d (diff) |
watchdog: Update Kconfig entries
The soft and hard lockup thresholds have changed so the
corresponding Kconfig entries need to be updated accordingly.
Add a reference to watchdog_thresh while at it.
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/1328827342-6253-2-git-send-email-dzickus@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 8745ac7d1f75..9739c0b45e93 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -166,18 +166,21 @@ config LOCKUP_DETECTOR | |||
166 | hard and soft lockups. | 166 | hard and soft lockups. |
167 | 167 | ||
168 | Softlockups are bugs that cause the kernel to loop in kernel | 168 | Softlockups are bugs that cause the kernel to loop in kernel |
169 | mode for more than 60 seconds, without giving other tasks a | 169 | mode for more than 20 seconds, without giving other tasks a |
170 | chance to run. The current stack trace is displayed upon | 170 | chance to run. The current stack trace is displayed upon |
171 | detection and the system will stay locked up. | 171 | detection and the system will stay locked up. |
172 | 172 | ||
173 | Hardlockups are bugs that cause the CPU to loop in kernel mode | 173 | Hardlockups are bugs that cause the CPU to loop in kernel mode |
174 | for more than 60 seconds, without letting other interrupts have a | 174 | for more than 10 seconds, without letting other interrupts have a |
175 | chance to run. The current stack trace is displayed upon detection | 175 | chance to run. The current stack trace is displayed upon detection |
176 | and the system will stay locked up. | 176 | and the system will stay locked up. |
177 | 177 | ||
178 | The overhead should be minimal. A periodic hrtimer runs to | 178 | The overhead should be minimal. A periodic hrtimer runs to |
179 | generate interrupts and kick the watchdog task every 10-12 seconds. | 179 | generate interrupts and kick the watchdog task every 4 seconds. |
180 | An NMI is generated every 60 seconds or so to check for hardlockups. | 180 | An NMI is generated every 10 seconds or so to check for hardlockups. |
181 | |||
182 | The frequency of hrtimer and NMI events and the soft and hard lockup | ||
183 | thresholds can be controlled through the sysctl watchdog_thresh. | ||
181 | 184 | ||
182 | config HARDLOCKUP_DETECTOR | 185 | config HARDLOCKUP_DETECTOR |
183 | def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI && \ | 186 | def_bool LOCKUP_DETECTOR && PERF_EVENTS && HAVE_PERF_EVENTS_NMI && \ |
@@ -189,7 +192,8 @@ config BOOTPARAM_HARDLOCKUP_PANIC | |||
189 | help | 192 | help |
190 | Say Y here to enable the kernel to panic on "hard lockups", | 193 | Say Y here to enable the kernel to panic on "hard lockups", |
191 | which are bugs that cause the kernel to loop in kernel | 194 | which are bugs that cause the kernel to loop in kernel |
192 | mode with interrupts disabled for more than 60 seconds. | 195 | mode with interrupts disabled for more than 10 seconds (configurable |
196 | using the watchdog_thresh sysctl). | ||
193 | 197 | ||
194 | Say N if unsure. | 198 | Say N if unsure. |
195 | 199 | ||
@@ -206,8 +210,8 @@ config BOOTPARAM_SOFTLOCKUP_PANIC | |||
206 | help | 210 | help |
207 | Say Y here to enable the kernel to panic on "soft lockups", | 211 | Say Y here to enable the kernel to panic on "soft lockups", |
208 | which are bugs that cause the kernel to loop in kernel | 212 | which are bugs that cause the kernel to loop in kernel |
209 | mode for more than 60 seconds, without giving other tasks a | 213 | mode for more than 20 seconds (configurable using the watchdog_thresh |
210 | chance to run. | 214 | sysctl), without giving other tasks a chance to run. |
211 | 215 | ||
212 | The panic can be used in combination with panic_timeout, | 216 | The panic can be used in combination with panic_timeout, |
213 | to cause the system to reboot automatically after a | 217 | to cause the system to reboot automatically after a |