From owner-cvs-all Fri Aug 16 7:29:45 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 B4CD137B400; Fri, 16 Aug 2002 07:29:41 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E493143E75; Fri, 16 Aug 2002 07:29:40 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g7GEQRRo014229; Fri, 16 Aug 2002 16:26:29 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Bruce Evans Cc: David Greenman-Lawrence , Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_socket2.c In-Reply-To: Your message of "Sat, 17 Aug 2002 00:13:23 +1000." <20020816235317.I7073-100000@gamplex.bde.org> Date: Fri, 16 Aug 2002 16:26:27 +0200 Message-ID: <14228.1029507987@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message <20020816235317.I7073-100000@gamplex.bde.org>, Bruce Evans writes: >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 The scaling issue could possibly be dealt with using a periodic (1 Hz) function which does the scaling and accumulation in timeval format. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message