aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/sysctl
diff options
context:
space:
mode:
authorUlrich Obergfell <uobergfe@redhat.com>2015-04-14 18:44:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 19:48:59 -0400
commit195daf665a6299de98a4da3843fed2dd9de19d3a (patch)
tree3f7b786d4dfafa6a4d4090e529f7858f60112c75 /Documentation/sysctl
parentbcfba4f4bf3c9c7c72b459d52a9e826dfd72855e (diff)
watchdog: enable the new user interface of the watchdog mechanism
With the current user interface of the watchdog mechanism it is only possible to disable or enable both lockup detectors at the same time. This series introduces new kernel parameters and changes the semantics of some existing kernel parameters, so that the hard lockup detector and the soft lockup detector can be disabled or enabled individually. With this series applied, the user interface is as follows. - parameters in /proc/sys/kernel . soft_watchdog This is a new parameter to control and examine the run state of the soft lockup detector. . nmi_watchdog The semantics of this parameter have changed. It can now be used to control and examine the run state of the hard lockup detector. . watchdog This parameter is still available to control the run state of both lockup detectors at the same time. If this parameter is examined, it shows the logical OR of soft_watchdog and nmi_watchdog. . watchdog_thresh The semantics of this parameter are not affected by the patch. - kernel command line parameters . nosoftlockup The semantics of this parameter have changed. It can now be used to disable the soft lockup detector at boot time. . nmi_watchdog=0 or nmi_watchdog=1 Disable or enable the hard lockup detector at boot time. The patch introduces '=1' as a new option. . nowatchdog The semantics of this parameter are not affected by the patch. It is still available to disable both lockup detectors at boot time. Also, remove the proc_dowatchdog() function which is no longer needed. [dzickus@redhat.com: wrote changelog] [dzickus@redhat.com: update documentation for kernel params and sysctl] Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com> Signed-off-by: Don Zickus <dzickus@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/sysctl')
-rw-r--r--Documentation/sysctl/kernel.txt62
1 files changed, 53 insertions, 9 deletions
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt
index 83ab25660fc9..99d7eb3a1416 100644
--- a/Documentation/sysctl/kernel.txt
+++ b/Documentation/sysctl/kernel.txt
@@ -77,12 +77,14 @@ show up in /proc/sys/kernel:
77- shmmax [ sysv ipc ] 77- shmmax [ sysv ipc ]
78- shmmni 78- shmmni
79- softlockup_all_cpu_backtrace 79- softlockup_all_cpu_backtrace
80- soft_watchdog
80- stop-a [ SPARC only ] 81- stop-a [ SPARC only ]
81- sysrq ==> Documentation/sysrq.txt 82- sysrq ==> Documentation/sysrq.txt
82- sysctl_writes_strict 83- sysctl_writes_strict
83- tainted 84- tainted
84- threads-max 85- threads-max
85- unknown_nmi_panic 86- unknown_nmi_panic
87- watchdog
86- watchdog_thresh 88- watchdog_thresh
87- version 89- version
88 90
@@ -417,16 +419,23 @@ successful IPC object allocation.
417 419
418nmi_watchdog: 420nmi_watchdog:
419 421
420Enables/Disables the NMI watchdog on x86 systems. When the value is 422This parameter can be used to control the NMI watchdog
421non-zero the NMI watchdog is enabled and will continuously test all 423(i.e. the hard lockup detector) on x86 systems.
422online cpus to determine whether or not they are still functioning
423properly. Currently, passing "nmi_watchdog=" parameter at boot time is
424required for this function to work.
425 424
426If LAPIC NMI watchdog method is in use (nmi_watchdog=2 kernel 425 0 - disable the hard lockup detector
427parameter), the NMI watchdog shares registers with oprofile. By 426 1 - enable the hard lockup detector
428disabling the NMI watchdog, oprofile may have more registers to 427
429utilize. 428The hard lockup detector monitors each CPU for its ability to respond to
429timer interrupts. The mechanism utilizes CPU performance counter registers
430that are programmed to generate Non-Maskable Interrupts (NMIs) periodically
431while a CPU is busy. Hence, the alternative name 'NMI watchdog'.
432
433The NMI watchdog is disabled by default if the kernel is running as a guest
434in a KVM virtual machine. This default can be overridden by adding
435
436 nmi_watchdog=1
437
438to the guest kernel command line (see Documentation/kernel-parameters.txt).
430 439
431============================================================== 440==============================================================
432 441
@@ -816,6 +825,22 @@ NMI.
816 825
817============================================================== 826==============================================================
818 827
828soft_watchdog
829
830This parameter can be used to control the soft lockup detector.
831
832 0 - disable the soft lockup detector
833 1 - enable the soft lockup detector
834
835The soft lockup detector monitors CPUs for threads that are hogging the CPUs
836without rescheduling voluntarily, and thus prevent the 'watchdog/N' threads
837from running. The mechanism depends on the CPUs ability to respond to timer
838interrupts which are needed for the 'watchdog/N' threads to be woken up by
839the watchdog timer function, otherwise the NMI watchdog - if enabled - can
840detect a hard lockup condition.
841
842==============================================================
843
819tainted: 844tainted:
820 845
821Non-zero if the kernel has been tainted. Numeric values, which 846Non-zero if the kernel has been tainted. Numeric values, which
@@ -858,6 +883,25 @@ example. If a system hangs up, try pressing the NMI switch.
858 883
859============================================================== 884==============================================================
860 885
886watchdog:
887
888This parameter can be used to disable or enable the soft lockup detector
889_and_ the NMI watchdog (i.e. the hard lockup detector) at the same time.
890
891 0 - disable both lockup detectors
892 1 - enable both lockup detectors
893
894The soft lockup detector and the NMI watchdog can also be disabled or
895enabled individually, using the soft_watchdog and nmi_watchdog parameters.
896If the watchdog parameter is read, for example by executing
897
898 cat /proc/sys/kernel/watchdog
899
900the output of this command (0 or 1) shows the logical OR of soft_watchdog
901and nmi_watchdog.
902
903==============================================================
904
861watchdog_thresh: 905watchdog_thresh:
862 906
863This value can be used to control the frequency of hrtimer and NMI 907This value can be used to control the frequency of hrtimer and NMI