public inbox for linux-can@vger.kernel.org
 help / color / mirror / Atom feed
* CPU load inhibits CAN interrupts
@ 2012-04-10 14:40 Krzysztof Witkowski
  2012-04-10 17:48 ` Wolfgang Grandegger
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Witkowski @ 2012-04-10 14:40 UTC (permalink / raw)
  To: linux-can

I have an Ubuntu box with 3.2 kernel, CPU with 2 cores and PEAK-PCI card 
(SJA1000 controller attached via PCI bus)

I'm testing receive capabilities of the card on 1Mbit network using 
peak_pci module. It can handle about ~4000 packets per second, the 
corresponding interrupt is also raised ~4000 times per second (as 
/proc/interrupts shows) and it does not cause high CPU load on the system.

However, if I generate artificial CPU load with stress command:

    chrt --idle 0 stress -c 2

the Receive Interrupts from SJA1000 are no longer raised at all and 
therefore no messages are received. At the same time network card (e100) 
on the same IRQ is working properly.

Why CPU load inhibits hardware interrupts and what can be done about it? 
Or should I suspect hardware malfunction?

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

end of thread, other threads:[~2012-04-11 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10 14:40 CPU load inhibits CAN interrupts Krzysztof Witkowski
2012-04-10 17:48 ` Wolfgang Grandegger
2012-04-11  9:40   ` Krzysztof Witkowski
2012-04-11 13:23     ` Wolfgang Grandegger

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