mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* High rate of touch_softlockup makes Soft Lockup detector useless
@ 2016-07-07  5:05 Joel Fernandes
  2016-07-07 15:17 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Fernandes @ 2016-07-07  5:05 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Frédéric Weisbecker,
	Thomas Gleixner

Hi,

In a system running a recent kernel, I am trying to use soft lockup
detector to detect soft lockups in the system.
During this exercise, I see that even with real soft lockups, the
kernel is unable to detect them.

Digging in further, I found that the softlockup watchdog is touched
1000s of times per second by the NOHZ code.
prints revealed the following 2 functions calling touch_softlockup_watchdog:
[  165.960292] CPU0 touch: tick_nohz_restart_sched_tick
[  165.960309] CPU1 touch: tick_nohz_update_jiffies

I am wondering, do we really need to touch the softlockup watchdog
from the tick_nohz code?
>From the code comments it looks like the watchdog is touch'ed because
the tick was off and was being turned on so it could the watchdog may
not have been touched for a long time.
BUT, wouldn't the hrtimer interrupt for the watchdog timer cause the
watchdog thread to be scheduled even though the tick was off for a
long time? Then in that case do we really need to touch the softlockup
watchdog from the tick_nohz code?

In any case, looks like the softlockup detection is broken and doesn't
work with nohz.

BTW, commenting out the touch_softlockup seems to make soft lockup
detection work again. Any suggestions for a real fix and the right way
forward?

Thanks,

Joel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-07 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07  5:05 High rate of touch_softlockup makes Soft Lockup detector useless Joel Fernandes
2016-07-07 15:17 ` Thomas Gleixner
2016-07-07 23:06   ` Joel Fernandes
2016-07-07 23:47     ` Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®