From owner-cvs-all Fri Aug 16 11:18:54 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 C3B9637B400; Fri, 16 Aug 2002 11:18:48 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF8043E4A; Fri, 16 Aug 2002 11:18:47 -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 SAA29170; Fri, 16 Aug 2002 18:18:30 GMT Date: Sat, 17 Aug 2002 04:25:44 +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: <14228.1029507987@critter.freebsd.dk> Message-ID: <20020817041512.K8159-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 <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. I guess doing that for all processes would be not much worse than schedcpu() (schedcpu() would be a good place to do it). Is schedcpu() ever too inefficient with any actual number of processes on current machines? Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message