netdev
[Top] [All Lists]

Re: [PATCH 2.6] generic network statistics (was Re: [6/6]: jenkins hash

To: hadi@xxxxxxxxxx
Subject: Re: [PATCH 2.6] generic network statistics (was Re: [6/6]: jenkins hash for neigh / Statistics)
From: Robert Olsson <Robert.Olsson@xxxxxxxxxxx>
Date: Tue, 28 Sep 2004 16:22:58 +0200
Cc: Harald Welte <laforge@xxxxxxxxxxxx>, Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, Stephen Hemminger <shemminger@xxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, herbert@xxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <1096375700.8659.235.camel@xxxxxxxxxxxxxxxx>
References: <20040925005623.2faf8faf.davem@xxxxxxxxxxxxx> <E1CBu70-00010X-00@xxxxxxxxxxxxxxxxxxxxxxxx> <20040927121403.767e2308.davem@xxxxxxxxxxxxx> <20040927222613.GE3236@xxxxxxxxxxxxxxxxxxxxxxx> <20040927160636.7741d973.davem@xxxxxxxxxxxxx> <1096327658.1729.19.camel@xxxxxxxxxxxxxxxxxxxxx> <16729.9326.93269.422940@xxxxxxxxxxxx> <20040928111906.GB29961@xxxxxxxxxxxxxxxxxxxxxxx> <1096375700.8659.235.camel@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
jamal writes:
 > 
 > Thanks for changing the subject Harald (I wanted to catchup with that
 > thread at some point). 
 > Speaking of generic stats; i have a patch netlink ready which may need
 > some extensions. I did post it  a while back on netdev but didnt get
 > feedback.

 OK it's EWMA calc in kernel. For another purpose I tried another approach 
 to satisfy some users that wanted Cisco like average stats on our routers. 
 User app/daemon reads stats via netlink and does average calc. looks like:
 
 ifstat2  eth*
             RX --------------------------   TX -------------------------
eth0          389.4 M bit/s       40 k pps     20.7 M bit/s       40 k pps 
eth1            3.1 k bit/s        4   pps    686.5 k bit/s       65   pps 
eth2           19.3 M bit/s       37 k pps    363.5 M bit/s       38 k pps 


As usual most code is honestly stolen from Alexey. :-)

ftp://robur.slu.se/pub/Linux/net-development/ifstat2/

Cheers.
                                                --ro

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