From owner-cvs-all Fri Aug 16 7: 6:38 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57CE037B400; Fri, 16 Aug 2002 07:06:35 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A7043E3B; Fri, 16 Aug 2002 07:06:34 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id OAA12030; Fri, 16 Aug 2002 14:06:17 GMT Date: Sat, 17 Aug 2002 00:13:23 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Poul-Henning Kamp Cc: David Greenman-Lawrence , Alfred Perlstein , , Subject: Re: cvs commit: src/sys/kern uipc_socket2.c In-Reply-To: <8515.1029480600@critter.freebsd.dk> Message-ID: <20020816235317.I7073-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 16 Aug 2002, Poul-Henning Kamp wrote: > In message <20020815223211.F42978@nexus.root.com>, David Greenman-Lawrence writ > > Calcru() is a tough critter - it would be real nice if Bruce (or anyone) > >could give me some thoughts on that. See another reply. > We may have arrived at the point where it is cheaper to timestamp at all > boundary conditions instead of doing statistical redistribution. Not unless a very raw timestamp method were used. Using nanotime() would add a 10(?)% overhead to some syscalls even if the hardware part took no time. Something using rdtsc() in syscall() might be fast enough, but this would give similar problems for scaling of very large counts (cycle counts instead of tick counts). (nanotime() avoids these problems by scaling delta-counts, but that is inefficient if it is called often.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message