lkml.org 
[lkml]   [2009]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: x86's nmi_hz wrt. oprofile's nmi_timer_int.c
From
From: Ingo Molnar <mingo@elte.hu>
Date: Fri, 30 Jan 2009 16:01:25 +0100

>
> * David Miller <davem@davemloft.net> wrote:
>
> > While working on an NMI watchdog implementation on sparc64 I noticed
> > what seems to be a peculiar behavior of the NMI timer int oprofile
> > support on x86.
> >
> > When the NMI watchdog tests itself at boot timer we start with nmi_hz
> > equal to HZ.
> >
> > After the NMI watchdog self-test passes, nmi_hz is reduced down to '1'.
> >
> > The NMI timer int oprofile support simply uses DIE_NMI notifiers for
> > it's implementation. But I don't see anything in the code of
> > arch/x86/oprofile/nmi_timer_int.c nor the NMI watchdog infrastructure
> > which will re-adjust nmi_hz back to HZ or something similar.
> >
> > Am I missing something?
>
> Reducing it to 1 HZ was kind of a performance hack: running NMIs at HZ
> needlessly interrupts the CPU HZ times a second. It's more than enough to
> have 1 nmi-watchdog tick per second to notice deadlocks that take longer
> than 5 seconds.

For the NMI watchdog's purposes I understand the intent, and this
is perfectly fine.

The problem is that it stays at '1' when oprofile starts using the NMI
watchdog, and we certainly want more than one oprofile tick per second
:-)


\
 
 \ /
  Last update: 2009-01-30 22:57    [W:0.066 / U:1.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site