Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 1998 13:58:47 +0200 (MET DST)
From:      Cejka Rudolf <xcejka00@dcse.fee.vutbr.cz>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: FreeBSD faster than light?
Message-ID:  <199806251158.LAA24105@sts.dcse.fee.vutbr.cz>

next in thread | raw e-mail | index | archive | help

Greg Lehey writes:
> 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
> K6/233) running -CURRENT as of the end of last month.  The figures
> seem surprisingly consistent.
> 
> === grog@freebie (/dev/ttyp1) ~ 9 -> time l -rt Mail|wc
>     3460   31133  192864
> 
> real    0m0.517s
> user    0m1.230s
> sys     0m0.270s

Hmm. It looks like as bash and its bug (I think). Internal command
"time" in bash gives bad results (typically: user + sys > real).
I even saw "user    0m:.230s" or so (with colon :-((((((((((().
Use "/usr/bin/time" instead - it gives better results...

It is not problem on FreeBSD - I saw it on Linux too.

Hey, I wrote bug report to bash developers after 2.0.1 release.
But till now - no reply, no change. Send bug report to them too and wait...
Or try to find bug (?).

Good luck!

(Grr. In "unzip -X ..." is bug too - do you know about this? :-) I have
patch, but zip developers are the same as bash developers... Grr.)

--------------------------------------------------------------------------
Rudolf Cejka                            E-mail: xcejka00@dcse.fee.vutbr.cz
Technical University of Brno, Faculty of El. Engineering and Comp. Science
Bozetechova 2, 612 66 Brno, Czech Republic

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806251158.LAA24105>