netdev
[Top] [All Lists]

Re: netdev.stats change suggestion

To: kuznet@xxxxxxxxxxxxx
Subject: Re: netdev.stats change suggestion
From: Martin Devera <devik@xxxxxx>
Date: Thu, 24 Jan 2002 22:30:40 +0100 (CET)
Cc: "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <200201242033.XAA11324@ms2.inr.ac.ru>
Sender: owner-netdev@xxxxxxxxxxx
> In fact, all that is required of statistics is to grow monotonically.
> If it does, user level is more than happy. Look into iproute2, for example
> for ifstat, nstat and rtacct.

I can't found ifstat, nstat in my iproute 010824 .. Maybe old one ?

By the way I don't see how you get over wraparound problem. On 1G
net 32 bit can wrap in 40s not speaking about bonding more of them.

About write/read locking, what about:

WRT L
if (carry) [implicit barrier] INC H

in update part and:

1:READ H
  barrier
  READ L
  barrier
  READ H -> X
  if (X != H) goto 1

in read stat part ? Fast, simple (and possibly wrong) :)
devik


<Prev in Thread] Current Thread [Next in Thread>