* ksoftirqd_CPU0 spinning in 2.4.21-pre3
@ 2003-01-22 19:44 Ben Greear
2003-01-23 14:58 ` Robert Olsson
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2003-01-22 19:44 UTC (permalink / raw)
To: linux-kernel
I happened to notice that my ksoftirqd_CPU0 process started spinning
at 99% CPU when I plugged in the ports to a tulip NIC. I didn't see
any significant amount of interrupts when I looked at /proc/interrupts,
and there was no traffic running.
However, this is also running a hacked up tulip-napi driver, so it
could very well be my problem. I have not seen this on any other kernel
in several months though...
Anyway, if anyone has seen this, I'd like to know. Otherwise, I'll blame
my code and start poking at things...
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 4+ messages in thread
* ksoftirqd_CPU0 spinning in 2.4.21-pre3
2003-01-22 19:44 ksoftirqd_CPU0 spinning in 2.4.21-pre3 Ben Greear
@ 2003-01-23 14:58 ` Robert Olsson
2003-01-23 18:32 ` Ben Greear
0 siblings, 1 reply; 4+ messages in thread
From: Robert Olsson @ 2003-01-23 14:58 UTC (permalink / raw)
To: Ben Greear; +Cc: linux-kernel, Robert.Olsson
Ben Greear writes:
> I happened to notice that my ksoftirqd_CPU0 process started spinning
> at 99% CPU when I plugged in the ports to a tulip NIC. I didn't see
> any significant amount of interrupts when I looked at /proc/interrupts,
> and there was no traffic running.
>
> However, this is also running a hacked up tulip-napi driver, so it
> could very well be my problem. I have not seen this on any other kernel
> in several months though...
>
> Anyway, if anyone has seen this, I'd like to know. Otherwise, I'll blame
> my code and start poking at things...
Well it can be normal operation if box is highly loaded...
At high loads network interrupts are disabled not to trash performance or
DoS the kernel. Which in turn does succesive polls via RX-softirq to devices
at rate the it can process. So no interrupts when resources are scarce.
The lack of interrupts makes ksoftirqd run the RX-softirq so the network load
becomes visable here. Also review the discussion about ksoftirqd priority.
Cheers.
--ro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ksoftirqd_CPU0 spinning in 2.4.21-pre3
2003-01-23 14:58 ` Robert Olsson
@ 2003-01-23 18:32 ` Ben Greear
2003-01-24 12:21 ` Robert Olsson
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2003-01-23 18:32 UTC (permalink / raw)
To: Robert Olsson; +Cc: linux-kernel
Robert Olsson wrote:
> Ben Greear writes:
> > I happened to notice that my ksoftirqd_CPU0 process started spinning
> > at 99% CPU when I plugged in the ports to a tulip NIC. I didn't see
> > any significant amount of interrupts when I looked at /proc/interrupts,
> > and there was no traffic running.
> >
> > However, this is also running a hacked up tulip-napi driver, so it
> > could very well be my problem. I have not seen this on any other kernel
> > in several months though...
> >
> > Anyway, if anyone has seen this, I'd like to know. Otherwise, I'll blame
> > my code and start poking at things...
>
> Well it can be normal operation if box is highly loaded...
There was zero network load on the box. I think there must be a bug in
my napi-ization of the tulip driver. Since I coppied it almost verbatim
from your stuff, you might want to check too :)
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ksoftirqd_CPU0 spinning in 2.4.21-pre3
2003-01-23 18:32 ` Ben Greear
@ 2003-01-24 12:21 ` Robert Olsson
0 siblings, 0 replies; 4+ messages in thread
From: Robert Olsson @ 2003-01-24 12:21 UTC (permalink / raw)
To: Ben Greear; +Cc: Robert Olsson, linux-kernel
Ben Greear writes:
> There was zero network load on the box. I think there must be a bug in
> my napi-ization of the tulip driver. Since I coppied it almost verbatim
> from your stuff, you might want to check too :)
If there are no interrupts and ksoftirqd is spinning it smells like
dev->poll never calls netif_rx_complete() --> pure polling.
Cheers.
--ro
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-24 12:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22 19:44 ksoftirqd_CPU0 spinning in 2.4.21-pre3 Ben Greear
2003-01-23 14:58 ` Robert Olsson
2003-01-23 18:32 ` Ben Greear
2003-01-24 12:21 ` Robert Olsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox