From owner-freebsd-ports@FreeBSD.ORG Fri Dec 16 16:25:35 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 43E15106564A for ; Fri, 16 Dec 2011 16:25:35 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 048748FC08 for ; Fri, 16 Dec 2011 16:25:34 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so4382285vbb.13 for ; Fri, 16 Dec 2011 08:25:34 -0800 (PST) Received: by 10.52.21.83 with SMTP id t19mr6281340vde.71.1324050871252; Fri, 16 Dec 2011 07:54:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.150.132 with HTTP; Fri, 16 Dec 2011 07:54:00 -0800 (PST) In-Reply-To: <4EEA5461.4080107@lerctr.org> References: <4EE9014F.7010300@lerctr.org> <4EEA5461.4080107@lerctr.org> From: Maxim Khitrov Date: Fri, 16 Dec 2011 10:54:00 -0500 Message-ID: To: Larry Rosenman Content-Type: text/plain; charset=UTF-8 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 16:25:35 -0000 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