lkml.org 
[lkml]   [2004]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: NIC inerrupt
Date
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


>From: Bart Samwel <bart@samwel.tk>
>To: John Que <qwejohn@hotmail.com>
>CC: linux-kernel@vger.kernel.org
>Subject: Re: NIC inerrupt
>Date: Mon, 19 Apr 2004 16:40:08 +0200
>
>
>
>John Que wrote:
>>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 ;
>>
>>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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.020 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site