Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Cammarata <jimi@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Linux Netdev List <netdev@...>
Date: Thursday, May 29, 2008 - 10:45 am

> > Many of the kernel's accounting accumulators cannot be reset.  We

For one quite a few of the network cards keep the stats in hardware and
don't neccessarily have a way to reset them. In other cases there is a
mix of OS accumulated stats bulk updated by overflow events on the device
itself.

Its a lot of complexity, and changes all over the places for the sake of
a trivial userspace change. I would suggest you instead write a quick bit
of perl or python that fetches the stats and then updates every second
with the changes.

Alan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] net: add ability to clear stats via ethtool - e1..., Alan Cox, (Thu May 29, 10:45 am)
Re: [PATCH] net: add ability to clear stats via ethtool - e1..., Stephen Hemminger, (Fri May 30, 10:41 pm)