From owner-freebsd-arch Sun Feb 17 23:37:27 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 B104C37B404; Sun, 17 Feb 2002 23:37:23 -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 16ciMH-0007lt-00; Sun, 17 Feb 2002 23:37:10 -0800 Message-ID: <3C70AF1A.DC5BB938@mindspring.com> Date: Sun, 17 Feb 2002 23:36:58 -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: <20020218151249.E4728-100000@gamplex.bde.org> <3C70AB8B.96589869@mindspring.com> <200202180733.g1I7Xej12207@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: > :.4nsec * 22,000 transactions/sec * 5 timestamps/transaction > := 440us/sec spent on time stamps. > : > :Up that to 2uS and... = 220ms/sec on time stamps = ~1/4 of > :all available time spent on time stamps. > : > :[ ... other stuff not really applicable; can discuss why > : off list, if necessary ... ] > > This is a meaningless exercise if you don't take into account > everything the program in question is doing on a per transaction > basis. To say that a single 2uS system call takes 25% of available > resources also infers that all your other code requires only 6uS > per transaction of overhead, which means it doesn't do very much eh? Or that the overhead associated with what it does do is very low because the code was cluefully written. ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message