comp.lang.ada
 help / color / mirror / Atom feed
From: dccoote@werple.mira.net.au (David Coote)
Subject: Timing Ada programs using the DEC UNIX microtimer kernel option
Date: 1998/04/25
Date: 1998-04-25T00:00:00+00:00	[thread overview]
Message-ID: <6hsab5$rh1$1@eplet.mira.net.au> (raw)


I got all excited when I found out about the microtimer kernel option. Timing 
measurements we did with this option installed did seem to indicate improved 
resolution. Interestingly enough, the measured overhead of various POSIX 
timing calls seemed to improve. (Judging from how long the call took using 
other timing probes.)

But I'm not sure how this kernel option works. DEC USA support and what 
documentation exists tells me that you have a tick of 1024Hz on an AS500 and 
1200Hz on an AS4100. With the microtimer kernel option installed (quoting 
from a DEC support email)

"As for micro-timer resolution - the clock resolution remains the same - 
1/1024; however, any call to clock_gettime(3) is guaranteed to be 
monotonically increasing with a granularity of 1 microsecond. (i.e. the clock 
is still ticking at 1/1024, but clock_gettime(3) calls return values that are 
unique and APPEAR [DEC's emphasis] to have 1 microsecond resolution. This is 
useful for critical timestamping.)"

Well, how do they do this monotonic increase? If the appropriate parts of the 
kernel are getting tickled every 1024Hz, how is the kernel returning finer 
resolution between ticks?

Anyone know anything about this?

David





             reply	other threads:[~1998-04-25  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-25  0:00 David Coote [this message]
1998-04-25  0:00 ` Timing Ada programs using the DEC UNIX microtimer kernel option Joe Gwinn
1998-04-26  0:00   ` Jonathan Stone
1998-04-26  0:00     ` David Coote
1998-04-28  0:00     ` Jeffrey Mogul
1998-04-27  0:00 ` Juan Zamorano Flores
1998-05-01  0:00   ` Short DOSish note (was Re: Timing Ada programs using the DEC UNIX microtimer kernel option) John M. Mills
1998-05-01  0:00     ` Jerry van Dijk
replies disabled

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