From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 08:45:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F7DE37B401 for ; Sun, 6 Jul 2003 08:45:12 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 299AC43FEA for ; Sun, 6 Jul 2003 08:45:11 -0700 (PDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by comcast.net (sccrmhc13) with ESMTP id <20030706154510016000s0kve>; Sun, 6 Jul 2003 15:45:10 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h66Fj9pS025539 for ; Sun, 6 Jul 2003 11:45:09 -0400 (EDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h66Fj8DK025536; Sun, 6 Jul 2003 11:45:09 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-stable-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> From: Lowell Gilbert Date: 06 Jul 2003 11:45:08 -0400 In-Reply-To: <200307060029.00866.me@farid-hajji.de> Message-ID: <44wuevveuz.fsf@be-well.ilk.org> Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 15:45:12 -0000 Farid Hajji writes: > > > "vmstat -s" shows on one of my boxes (uptime: 26 days): > > > > > > -1597015721 total name lookups > > > cache hits (101% pos + 0% neg) system 0% per-directory > > > deletions 0%, falsehits 0%, toolong 0% > > > > > > Weird. I'll have to cvsup again and hope this has been fixed :) > > > > I'm not seeing it on an up-to-date -STABLE. Of course, that doesn't > > mean much, because it looks like a counter wraparound. > > Of course it's a wraparound. The total count is a wraparound, but the positive cache hit count still looks funny. > I was not able to reproduce this > condition on newer -STABLE. It takes some weeks of uptime > and heavy use to reach this stage, unless you happen to know > how to increment the counter with a test program (I don't > know how). You'd have to put in an extra kernel interface for that; the ability to zero the structure would be (slightly) more useful. > Shouldn't such counters be at least 64 bit wide? They are, on most platforms. You can't do that on an i386, though. At least, not without opening up worse problems.