From owner-freebsd-hackers Thu Jun 25 07:24:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA15041 for freebsd-hackers-outgoing; Thu, 25 Jun 1998 07:24:26 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA15029 for ; Thu, 25 Jun 1998 07:24:20 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id QAA18466; Thu, 25 Jun 1998 16:19:51 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id JAA00732; Thu, 25 Jun 1998 09:11:28 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199806250711.JAA00732@semyam.dinoco.de> To: Greg Lehey cc: FreeBSD Hackers , seggers@semyam.dinoco.de Subject: Re: FreeBSD faster than light? In-reply-to: Your message of "Wed, 24 Jun 1998 16:50:18 +0930." <19980624165018.H5023@freebie.lemis.com> Date: Thu, 25 Jun 1998 09:11:28 +0200 From: Stefan Eggers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Can anybody explain why I'm using up a total of about 1.5 seconds of > CPU time in the following examples? This is a single CPU machine (AMD I have an even more interesting result I think. > === grog@freebie (/dev/ttyp1) ~ 9 -> time l -rt Mail|wc > 3460 31133 192864 > > real 0m0.517s > user 0m1.230s > sys 0m0.270s I tried this: ---------------------------------------------------------------------- /usr/home/seggers 538$ time ls -lLtr Mail|wc 44 389 2588 real 0m0.060s user 0m0.026s sys 0m0.016s /usr/home/seggers 539$ time ls -lLtr Mail|wc 44 389 2588 real 0m0.060s user 0m1.007s sys 0m0.035s ---------------------------------------------------------------------- I am using bash 2.0.x on FreeBSD 2.2-stable from last weekend for this. It can't even decide how long it wants to take! As I thought it might be an effect of running multi user with alot of daemons I did it again single user and the result was the same. I found no pattern in it. Funny. I now can't get it to take long again. And once it used no user time at all. The latter at least one can explain. Some time inaccuracy due to rounding somewhere. But what in hades causes the additional second? Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message