From owner-freebsd-arch Sun Feb 17 23:12:16 2002 Delivered-To: freebsd-arch@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id B2C6D37B404; Sun, 17 Feb 2002 23:12:12 -0800 (PST) Received: from pool0305.cvx21-bradley.dialup.earthlink.net ([209.179.193.50] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16chy2-00028r-00; Sun, 17 Feb 2002 23:12:06 -0800 Message-ID: <3C70A93B.8E1D24E8@mindspring.com> Date: Sun, 17 Feb 2002 23:11:55 -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: Bruce Evans , 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: <20020218144148.F4583-100000@gamplex.bde.org> <200202180409.g1I49vj10455@apollo.backplane.com> 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 Matthew Dillon wrote: > Just a note: The gettimeofday() has an overhead of only 2-3 uS in > -current. Squid would have to be doing an aweful lot of transactions > for it to matter and even if it did, if that actually turned out to be the > bottleneck I'll eat my hat. And if I wind up eating my hat the next > thing I'll do is spend the necessary 5 seconds writing a little code > to make squid only call gettimeofday every 5th time. It was a lot of transactions... 22,000 HTTP 1.1 requests per second. Obviously, it wasn't squid code (8-)), but the logging requirement was the same because of the preexisiting squid log digest software, and the statistics gathering necessary to be comparable with competing products. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message