perf nmi on x86
Hi Jan,
running Xenomai on an x86 machine, I noticed that the perf NMI was ticking. It seems CONFIG_PERF can not be disabled in the kernel configuration.
So, the first question is:
is there a way of disabling the NMI ?
second question is:
if not, what do we do about it?
I mean, on the one hand, disabling the NMI is probably mandatory on a system where latency matters, but on the other hand, some users may want it enabled and do not care for the additional latency.
Regards.
Signature · 2 lines
Gilles. https://click-hack.org
Quoted 6 lines · Gilles Chanteperdrix
Hi Jan,
running Xenomai on an x86 machine, I noticed that the perf NMI was ticking. It seems
CONFIG_PERFcan not be disabled in the kernel configuration.
Quoted 8 lines
So, the first question is:
is there a way of disabling the NMI ?
second question is:
if not, what do we do about it?I mean, on the one hand, disabling the NMI is probably mandatory on a system where latency matters, but on the other hand, some users may want it enabled and do not care for the additional latency.
Does "echo 0 > /proc/sys/kernel/nmi_watchdog" change the picture? It did so for me on a distro kernel, though re-enabling it again didn't make the PMIs reappear.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Gilles Chanteperdrix
Hi Jan,
running Xenomai on an x86 machine, I noticed that the perf NMI was ticking. It seems
CONFIG_PERFcan not be disabled in the kernel configuration.So, the first question is:
is there a way of disabling the NMI ?
second question is:
if not, what do we do about it?
Quoted 7 lines
Quoted 3 lines
I mean, on the one hand, disabling the NMI is probably mandatory on a system where latency matters, but on the other hand, some users may want it enabled and do not care for the additional latency.
Does "echo 0 >
/proc/sys/kernel/nmi_watchdog" change the picture? It did so for me on a distro kernel, though re-enabling it again didn't make the PMIs reappear.
Works for me, and writing 1 seems to re-enable it. Thanks. This should really be documented somewhere, though.
Signature · 2 lines
Gilles. https://click-hack.org