From owner-freebsd-current Tue Jul 13 7:30:55 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 831771516B for ; Tue, 13 Jul 1999 07:30:51 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id KAA77435; Tue, 13 Jul 1999 10:28:05 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Tue, 13 Jul 1999 10:28:05 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Peter Jeremy Cc: dillon@apollo.backplane.com, freebsd-current@FreeBSD.org Subject: Re: LOCK overheads (was Re: "objtrm" problem probably found) In-Reply-To: <99Jul13.202011est.40341@border.alcanet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's another data point: {"/home/green"}$ cc -O2 locktests.c -o locktests {"/home/green"}$ ./locktests mode 0 10.92 ns/loop nproc=1 lcks=EMPTY mode 1 17.99 ns/loop nproc=1 lcks=no mode 2 17.97 ns/loop nproc=2 lcks=no mode 3 166.33 ns/loop nproc=1 lcks=yes mode 4 167.91 ns/loop nproc=2 lcks=yes mode 5 42.16 ns/loop nproc=1 lcks=no mode 6 41.60 ns/loop nproc=2 lcks=no mode 7 188.86 ns/loop nproc=1 lcks=yes mode 8 191.56 ns/loop nproc=2 lcks=yes This is a K6-2 350. Locks are pretty expensive on them. Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message