Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 1999 08:55:28 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        "Brian F. Feldman" <green@FreeBSD.org>
Cc:        Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>, freebsd-current@FreeBSD.org
Subject:   Re: LOCK overheads (was Re: "objtrm" problem probably found)
Message-ID:  <199907131555.IAA78738@apollo.backplane.com>
References:   <Pine.BSF.4.10.9907131026080.76301-100000@janus.syracuse.net>

next in thread | previous in thread | raw e-mail | index | archive | help

: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.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907131555.IAA78738>