You are not logged in.

#1 2015-05-15 05:46:38

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

NMI Watchdog doesn't get disabled

I've followed the arch wiki to achieve this but it seems it didn't work

# dmesg | grep -i nmi
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x04] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x05] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x06] dfl dfl lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x07] dfl dfl lint[0x1])
[    0.215683] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.

# cat /etc/sysctl.d/disable_watchdog.conf
kernel.nmi_watchdog = 0

# journalctl -b | grep -i watchdog
May 15 07:09:16 arch1411 kernel: NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
May 15 07:09:16 arch1411 kernel: sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver v0.05
May 15 07:09:19 arch1411 rtkit-daemon[459]: Watchdog thread running.

# cat /proc/sys/kernel/nmi_watchdog
0

Related:
https://bbs.archlinux.org/viewtopic.php?id=165834


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#2 2015-05-15 11:06:06

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: NMI Watchdog doesn't get disabled

options from sysctl are loaded by systemd-sysctl.service, so I'm guessing watchdog would be disabled only after that, and still enabled during early boot.
did you try adding 'nmi_watchdog=0' to your kernel boot parameters? that way it should be disabled from the start.

Offline

#3 2015-05-15 11:35:11

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: NMI Watchdog doesn't get disabled

Doesn't the journalctl command show that the watchdog is running after the boot process finished? I'd like to stick to know why the wiki method didn't work if it doesn't.


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#4 2015-05-15 13:34:10

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: NMI Watchdog doesn't get disabled

afaik if,

# cat /proc/sys/kernel/nmi_watchdog
0

nmi_watchdog should be disabled.

so to me it looks like the wiki method with sysctl is working fine on your system.

I don't think any the messages in your journal clearly indicate that nmi-watchdog was still running after boot:

journalctl -b | grep -i watchdog
May 15 07:09:16 arch1411 kernel: NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.

This is the message from early kernel boot, also visible on dmesg.

May 15 07:09:16 arch1411 kernel: sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver v0.05

sp5100_tco watchdog driver (or any other watchdog drivers) has nothing to do with kernel's nmi-watchdog

May 15 07:09:19 arch1411 rtkit-daemon[459]: Watchdog thread running.

I'm pretty sure this is about rtkit-daemons own watchdog process. again nothing to do with nmi-watchdog

Offline

#5 2015-05-16 06:42:13

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: NMI Watchdog doesn't get disabled

I see. Thank you!

BTW, as a noob I always appreciate the method of confirming the given solution actually worked.


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

Board footer

Powered by FluxBB