mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* GE traffic statistics (/proc/net/dev)
@ 2003-06-05 14:20 uaca
  2003-06-06  8:04 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: uaca @ 2003-06-05 14:20 UTC (permalink / raw)
  To: linux-kernel

Hi all

I have a GE NIC card working in receive only mode capturing all traffic at
80Gbps in a 2-way SMP Pentium-III system.

I found very extrange that, for this device, stats on /proc/net/dev updates 
each second (more or less), that is, not in sub-second intervals. Again note
this only happens for this device and not for other NIC card (Fast-Ethernet 
card, e100).

I'm quite sure that the nic is receiving the traffic smootly, 
because interrupts are distributed smoothly in the time in /proc/interrupts
(I talk about sub second intervals here). Tthe GE card makes around 10000 
ints/second. 

Also I think packets are forwarded to the CPU smoothly (not in chunks each second)
because measurements of timestamps and RTT calculations I made.

I'm curious why just this device updates stats this way.

I'm running vanilla 2.4.20


Any comment will be greatly appreciated

Thanks in advance


	Ulisses

some aditional info about the GE nic

00:0b.0 Ethernet controller: BROADCOM Corporation NetXtreme BCM5701 Gigabit
Ethernet (rev 15)
        Subsystem: 3Com Corporation 3C996B-T 1000BaseTX
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 18
        Memory at f4000000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <available only to root>

this card is working in a 32bit bus at 33Mhz

eth1: Tigon3 [partno(3C996B-T) rev 0105 PHY(5701)] (PCI:33MHz:32-bit) 10/100/1000BaseT Ethernet 00:04:76:f6:8a:a0
tg3: eth1: Link is up at 1000 Mbps, full duplex.
tg3: eth1: Flow control is off for TX and off for RX.

                Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

--->	Visita http://www.valux.org/ para saber acerca de la	<---
--->	Asociación Valenciana de Usuarios de Linux		<---
 

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

* Re: GE traffic statistics (/proc/net/dev)
  2003-06-05 14:20 GE traffic statistics (/proc/net/dev) uaca
@ 2003-06-06  8:04 ` David S. Miller
  2003-06-07  8:40   ` uaca
  0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2003-06-06  8:04 UTC (permalink / raw)
  To: uaca; +Cc: linux-kernel

On Thu, 2003-06-05 at 07:20, uaca@alumni.uv.es wrote:
> I found very extrange that, for this device, stats on /proc/net/dev updates 
> each second (more or less), that is, not in sub-second intervals. Again note
> this only happens for this device and not for other NIC card (Fast-Ethernet 
> card, e100).

The chip only periodically sends updated statistics to main
memory via DMA, the interval can be changed using the
'ethtool' utility.

-- 
David S. Miller <davem@redhat.com>

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

* Re: GE traffic statistics (/proc/net/dev)
  2003-06-06  8:04 ` David S. Miller
@ 2003-06-07  8:40   ` uaca
  0 siblings, 0 replies; 3+ messages in thread
From: uaca @ 2003-06-07  8:40 UTC (permalink / raw)
  To: linux-kernel

On Fri, Jun 06, 2003 at 01:04:05AM -0700, David S. Miller wrote:
> On Thu, 2003-06-05 at 07:20, uaca@alumni.uv.es wrote:
> > I found very extrange that, for this device, stats on /proc/net/dev updates 
> > each second (more or less), that is, not in sub-second intervals. Again note
> > this only happens for this device and not for other NIC card (Fast-Ethernet 
> > card, e100).
> 
> The chip only periodically sends updated statistics to main
> memory via DMA, the interval can be changed using the
> 'ethtool' utility.

Thanks so much, that explains it

in the other hand, vanilla ethertool-1.7 refused to show -S information and 
crashed the machine using -d

[root@discreto sbin]# ./ethtool -i eth1
driver: tg3
version: 1.2
firmware-version:
bus-info: 00:0b.0

that is a 2.4.20 kernel, the card is an 3Com 906B-T pluged in a 32bit/33Mhz/
5Volt PCI Bus.

I have reported this to the gkernel project on sourceforge

	Ulisses

                Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

--->	Visita http://www.valux.org/ para saber acerca de la	<---
--->	Asociación Valenciana de Usuarios de Linux		<---
 

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

end of thread, other threads:[~2003-06-07  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-05 14:20 GE traffic statistics (/proc/net/dev) uaca
2003-06-06  8:04 ` David S. Miller
2003-06-07  8:40   ` uaca

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

all inboxes | Powered by JetHome®