From owner-freebsd-current@FreeBSD.ORG Fri Jul 28 13:47:06 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD48016A4DA; Fri, 28 Jul 2006 13:47:06 +0000 (UTC) (envelope-from b.candler@pobox.com) Received: from rune.pobox.com (rune.pobox.com [208.210.124.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 630FE43D66; Fri, 28 Jul 2006 13:47:06 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from rune (localhost [127.0.0.1]) by rune.pobox.com (Postfix) with ESMTP id 729AB788E2; Fri, 28 Jul 2006 09:47:27 -0400 (EDT) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 09A1D7865B; Fri, 28 Jul 2006 09:47:24 -0400 (EDT) Received: from brian by mappit.local.linnet.org with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1G6Sg9-000Bmm-GB; Fri, 28 Jul 2006 14:47:01 +0100 Date: Fri, 28 Jul 2006 14:47:01 +0100 From: Brian Candler To: John Baldwin Message-ID: <20060728134701.GA45273@uk.tiscali.com> References: <200607251254.k6PCsBef092737@lurza.secnetix.de> <200607271058.13055.jhb@freebsd.org> <20060728121525.GA44917@uk.tiscali.com> <200607280928.36573.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607280928.36573.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org, Oliver Fromme Subject: Re: vmstat's entries type X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 13:47:06 -0000 On Fri, Jul 28, 2006 at 09:28:36AM -0400, John Baldwin wrote: > lock incl counter > jnc 1f > lock incl counter+4 > 1: That looks safe to me. How expensive is a forward jump like that, i.e. do you get a pipeline bubble? The 'polling' argument says just do lock incl counter and poll all counters every 5 minutes, looking for a wrap. I think that's almost certainly going to be cheaper, as long as you can keep track of where all these counters are located. Regards, Brian.