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