From owner-freebsd-current Thu Nov 14 6:51:58 2002 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 66B7137B401 for ; Thu, 14 Nov 2002 06:51:57 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C05943E7B for ; Thu, 14 Nov 2002 06:51:55 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id BAA20557; Fri, 15 Nov 2002 01:51:45 +1100 Date: Fri, 15 Nov 2002 02:04:21 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Borja Marcos Cc: Borja Marcos , Subject: Re: MORE: Re: Bug? vm.stats.sys.v_syscall not updated In-Reply-To: <200211140050.44760.borjam@sarenet.es> Message-ID: <20021115015646.K10490-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 14 Nov 2002, Borja Marcos wrote: > Looking at the kernel sources, I see that in /usr/src/sys/i386/i386/trap.c, > > --- snip > > /* > * note: PCPU_LAZY_INC() can only be used if we can afford > * occassional inaccuracy in the count. > */ > PCPU_LAZY_INC(cnt.v_syscall); > > --- snip > > This seems to be a macro to update a per-CPU variable. But, AFAIK, there is > *only* one variable now. Is it correct? > > The ia64 version (/usr/src/sys/ia64/ia64) happily updates this variable: > ... This part is a bug in the ia64 version (in fact, in all non-i386 arches for syscall() and in all arches for many other statistics): PCPU_LAZY_INC() is only deployed for 1 variable on 1 arch so far. (See an earlier reply for how to unbreak the deployed case.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message