Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 09:57:16 -0600
From:      Larry Rosenman <ler@lerctr.org>
To:        Maxim Khitrov <max@mxcrypt.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Lousy timekeeping in VirtualBox 4.0.14
Message-ID:  <4EEB6A5C.90004@lerctr.org>
In-Reply-To: <CAJcQMWeF12JKqcJtRiEHtrGMyg5WGsKoMOJeb9qt7JTsMVwwqQ@mail.gmail.com>
References:  <4EE9014F.7010300@lerctr.org> <4EEA5461.4080107@lerctr.org> <CAJcQMWeF12JKqcJtRiEHtrGMyg5WGsKoMOJeb9qt7JTsMVwwqQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/16/2011 9:54 AM, Maxim Khitrov wrote:
> On Thu, Dec 15, 2011 at 3:11 PM, Larry Rosenman <ler@lerctr.org>
> wrote:
>> I've set up VirtualBox 4.0.14 on my FreeBSD 10.0-CURRENT
>> (r228498) box, and have a FreeBSD 10.0-CURRENT VM running
>> underneath it.
>> 
>> While the VM is running, it doesn't keep time worth a flip.
>> 
>> This is even with the VirtualBox-Additions in it.
>> 
>> 1) is this expected/known? 2) What can we do to fix it?
>> 
>> What diagnostics do you need?
>> 
>> I *CAN* provide ssh access to both the host and the guest.
> 
> Did you try setting 'kern.hz=64' (or 100) in /boot/loader.conf for
> the guest?
> 
> AFAIK, most clock issues in virtual machines have to do with
> missed interrupts, so reduce Kernel's timer frequency.
> 
> - Max
There is code in 10.0 to set it to 100, and that's what my guest is
running.   It seems to be when the host and the guest are all running
full out, that the clock gets WAY off.

I'm wondering if this is related to the sched_ule discussion.


- -- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO62pcAAoJENC8dtAvA1zmdh0H/jUZ4yRWLvvnt0Y6v8fI4X3t
DgpE1gaK7s4JlqcUz1/GBQIraethSAxWidV39bggmVVl7Bj+8w0ZxwUOe+qWVLub
YCKmWF60XnL/lsszDC9ej/K17hW8OTKVgdcZeepgoPIvr2wRB0gHU5O6NA95R3TO
eKBjtE36gXTVTmK2gn/gKYtypOUSGkMi6RKaeiRKqZ/XLpYmSiUuwkkTcnZrhtuG
3BplWeJ/ltRIXuDuqaLmI73ssJWrmfHBKVFh4JE2XSe+R61dD/zKCKhBdxm6Ok2Z
3a9KNj7RgRPumOkv0ONF3vDumeoxOTrpIkebzYq4FCKyVyNnLf5E6tA+BMiFjiE=
=bY5A
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EEB6A5C.90004>