From owner-freebsd-arch Sun Feb 17 23:42:40 2002 Delivered-To: freebsd-arch@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 4DAA237B402; Sun, 17 Feb 2002 23:42:38 -0800 (PST) Received: from pool0305.cvx21-bradley.dialup.earthlink.net ([209.179.193.50] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16ciRR-0002ki-00; Sun, 17 Feb 2002 23:42:29 -0800 Message-ID: <3C70B05A.B41BCF9E@mindspring.com> Date: Sun, 17 Feb 2002 23:42:18 -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: Bruce Evans Cc: Matthew Dillon , Poul-Henning Kamp , Julian Elischer , Alfred Perlstein , arch@FreeBSD.ORG, jhb@FreeBSD.ORG, peter@wemm.org, jake@locore.ca Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()andcopyout().Is copyout() MPSAFE on non-i386 archs? ) References: <20020218182727.C5246-100000@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > > .4nsec * 22,000 transactions/sec * 5 timestamps/transaction > > = 440us/sec spent on time stamps. > > This is not long :-), but 440 msec is. > > > Up that to 2uS and... = 220ms/sec on time stamps = ~1/4 of > > all available time spent on time stamps. In practice, the number was closer to 8-10% of time burnt on the extra protection domain crossings. YMMV, depending on the hardware you end up using, but 10% was low hanging fruit, and so worth winning back. The 25% cost for the 2uS number is probably important to people running blatantly low end hardware, which is is why I calculated it from there (well, that, and the overhead I actually had was not in the set of numbers presented by other people for use in calculations ;^)). I guess if we could all afford to have $800 ServerWorks motherboards sontributing to our COGS for our products, this would be a better world... 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message