From owner-freebsd-hackers Wed Mar 25 03:45:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA23857 for freebsd-hackers-outgoing; Wed, 25 Mar 1998 03:45:55 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA23850 for ; Wed, 25 Mar 1998 03:45:50 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id DAA06632; Wed, 25 Mar 1998 03:39:56 -0800 (PST) Message-Id: <199803251139.DAA06632@implode.root.com> To: black@bleep.ishiboo.com cc: freebsd-hackers@FreeBSD.ORG Subject: Re: interface byte count insanity In-reply-to: Your message of "Wed, 25 Mar 1998 06:21:43 EST." <19980325112144.20157.qmail@bleep.ishiboo.com> From: David Greenman Reply-To: dg@root.com Date: Wed, 25 Mar 1998 03:39:56 -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >de0: flags=8843 mtu 1500 > 82632 packets input, 39371 bytes, 0 drops, 0 errors > 39371 packets output, 2178386 bytes, 154 collisions, 0 errors > inet 172.21.8.239 netmask 0xffffff00 broadcast 172.21.8.255 > ether 00:40:05:41:10:18 > media: autoselect (10baseT/UTP) status: active > >the packet counts are about right, but the byte counts are obviously >silly. > >another oddity is the higher collision rate with the de card vs. the >fxp card. i saw single digit collisions for the same amount of data >with the fxp. i will re-run the tests to verify this behavior. > >do any of the current ethernet drivers correctly increment their byte >counts? would anyone be averse to expanding struct if_data to include >more detailed stats on errors and collision types? would the kernel >and ifconfig patches be worth commiting to the tree (the kernel patch >is particularly useful because it allows a modified netstat to run >without being setgid kmem)? ibytes and obytes are handled at the ethernet encapsulation level, not at the device driver level. The interface stats with netstat -i -b are correct (I depend on them heavily, so I know this to be true). I'd check your ioctl - I think it's broken. As for collision rate, that is entirely dependant on what you're talking to on the other side. You'll see wild swings in collision rate depending on type of traffic, speed of the machines, and type of ethernet controller. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message