2003-06-05 14:06:39

by uaca

[permalink] [raw]
Subject: GE traffic statistics (/proc/net/dev)

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 <---


2003-06-06 07:50:39

by David Miller

[permalink] [raw]
Subject: Re: GE traffic statistics (/proc/net/dev)

On Thu, 2003-06-05 at 07:20, [email protected] 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 <[email protected]>

2003-06-07 08:26:53

by uaca

[permalink] [raw]
Subject: Re: GE traffic statistics (/proc/net/dev)

On Fri, Jun 06, 2003 at 01:04:05AM -0700, David S. Miller wrote:
> On Thu, 2003-06-05 at 07:20, [email protected] 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 <---