From owner-freebsd-ports@FreeBSD.ORG Fri Dec 16 15:57:41 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B9FA106567A for ; Fri, 16 Dec 2011 15:57:41 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (lrosenman-1-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:3ad::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2CEF48FC1B for ; Fri, 16 Dec 2011 15:57:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=xJ3//b4Pvwj2YDkv4rRb07ptmbCz/unzi1m4+z6ce8Q=; b=Eix153WyQDeq0tWC2R477JoGFNrd8DEFlGRFtg7sDQTIpr7USB8O1poFWEvVooFT3d5E6S3RguM6gywMxApxhgRAdmnfmao/jhfs64O6uAo50GgMyEOCvXOgSvH0K+pZO2ZgMzjP/PyBU5ZMegZ6+HmMs8yMMB8dt7RcNExpwes=; Received: from [32.97.110.60] (port=8406 helo=[9.41.58.142]) by thebighonker.lerctr.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RbaAC-0007OO-8X; Fri, 16 Dec 2011 09:57:40 -0600 Message-ID: <4EEB6A5C.90004@lerctr.org> Date: Fri, 16 Dec 2011 09:57:16 -0600 From: Larry Rosenman Organization: LERCTR Consulting User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Maxim Khitrov References: <4EE9014F.7010300@lerctr.org> <4EEA5461.4080107@lerctr.org> In-Reply-To: X-Enigmail-Version: 1.3.4 OpenPGP: id=2F035CE6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-LERCTR-Spam-Score: 0.5 (/) X-Spam-Report: SpamScore (0.5/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, FM_MULTI_ODD2=1.1, FM_MULTI_ODD3=0.7, FM_MULTI_ODD4=0.7, FM_MULTI_ODD5=0.9 X-LERCTR-Spam-Report: SpamScore (0.5/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, FM_MULTI_ODD2=1.1, FM_MULTI_ODD3=0.7, FM_MULTI_ODD4=0.7, FM_MULTI_ODD5=0.9 Cc: freebsd-ports@freebsd.org Subject: Re: Lousy timekeeping in VirtualBox 4.0.14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 15:57:41 -0000 -----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 > 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-----