Subject: Re: time runs at 1/5th speed
To: None <current-users@NetBSD.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 09/01/2006 09:00:07
Frank Kardel wrote:
> Martti Kuparinen wrote:
> 
>> Hi,
>>
>> Any ideas why the 4.0_BETA is so slow in time related things inside 
>> VMware? Maybe GCC 4 related?
>>
>> -----8<-----
>>
>> Martti Kuparinen:
>>
>>> xxx wrote:
>>> > With NetBSD 4 daily snapshot 20060824 on 
>>> VMware-workstation-5.5.0-18463
>>> > on Fedora Core 4 on Thinkpad T23, time runs at 1/5th of the normal
>>> > speed.  The good news is that the "sleep 1" delay and the "date"
>>> > output are consistent.
>>>
>>> That's weird.
>>>
>>> Could you install NetBSD 3.x inside VMware and see if you get same 
>>> results?
>>
> For i386, amd64, sparc, sparc64 and prep the time keeping code has been 
> changed to
> FreeBSD's timecounters. Could you send me the /var/run/dmesg.boot file 
> and the output
> of "sysctl kern.timecounter" ? There might be something different 
> depending on which
> counter is picked and what counter frequency is assumed.
> 
>> ,
>> I already had one lying around from eatly January this year.
>>
>> NetBSD 3.0 runs just fine inside VMware 3.

What about this kernel config option and/or switching your timecounter?

#options NO_TSC_TIME	# Don't use TSC microtime, even if available.
			# Improves time behavior under VMware.