📄 nmi_watchdog.txt
字号:
Is your ix86 system locking up unpredictably? No keyboard activity, justa frustrating complete hard lockup? Do you want to help us debuggingsuch lockups? If all yes then this document is definitely for you.On Intel and similar ix86 type hardware there is a feature that enablesus to generate 'watchdog NMI interrupts'. (NMI: Non Maskable Interruptwhich get executed even if the system is otherwise locked up hard).This can be used to debug hard kernel lockups. By executing periodicNMI interrupts, the kernel can monitor whether any CPU has locked up,and print out debugging messages if so. You must enable the NMIwatchdog at boot time with the 'nmi_watchdog=n' boot parameter. Eg.the relevant lilo.conf entry: append="nmi_watchdog=1"For SMP machines and UP machines with an IO-APIC use nmi_watchdog=1.For UP machines without an IO-APIC use nmi_watchdog=2, this only worksfor some processor types. If in doubt, boot with nmi_watchdog=1 andcheck the NMI count in /proc/interrupts; if the count is zero thenreboot with nmi_watchdog=2 and check the NMI count. If it is stillzero then log a problem, you probably have a processor that needs to beadded to the nmi code.A 'lockup' is the following scenario: if any CPU in the system does notexecute the period local timer interrupt for more than 5 seconds, thenthe NMI handler generates an oops and kills the process. This'controlled crash' (and the resulting kernel messages) can be used todebug the lockup. Thus whenever the lockup happens, wait 5 seconds andthe oops will show up automatically. If the kernel produces no messagesthen the system has crashed so hard (eg. hardware-wise) that either itcannot even accept NMI interrupts, or the crash has made the kernelunable to print messages.NOTE: starting with 2.4.2-ac18 the NMI-oopser is disabled by default,you have to enable it with a boot time parameter. Prior to 2.4.2-ac18the NMI-oopser is enabled unconditionally on x86 SMP boxes.[ feel free to send bug reports, suggestions and patches to Ingo Molnar <mingo@redhat.com> or the Linux SMP mailing list at <linux-smp@vger.kernel.org> ]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -