From owner-freebsd-current Tue Jul 13 11:11:19 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 D326915034 for ; Tue, 13 Jul 1999 11:11:17 -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 OAA86254; Tue, 13 Jul 1999 14:10:45 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Tue, 13 Jul 1999 14:10:45 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Matthew Dillon Cc: Peter Jeremy , freebsd-current@FreeBSD.org Subject: Re: LOCK overheads (was Re: "objtrm" problem probably found) In-Reply-To: <199907131555.IAA78738@apollo.backplane.com> 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 On Tue, 13 Jul 1999, Matthew Dillon wrote: > > :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 _ __ ___ ____ ___ ___ ___ > > Wow, now that *is* expensive! The K6 must be implementing it in > microcode for it to be that bad. Sometimes you wonder what they're doing with that RISC86 translation. I have a feeling it's overhead for the OpenPIC implementation, really. > > -Matt > Matthew Dillon > > 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