Re: MSR

Philippe Strauss (philou@sicel-home-1-4.urbanet.ch)
Sat, 1 Mar 1997 16:04:21 +0100 (CET)


On Sat, 1 Mar 1997 mcculley@seminole.iag.net wrote:

>
> Is it possible for me to use the cycle counter MSR entirely from user
> space? I hack a simulation application that uses the cycle counter on

Yes. See ftp://sicel-home-1-4.urbanet.ch/pub/XSpectrum-1.1a/P5fftbench.c
for a working example.

> the SGI. The advantage to using the cycle counter is that it serves
> as a super fast, super accurate gettimeofday. This is important to my
> simulation. It would be nice if I could get the same kind of
> advantage on Linux/i386.
>
> FYI: Already, this application benchmarks better on a Pentium Pro 200
> than on a 195MHz r10000 SGI Indigo2. And the SGI has the unfair
> advantage of not having to byte swap a lot of network traffic and
> having a cycle counter.
>
> --
> Gene McCulley mcculley@iag.net http://www.iag.net/~mcculley
>

----
Philippe Strauss, Telecom engineer.
finger philou@sicel-home-1-4.urbanet.ch for PGP key

Email: <philippe.strauss@urbanet.ch>
Homepage: http://sicel-home-1-4.urbanet.ch

"There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence." -- Jeremy S. Anderson
----