From owner-freebsd-current Mon Feb 25 6:38:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 6EB2337B402; Mon, 25 Feb 2002 06:38:32 -0800 (PST) Received: from pool0138.cvx40-bradley.dialup.earthlink.net ([216.244.42.138] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16fMGg-0004lw-00; Mon, 25 Feb 2002 06:38:18 -0800 Message-ID: <3C7A4C4E.BE94BD24@mindspring.com> Date: Mon, 25 Feb 2002 06:38:06 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon Cc: Jake Burkholder , Bruce Evans , Alfred Perlstein , Bosko Milekic , Seigo Tanimura , current@FreeBSD.ORG, John Baldwin Subject: Re: critical_enter()/critical_exit() overheads in an SMP system References: <20020224131027.I31343-100000@gamplex.bde.org> <200202241912.g1OJCMx95238@apollo.backplane.com> <20020224224927.D35990@locore.ca> <200202250603.g1P63fu46331@apollo.backplane.com> <200202250649.g1P6nF746587@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Matthew Dillon wrote: > :pid 214 guid/sec 687816 Two TU's running, old critical_*() > :pid 214 guid/sec 687632 1.454 uS/call > :pid 214 guid/sec 687857 > :pid 214 guid/sec 687887 > :pid 214 guid/sec 667454 new critical_*() > :pid 214 guid/sec 667562 1.496 uS/call --> 41 nS > :pid 214 guid/sec 668551 > :pid 214 guid/sec 668686 > :pid 214 guid/sec 668789 > > Boy, I'm batting 0 tonight! Those numbers are reversed :-). > new_critical is the top number (the faster 1.454 uS/call) and > old_critical is the bottom number (1.496 uS/call). I'll have to remember this trick of swapping numbers the next time I have a competitive benchmark that's slower than the competition. 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message