Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* time(1) incorrect (Re) ... times(3) strange; clock_t == long
@ 1996-02-29  9:53 froy
  1996-02-29 14:43 ` Craig Groeschel
  1996-02-29 15:42 ` Erik Troan
  0 siblings, 2 replies; 6+ messages in thread
From: froy @ 1996-02-29  9:53 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
  1996-02-29  9:53 froy
@ 1996-02-29 14:43 ` Craig Groeschel
  1996-02-29 15:42 ` Erik Troan
  1 sibling, 0 replies; 6+ messages in thread
From: Craig Groeschel @ 1996-02-29 14:43 UTC (permalink / raw)


> 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

No, I don't think it was the units.  I think it was...

> 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

If you were to compile time(1) with "gcc -Wall" you would observe some
warnings about printf int/long mismatches.  Fixing those up in the time
program made it return proper numbers.

Speaking of the Byte benchmarks, I fixed the "write an long, read an int"
problem in the pipe-based context switch test and sent diffs to the
maintainer of the Linux Benchmark page.  The response I got was

> The code doesn't require a patch, BTW.  Thousands have ran the code.

Oh well.  My mistake I'm sure.

-- 
Craig E. Groeschel  <craig@metrolink.com>  Not speaking for my employer.
"Do not play this piece fast.  It is never right to play Ragtime fast." Joplin
linux$ /bin/pwd: can't load library '/lib/libc.2.2.2'

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
  1996-02-29  9:53 froy
  1996-02-29 14:43 ` Craig Groeschel
@ 1996-02-29 15:42 ` Erik Troan
  1 sibling, 0 replies; 6+ messages in thread
From: Erik Troan @ 1996-02-29 15:42 UTC (permalink / raw)


On Thu, 29 Feb 1996 froy@gr.osf.org wrote:

> 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' ?

That's easy - we don't want our time to run out in 2020 (or whenever 32 bit
time runs out, which isn't so far in the future I can't grasp it). Now 64
bit time -- that'll last about 100 billion more years. That's more time then
I can easily comprehend, and I don't care a whit about what happens to the
world when it runs out (as the sun would have exploded about 95 billion
years earlier, give or take).

I don't think Linux will last quite that long.

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
       [not found] <Pine.LNX.3.91.960229104046.22036A-100000@redhat.com>
@ 1996-02-29 16:41 ` Richard Henderson
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Henderson @ 1996-02-29 16:41 UTC (permalink / raw)


Erik Troan wrote:
> That's easy - we don't want our time to run out in 2020 (or whenever 32 bit
> time runs out, which isn't so far in the future I can't grasp it).

Actually, 31-bit time -- too many old programs using int's 
instead of unsigned's.  AFWIW, "Tue Jan 19 03:14:07 2038 GMT".  :-)
32-bit time would last another 68 years until 2106, approx.

r~

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
@ 1996-03-04 22:43 David Mosberger-Tang
  0 siblings, 0 replies; 6+ messages in thread
From: David Mosberger-Tang @ 1996-03-04 22:43 UTC (permalink / raw)


>>>>> On Thu, 29 Feb 96 16:57:41 +0100, "Fred Roy" <froy@gr.osf.org> said:

  Fred> P.S.: could somebody compile it on a recent RedHat AXP Linux
  Fred> and tell me if it behaves the same way ? Thanks a lot.

It has the same (erroneous) behavior.  I ran across this while working
on GNU libc and it's fixed in my sources now, but I was hoping on not
having to do another libc-4.6.27-based release.  If you can't wait to
have this fixed, let me know and I'll see about it.

	--david

PS: All it should take is to replace libc/sysdeps/linux/alpha/times.c
with times.S containing the following lines (and updating the
Makefile).

#include <sysdep.h>

SYSCALL__ (times, 1)
	RETSYS(__times)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
@ 1996-03-04 23:48 Kendall Clark
  0 siblings, 0 replies; 6+ messages in thread
From: Kendall Clark @ 1996-03-04 23:48 UTC (permalink / raw)


In case anyone is interested in other sources for Alpha motherboards and
systems, I am forwarding this message to axp-list.

>    Thank you for your interest in Microway.  We sell the Microway Screamer
>    Alpha motherboard alone or configured in a system.  The prices for the
>    motherboard alone are as follows:
>
>
>        266 mhz 21164 that will run NT , LINUX..................  $4995
>
>        300 mhz 21164 that will run NT , LINUX .................  $5595
>        
>        333 mhz 21164 that will run NT , LINUX .................   CALL
>
>        300 mhz 21164 that will run NT, DEC UNIX and LINUX .....  $8800
>
>        333 mhz 21164 that will run NT, DEC UNIX and LINUX .....   CALL
>
>        (INCLUDES 2 MEGS OF CACHE)
>
>    Systems are $8995, $9,995, and $12,500 for the above motherboards
>    where prices are quoted. For systems featuring the 333 mhz chip, please
>    call.
>
>
>    BASE SYSTEMS INCLUDE:
>
>        Microway Screamer Motherboard
>
>        Full-Size Server Tower TL17
>
>        PS/2 400 Watt Power Supply
>
>        2 MB 10 NS CACHE
>
>        32 MB DRAM, Upgradable to 512 MB
>
>        FAST SCSI PCI Controller
>
>        1GB FAST SCSI-2 Drive
>
>        Plextor 6X Internal CD-ROM (SCSI)
>
>        # 9 GXE64 PCI 2MB
>
>        3.5" 1.44 MB Floppy
>
>        2 Serial, I Parallel Port
>
>        101 Enhanced PS/2 Keyboard
>
>        PS/2 Mouse
>
>    We also have NDP Fortran, C/C++, and Pascal compilers for Alpha hardware
>    running NT, DEC UNIX, or LINUX.
>
>    For comparison, the closest DEC system would be the DEC WORKSTATION 600.
>    It is a single 21164 processor running at 300 mhz on the same motherboard
>    design.  Microway's systems offer excellent technical support and
>    custom systems at substantial savings.
>
>    The "NT" designation on the processor indicates that the chip supports
>    the NT and the LINUX operating systems.  For DEC UNIX support, you would
>    need to purchase the more expensive processor that does not have the
>    "NT" designation.  This is DEC's way of marketing the chip for NT usage.
>    The processors are otherwise functionally equivalent.
>
>    Please let me know if you have further questions.  I will be glad to help
>    you.  If you would like to receive more information or a quote on
>    Microway's custom Alpha or Pentium systems please send me your fax number
>    or postal mailing address.
>
>    Sincerely,
>
>    Mike Browne
>    Sales Representative
>    mike@microway.com
>    Phone: (508) 746-7341
>    FAX:   (508) 746-4678

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-03-04 23:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-04 22:43 time(1) incorrect (Re) ... times(3) strange; clock_t == long David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-03-04 23:48 Kendall Clark
     [not found] <Pine.LNX.3.91.960229104046.22036A-100000@redhat.com>
1996-02-29 16:41 ` Richard Henderson
1996-02-29  9:53 froy
1996-02-29 14:43 ` Craig Groeschel
1996-02-29 15:42 ` Erik Troan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox