From owner-freebsd-arch Mon Jan 14 12:10:27 2002 Delivered-To: freebsd-arch@freebsd.org Received: from voi.aagh.net (pc1-hart4-0-cust168.mid.cable.ntl.com [62.254.84.168]) by hub.freebsd.org (Postfix) with ESMTP id 0263437B417 for ; Mon, 14 Jan 2002 12:10:20 -0800 (PST) Received: from freaky by voi.aagh.net with local (Exim 3.34 #1) id 16QDQw-000Glu-00 for arch@FreeBSD.org; Mon, 14 Jan 2002 20:10:18 +0000 Date: Mon, 14 Jan 2002 20:10:18 +0000 From: Thomas Hurst To: arch@FreeBSD.org Subject: Re: 64 bit counters again Message-ID: <20020114201018.GA64041@voi.aagh.net> Mail-Followup-To: arch@FreeBSD.org References: <3C41F3FD.4ECC8CD@mindspring.com> <20020113231459.GA30349@voi.aagh.net> <3C42390A.F9E9F533@mindspring.com> <3C42E899.CB21BD0A@FreeBSD.org> <3C431EE5.1CFF557B@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C431EE5.1CFF557B@mindspring.com> User-Agent: Mutt/1.3.25i Organization: Not much. X-Operating-System: FreeBSD/4.5-PRERELEASE (i386) X-Uptime: 7:51PM up 25 days, 4:36, 4 users, load averages: 2.17, 2.08, 2.03 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Terry Lambert (tlambert2@mindspring.com) wrote: > "James E. Housley" wrote: > > Right now I am trying to do network usage on the overflows the 32 bit > > counters in 60 120 seconds. 4.2GB/minute? Tasty. > Actually, I was thinking that if what you are counting overflowed > in such a short period of time, then you are counting the wrong > thing. James is? I thought FreeBSD was doing the counting? :) > You still haven't told us exactly what counter is overflowing... This machine is the box sitting in front of my single user LAN connected to a cable modem: tcp: 11962790 packets sent 7754863 data packets (3000140145 bytes) 12199847 packets received 5346910 acks (for 2999095921 bytes) 8383470 packets (4099500609 bytes) received in-sequence 320301 out-of-order packets (423292462 bytes) It's been up for 25 days, and every single one of those byte counters is totally bogus (well, *maybe* sent is accurate, received cetainly isn't, or won't be very soon). I'm just interested in how much bandwidth I'm using, but if the counters are going to overflow this easily, they cease being terribly useful, unless I'm going to actively count them and watch for overflows in userspace. I'm not really bothered if they're totally accurate, since they're just a guide - how about a float that counts kb? ;) -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - Authors are easy to get on with -- if you're fond of children. -- Michael Joseph, "Observer" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message