netdev
[Top] [All Lists]

Re: netdev.stats change suggestion

To: davem@xxxxxxxxxx (David S. Miller)
Subject: Re: netdev.stats change suggestion
From: kuznet@xxxxxxxxxxxxx
Date: Thu, 24 Jan 2002 23:33:56 +0300 (MSK)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20020124.062650.66057933.davem@xxxxxxxxxx> from "David S. Miller" at Jan 24, 2 05:45:01 pm
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> I have no problems with it,

I have.

64bit counters create lots of troubles. Particularly, all the reads
must be serialized wrt writes.

And I really do not see _any_ legal reasons to hold this kind
of statistics in the kernel. I would even prefer that 64bit
architectures used not "unsigned long" but u32.

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.

Alexey

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