Date: Tue, 16 Dec 2008 19:12:24 +0100 (CET) From: Harti Brandt <hartmut.brandt@dlr.de> To: Sergey Matveychuk <sem@FreeBSD.org> Cc: freebsd-net@freebsd.org Subject: Re: bsnmpd & 64bits counters problem Message-ID: <20081216190932.I74416@beagle.kn.op.dlr.de> In-Reply-To: <4947EE0B.9050902@FreeBSD.org> References: <4947D7A9.2050407@FreeBSD.org> <20081216181850.O74416@beagle.kn.op.dlr.de> <4947EE0B.9050902@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM>Harti Brandt wrote: SM>> On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM>> SM>> SM>Hello. SM>> SM> SM>> SM>Some weird thing has happened with 64bit counters: SM>> SM> SM>> SM>% snmpwalk -v2c -cpublic localhost ifInOctets SM>> SM>IF-MIB::ifInOctets.1 = Counter32: 4107815474 SM>> SM>... SM>> SM>IF-MIB::ifInOctets.16 = Counter32: 2894713654 SM>> SM> SM>> SM>% snmpwalk -v2c -cpublic localhost ifHCInOctets SM>> SM>IF-MIB::ifHCInOctets.1 = Counter64: 7911064279758 SM>> SM>... SM>> SM>IF-MIB::ifHCInOctets.4 = Counter64: 13143091216588 SM>> SM> SM>> SM>There are all 16 32bits counters but only 4 64bits. That's less than SM>> physical SM>> SM>interfaces on this router (em0-em5). SM>> SM> SM>> SM>7.1-PRERELEASE SM>> SM>> The highspeed counters are only there if this is a high-speed interface. SM>> High speed means that the baudrate in the interface MIB (the one in the SM>> kernel) must be larger than 20Mbaud. SM> SM>Well, these is lagg interfaces: SM>lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000 SM> options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> SM> ether 00:30:48:67:d4:68 SM> media: Ethernet autoselect SM> status: active SM> laggproto lacp SM> laggport: em2 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> SM> laggport: em0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> SM> SM>There is no baudrate on them. But they are really high-speed however. All interfaces have a baudrate. Its in net/if.h ifi_baudrate. We had the problem in the past with other interface types. 'virtual' interfaces must take care to somehow propagate the rate of the underlying physical interfaces up to the virtual one. harti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081216190932.I74416>