From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 10 17:35:57 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6821B36 for ; Fri, 10 Apr 2015 17:35:57 +0000 (UTC) Received: from family.redbarn.org (family.redbarn.org [IPv6:2001:559:8000:cd::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D07399EE for ; Fri, 10 Apr 2015 17:35:57 +0000 (UTC) Received: from [IPv6:2001:559:8000:cb:447:ba78:32f4:47fd] (unknown [IPv6:2001:559:8000:cb:447:ba78:32f4:47fd]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 1452B18149 for ; Fri, 10 Apr 2015 17:35:50 +0000 (UTC) Message-ID: <552809F4.6070206@redbarn.org> Date: Fri, 10 Apr 2015 10:35:48 -0700 From: Paul Vixie User-Agent: Postbox 3.0.11 (Windows/20140602) MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: bhyve clock problem, solved by kern.timecounter.hardware="TSC-low" in /etc/sysctl.conf X-Enigmail-Version: 1.2.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 17:35:58 -0000 here is a representative one-hour sample of ntp messages from /var/log/messages on a freebsd 10.1 bhyve guest: > Apr 10 12:00:46 family ntpd[634]: time reset -0.613057 s > Apr 10 12:17:02 family ntpd[634]: time reset -0.604933 s > Apr 10 12:33:51 family ntpd[634]: time reset -0.650622 s > Apr 10 12:55:06 family ntpd[634]: time reset -0.743930 s that's with kern.timecounter.hardware: HPET, which is the default. a "time reset" from ntpd means the clock either won't slew at all or can't slew fast enough. in other words a normal freebsd 10.1 server can run for months or even years without ever outputting one of these messages. google reports that some folks have had good luck with kern.timecounter.hardware: TSC-low. so i tried that on another freebsd 10.1 bhyve guest on the same bhyve server, with dramatic results -- no more ntpd messages. can we make TSC-low the default? vixie