From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 10 18:07:25 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 2551375E for ; Fri, 10 Apr 2015 18:07:25 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id EF34DDA7 for ; Fri, 10 Apr 2015 18:07:24 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 6BBBCA1185 for ; Fri, 10 Apr 2015 18:07:18 +0000 (UTC) Message-ID: <5528115B.7060509@freebsd.org> Date: Fri, 10 Apr 2015 14:07:23 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: bhyve clock problem, solved by kern.timecounter.hardware="TSC-low" in /etc/sysctl.conf References: <552809F4.6070206@redbarn.org> <552810CE.7020502@redbarn.org> In-Reply-To: <552810CE.7020502@redbarn.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="don8dOrT8WfC5bAnsStggNXeqXN5ApsXS" 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 18:07:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --don8dOrT8WfC5bAnsStggNXeqXN5ApsXS Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-04-10 14:05, Paul Vixie wrote: >=20 >=20 > Stephen Stuart wrote: >> I think the right thing is to set (in /boot/loader.conf) >> kern.timecounter.tc.TSC-low.quality to a value higher than that for >> HPET, to force the clock choice over what the kernel decides for the >> hardware that you're running on. See timecounters(4). >=20 > if every bhyve guest ever is going to need this, then the interface > offered to the guest kernel ought to present the right set of defaults > to cause the right choice to be made, or the guest kernel must simply > "know better". in other words me adding something to /boot/loader.conf > or /etc/sysctl.conf in every single bhyve guest ever is an indication > that we're doing something wrong elsewhere. >=20 I think that was the suggestion, to change the login in timecounter(4) to detect bhyve (or all virtualization?) and change the quality values for the different times, so that the best one for the environment (virtualized, rather than physical) is selected automatically. Temporarily, as a workaround, /boot/loader.conf is better because it is applied sooner than /etc/sysctl.conf --=20 Allan Jude --don8dOrT8WfC5bAnsStggNXeqXN5ApsXS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJVKBFeAAoJEJrBFpNRJZKf8JcP/A17yfZk3bHA5OcbkDQW0CSP 6EEBxnvi4KPqX4fCo/9z8SSysN9YXECc6lJMN2Gn5pC+VWdiNQZnLvKzzH5emNk+ XWCuXplTv7Zr3CsPQXsZ4tdaxiqGtPW53vwoVhqyp6IINtY5inZnFnBOyMYN92oe exSUHR5woZJVBRnQ+8RS6z2Q3iprjipLLh4uEckTyUOUjHF2cQQVL+yhBPMepWq0 AAkl7O6icz2jmgnKTvSkdirqL98HF+XFwws/vI7bx5JpCTq2dxf1aq44OdI99rMq P4NIQMBwYy3+5uG9rtIjghGBQQV91EsowWK00qUus6V9S208/OACzIg1ufUgl8QT 8anj11LuwAsgaNwV55+ArVaryGitF8sGRtA5NKlnrorOEAprmvsXpM7GDL9CPyIK E3/F8rPYwRymwkSXc5VZdtl4eEm/8kl3S84dWSkBJ1FrZV8p1ncxdVEcvMFnzNBz 3RcoI0B1lXQ9txDru9hD3Y/W51j1IviN6V0K8xupjQoRp09B5d5+5iuJjWcTk1sK 0G05utWvy2YejC2nbJQgF5w6+CgIk5szBO6L1rbgRaooFHa9wp2Ait5emF5Cjz9E 7XpFkfcD+quCSOeXvLFg6htPeJpINv2k+p4rhiN6knODmo7nLDH0CnXrL5m4k1Ox ruwVCKsK3ErEvJe0gUfI =qudz -----END PGP SIGNATURE----- --don8dOrT8WfC5bAnsStggNXeqXN5ApsXS--