Skip to contentSkip to conversation

NIC inerrupt

DISCUSSION John Que 1 participant 1 message Apr 19, 2004

lore
Share & tools
lore

John Que

author
#0 lore raw

Hello,
thnxs;
You are right in that I send about 4500-5000 packets in a second. I will try to print it every 1000 packets and see. john

Quoted 26 lines

From: Bart Samwel <[email protected]>
To: John Que <[email protected]>
CC: [email protected]
Subject: Re: NIC inerrupt
Date: Mon, 19 Apr 2004 16:40:08 +0200

Quoted 17 lines · John Que

Hello,

I want to count the number of times I reach an NIC receive interrupt.

I added a global static variable of type int , and initialized it to 0 ; each time I am in the rx_interrupt of the card I incerement it by one;
I got large , non sensible numbers after one or two seconds;

So for debug I added printk each time I increment it in rx_interrupt.

What I see is that there are unreasonable jumps in the number

for instance , it inceremnts sequntially from 1 to 80,then jums to 4500, increments a little sequentially to 4580, and the jums again to 11000 ;

Quoted 6 lines
Quoted 2 lines

Is it got to do with it that this is in interrupt? Any idea what it can be ?

You're probably reading the kernel output from syslog. Syslog periodically reads out the printks from the kernel. With the amount of printks you're doing you are probably printing info for about 4500 interrupts between every time syslog checks for new kernel output, while the kernel buffer that is used to store this information can only handle enough data for 80 interrupts.

--Bart

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail