From owner-freebsd-arch Mon Jan 14 11:45:57 2002 Delivered-To: freebsd-arch@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 6F76F37B476; Mon, 14 Jan 2002 11:45:38 -0800 (PST) Received: from pool0325.cvx40-bradley.dialup.earthlink.net ([216.244.43.70] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16QD32-0006p8-00; Mon, 14 Jan 2002 11:45:37 -0800 Message-ID: <3C43355D.8C9A35A0@mindspring.com> Date: Mon, 14 Jan 2002 11:45:33 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Greenman Cc: "James E. Housley" , Thomas Hurst , arch@FreeBSD.org Subject: Re: 64 bit counters again References: <3C41F3FD.4ECC8CD@mindspring.com> <20020113231459.GA30349@voi.aagh.net> <3C42390A.F9E9F533@mindspring.com> <3C42E899.CB21BD0A@FreeBSD.org> <3C431EE5.1CFF557B@mindspring.com> <20020114100633.B8955@nexus.root.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 David Greenman wrote: > >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. > > > >Instead of bytes, try counting K or frames, instead of frames, > >count packets, etc.. > > Kbytes doesn't have enough resolution to provide accurate results since > the packets themselves are not integer multiples of Kbytes. Use a modular counter; count bytes, and reflect them out at 1K boundaries. Thus the accuracy is 1K, but the precision is 1 byte. I have a hard time beliving he needs 1 byte accuracy for the amount of data he is pushing. Accounting records could not be written to disk fast enough. > >You still haven't told us exactly what counter is overflowing... > > He's just trying to do what every network admin is trying to do: measure > link utilization (mostly bits per second) so that he can make intelligent > decisions about capacity, use, and associated costs. OK, he can do that with 1 byte precision, and 1K (or 1M) accuracy, so it's no problem... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message