netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pegged softirq and NAPI race (?)
@ 2018-09-18  8:41 Song Liu
  2018-09-18 13:45 ` Eric Dumazet
  0 siblings, 1 reply; 22+ messages in thread
From: Song Liu @ 2018-09-18  8:41 UTC (permalink / raw)
  To: Networking
  Cc: edumazet@google.com, jeffrey.t.kirsher@intel.com,
	alexander.h.duyck@intel.com, Michael Chan, Kernel Team

We are debugging this issue that netconsole message triggers pegged softirq
(ksoftirqd taking 100% CPU for many seconds). We found this issue in
production with both bnxt and ixgbe, on a 4.11 based kernel. This is easily
reproducible with ixgbe on 4.11, and latest net/net-next (see [1] for more
detail).

After debugging for some time, we found that this issue is likely related
to 39e6c8208d7b ("net: solve a NAPI race"). After reverting this commit,
the steps described in [1] cannot reproduce the issue on ixgbe. Reverting
this commit also reduces the chances we hit the issue with bnxt (it still
happens with a lower rate).

I tried to fix this issue with relaxed variant (or older version) of
napi_schedule_prep() in netpoll, just like the one on napi_watchdog().
However, my tests do not always go as expected.

Please share your comments/suggestions on which direction shall we try
to fix this.

Thanks in advance!
Song


[1] https://www.spinics.net/lists/netdev/msg522328.html

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

end of thread, other threads:[~2018-09-19  3:39 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-18  8:41 pegged softirq and NAPI race (?) Song Liu
2018-09-18 13:45 ` Eric Dumazet
2018-09-18 16:19   ` Song Liu
2018-09-18 16:31     ` Rik van Riel
2018-09-18 16:33     ` Eric Dumazet
2018-09-18 16:49       ` Song Liu
2018-09-18 17:51   ` Alexei Starovoitov
2018-09-18 18:17     ` Eric Dumazet
2018-09-18 20:37       ` Song Liu
2018-09-18 21:13         ` Eric Dumazet
2018-09-18 21:21           ` Eric Dumazet
2018-09-18 21:36             ` Jeff Kirsher
2018-09-18 21:40               ` Song Liu
2018-09-18 21:46                 ` Eric Dumazet
2018-09-18 21:55                   ` Song Liu
2018-09-18 22:04                     ` Eric Dumazet
2018-09-18 21:21           ` Song Liu
2018-09-18 21:25             ` Eric Dumazet
2018-09-18 21:25           ` Florian Fainelli
2018-09-18 21:28             ` Eric Dumazet
2018-09-18 21:35               ` Florian Fainelli
2018-09-18 21:36               ` Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).