Subject: Re: microtime(9) slow on i386?
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Perry E. Metzger <perry@wasabisystems.com>
List: tech-perform
Date: 10/22/2001 17:15:28
Jaromir Dolecek <jdolecek@NetBSD.org> writes:
> Upon further investigation, it shows that microtime(9) on i386 uses
> port i/o, which is very slow on modern processors. Is there a way
> to improve this? This could help system overall, since microtime(9)
> is used quite often.

We can check the cycle timer, but the problem there is that we can
easily lose on a machine with a variable rate clock.

--
Perry E. Metzger		perry@wasabisystems.com
--
NetBSD Development, Support & CDs. http://www.wasabisystems.com/