Corrected gettimeofday() test code

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Nov 29 16:02:50 PST 2003


In message <20031129192903.U99096 at ganymede.hub.org>, "Marc G. Fournier" writes:
>On Sat, 29 Nov 2003, Don Bowman wrote:
>
>> For this config (below), kern.timecounter.method=0 reproduces the
>> problem, kern.timecounter.method=1 does not.
>
>Can anyone comment on what effect setting method to 1 has on the system?
>Like, would one notice a degradation in performance?

Setting it to 1 forces the timecounter to update every HZ.

You can say that 0 was an optimization which it seems may not be
safe on certain hardware combinations...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-stable mailing list