From owner-freebsd-ports@FreeBSD.ORG Fri Dec 16 17:56: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 45C5010656A9 for ; Fri, 16 Dec 2011 17:56:41 +0000 (UTC) (envelope-from llwang@llwang.org) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id DA3228FC13 for ; Fri, 16 Dec 2011 17:56:40 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so4517806vbb.13 for ; Fri, 16 Dec 2011 09:56:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.96.130 with SMTP id ds2mr7079272vdb.82.1324058199904; Fri, 16 Dec 2011 09:56:39 -0800 (PST) Sender: llwang@llwang.org Received: by 10.52.31.68 with HTTP; Fri, 16 Dec 2011 09:56:39 -0800 (PST) In-Reply-To: References: <4EE9014F.7010300@lerctr.org> <4EEA5461.4080107@lerctr.org> Date: Fri, 16 Dec 2011 11:56:39 -0600 X-Google-Sender-Auth: XGtRG50LEzgk6hWXX-bCKRGQdR4 Message-ID: From: "Li-Lun \"Leland\" Wang" To: Adam Vande More Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org, 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 17:56:41 -0000 On Fri, Dec 16, 2011 at 10:04 AM, Adam Vande More w= rote: > On Thu, Dec 15, 2011 at 2: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. > > =C2=A0There is a bunch of tuning you can do with Virtualbox to try and al= leviate > such issues: > > http://www.virtualbox.org/manual/ch09.html#idp13756960 > > However no combination has worked for me. =C2=A0The only stable config I'= ve been > able to find is to setup NTP on host and guest and keep vboxservice > running. =C2=A0Running vboxservice alone results in very erratic timekeep= ing and > the service core dumps every few days. =C2=A0Running NTP alone results in= the > difference going too high and out of NTP's allowable range. I don't remember where I saw it, but have you tried to set the kernel tunable kern.hz=3D50 in your guest FreeBSD? It made a huge difference to me. -- llwang