[bhyve] clock problem

Allan Jude allanjude at freebsd.org
Mon Sep 7 16:32:18 UTC 2015


On 2015-09-07 08:42, Vladimir Laskov wrote:
> I have a problem with Linux guest on  BHyve  host. Guest use io
> driver virtio-blk.
> 
> 
> **************************************************************************************
> # lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description: Debian GNU/Linux 7.8 (wheezy)
> Release: 7.8
> Codename: wheezy
> 
> # uname -a
> Linux   3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux
> 
> # tail /var/log/kern.log
> Sep  6 22:06:59  kernel: [110375.060025] hrtimer: interrupt took 295444 ns
> 
> # tail /var/log/ntpd.log
>  5 Sep 04:00:53 ntpd[8041]: frequency error -589 PPM exceeds tolerance 500
> PPM
> 
>  6 Sep 07:27:46 ntpd[5723]: 0.0.0.0 c016 06 restart
>  6 Sep 07:27:46 ntpd[5723]: 0.0.0.0 c012 02 freq_set ntpd -500.000 PPM
>  6 Sep 07:27:53 ntpd[5723]: 0.0.0.0 c615 05 clock_sync
>  6 Sep 07:50:01 ntpd[5723]: frequency error -500 PPM exceeds tolerance 500
> PPM
> 
> 
> # cat /var/lib/ntp/ntp.drift
> -500.000
> 
> # cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> tsc
> **************************************************************************************
> on host
> 
> # sysctl kern.timecounter.hardware
> kern.timecounter.hardware: TSC-low
> 
> # ntpdate -q pool.ntp.org
> server 46.254.216.12, stratum 2, offset 0.023543, delay 0.02783
> server 31.135.95.60, stratum 2, offset 0.023552, delay 0.02791
> server 85.21.78.23, stratum 2, offset 0.045319, delay 0.07175
> server 93.180.54.115, stratum 2, offset 0.022923, delay 0.02832
>  7 Sep 15:27:43 ntpdate[10554]: adjust time server 46.254.216.12 offset
> 0.023543 sec
> 
> # cat /var/db/ntpd.drift
> 0.932
> **************************************************************************************
> 
> 
> please help
> 
> 
> --
> Vladimir Laskov
> _______________________________________________
> freebsd-virtualization at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"
> 

What are your available options on the host hardware?

sysctl kern.timecounter.choice

Have you tried experimenting?

-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20150907/a04543e6/attachment.bin>


More information about the freebsd-virtualization mailing list