lkml.org 
[lkml]   [2003]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Net device byte statistics
    On Fri, 25 Jul 2003 13:55:14 -0400 Jeff Sipek <jeffpc@optonline.net> wrote:

    | -----BEGIN PGP SIGNED MESSAGE-----
    | Hash: SHA1
    |
    | On Friday 25 July 2003 13:20, Randy.Dunlap wrote:
    | > Yes, a common solution for this is to use some SNMP agent that does
    | > 64-bit counter accumulation.
    |
    | Interesting...I haven't thought of SNMP.
    |
    | > IETF expects that some high-speed interfaces will have 64-bit
    | > counters. From RFC 2233 (Interfaces Group MIB using SMIv2):
    | >
    | > <quote>
    | > For interfaces that operate at 20,000,000 (20 million) bits per
    | > second or less, 32-bit byte and packet counters MUST be used.
    | > For interfaces that operate faster than 20,000,000 bits/second,
    | > and slower than 650,000,000 bits/second, 32-bit packet counters
    | > MUST be used and 64-bit octet counters MUST be used. For
    | > interfaces that operate at 650,000,000 bits/second or faster,
    | > 64-bit packet counters AND 64-bit octet counters MUST be used.
    | > </quote>
    |
    | It is just easier to have everything 64-bits.

    I think the counterpoint is that if it were easy & safe, it would
    already be in the kernel.

    | > However, this is a MIB spec. It does not require a Linux
    | > (/proc) interface to support 64-bit counters.
    |
    | Agreed, however if we are going to change some counters, we should do it for
    | all of them. (Btw, /proc is not the only point where users can get stats....
    | there is also /sys and something else...I can't remember now...)

    Right, I was just saying that the kernel interface doesn't have
    to support 64-bit counters in lots of cases. That can often be
    done in userspace.

    --
    ~Randy
    | http://developer.osdl.org/rddunlap/ | http://www.xenotime.net/linux/ |
    For Linux-2.6:
    http://www.codemonkey.org.uk/post-halloween-2.5.txt
    or http://lwn.net/Articles/39901/
    http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:47    [W:0.020 / U:0.972 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site