From: froy@gr.osf.org <froy@gr.osf.org>
Subject: time(1) incorrect (Re) ... times(3) strange; clock_t == long
Date: Thu, 29 Feb 96 10:53:24 +0100 [thread overview]
Message-ID: <199602290957.EAA24888@postman.osf.org> (raw)
Erik> On Tue, 12 Dec 1995, Nigel Metheringham wrote:
> Imagine my suprise when I found that apparently the beast does
> infinite dhrystones per second.... some system!
Erik> We told you these Alpha's are fast!
> /usr/bin/time was returning 0 for sys and elapsed time under all
> circumstances - user time appeared OK.
> Recompiling (ie installing the SRPM and building it), fixed that.
> Presumably something in the kernel has changed???
> I am using a 1.3.46 kernel, built here.
Erik> I'm rebuilding it here as well. I'll make a new RPM available today
Erik> (time-1.6-3).
I replayed this time(1) story 2.5 months later, on my BLADE_0.3 platform.
I think it is [was] due to times(3) which uses [used] to return a
value in ~seconds, not in clock ticks unless redefining HZ to 1
(HZ is set to 1024 by <asm/param.h> for a "noname" board, & Digital Unix
uses the same setting).
Does anybody know how it has been fixed (e.g. by a change to the libraries,
to the system header files, to the kernel...) ?
I have also a question on clock_t: it's a `long' on BLADE_0.3 (<asm/types.h>)
but an `int' on Digital Unix (<sys/types.h>). While perhaps sometimes
hidden by the Alpha chip tolerant endianess, it should make a (small) hole in
binary compatibility of Linux/Alpha with Digital Unix. I'd like to
understand the advantage of preferring `long' to `int': is it because
Linux/Intel's clock_t is also `long' ?
Thanks a lot,
fred
next reply other threads:[~1996-02-29 9:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-29 9:53 froy [this message]
1996-02-29 14:43 ` time(1) incorrect (Re) ... times(3) strange; clock_t == long Craig Groeschel
1996-02-29 15:57 ` Fred Roy
1996-02-29 15:42 ` Erik Troan
[not found] <Pine.LNX.3.91.960229104046.22036A-100000@redhat.com>
1996-02-29 16:41 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1996-03-04 22:43 David Mosberger-Tang
1996-03-04 23:48 Kendall Clark
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox