From owner-freebsd-current@freebsd.org Wed Jun 27 16:36:50 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02C05102BF7C for ; Wed, 27 Jun 2018 16:36:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99521850A8; Wed, 27 Jun 2018 16:36:49 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (static-71-168-218-4.cmdnnj.fios.verizon.net [71.168.218.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 6FB601EC1F; Wed, 27 Jun 2018 16:36:49 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: TSC calibration in virtual machines To: Andriy Gapon , FreeBSD Current References: <8ac353c5-d188-f432-aab1-86f4ca5fd295@FreeBSD.org> From: Jung-uk Kim Openpgp: preference=signencrypt Autocrypt: addr=jkim@FreeBSD.org; prefer-encrypt=mutual; keydata= xsBNBFJBztUBCAChqNyGqmFuNo0U7MBzsD+q/G6Cv0l7LGVrOAsgh34M8wIWhD+tztDWMVfn AhxNDd0ceCj2bYOe67sTQxAScEcbt2FfvPOLp9MEXb9qohZj172Gwkk7dnhOhZZKhVGVZKM4 NcsuBDUzgf4f3Vdzj4wg6WlqplnTZo8lPE4hZWvZHoFIyunPTJWenybeV1xnxK7JkUdSvQR0 fA59RfTTECMwTrSEfYGUnxIDBraxJ7Ecs/0hGQ7sljIj8WBvlRDU5fU1xfF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y5kUsnCmBUEBJkE2ciSQk01aB/1o62 Q3Gk/F6BwtNY9OXiqF7AcAo+K/BMIaqb26QKeh+IIgK1NN9dQiq3ByTbl4zpGZa6MmsnnRTu mzGKt2nkz7vBzH6+hZp1OzGZikgjjhYWVFoJo1dvf/rv4obs0ZJEqFPQs/1Qa1dbkKBv6odB XJpPH0ssOluTY24d1XxTiKTwmWvHeQkOKRAIfD7VTtF4TesoZYkf7hsh3e3VwXhptSLFnEOi WwYofg== Message-ID: <4d7957f6-9497-19ff-4dbb-436bb6b05a56@FreeBSD.org> Date: Wed, 27 Jun 2018 12:36:42 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <8ac353c5-d188-f432-aab1-86f4ca5fd295@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i3db1n5AU0SP87SkKIjI4GhC9VJU1zR7S" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 16:36:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --i3db1n5AU0SP87SkKIjI4GhC9VJU1zR7S Content-Type: multipart/mixed; boundary="DE1LZOkh9kxFql1fzPsgzKkQJkdJC3Vej"; protected-headers="v1" From: Jung-uk Kim To: Andriy Gapon , FreeBSD Current Message-ID: <4d7957f6-9497-19ff-4dbb-436bb6b05a56@FreeBSD.org> Subject: Re: TSC calibration in virtual machines References: <8ac353c5-d188-f432-aab1-86f4ca5fd295@FreeBSD.org> In-Reply-To: <8ac353c5-d188-f432-aab1-86f4ca5fd295@FreeBSD.org> --DE1LZOkh9kxFql1fzPsgzKkQJkdJC3Vej Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06/27/2018 03:14, Andriy Gapon wrote: >=20 > It seems that TSC calibration in virtual machines sometimes can do more= harm > than good. Should we default to trusting the information provided by a= hypervisor? >=20 > Specifically, I am observing a problem on GCE instances where calibrate= d TSC > frequency is about 10% lower than advertised frequency. And apparently= the > advertised frequency is the right one. >=20 > I found this thread with similar reports and a variety of workarounds f= rom > administratively disabling the calibration to switching to a different = timecounter: > https://lists.freebsd.org/pipermail/freebsd-cloud/2017-January/000080.h= tml We already do that for VMware hosts since r221214. https://svnweb.freebsd.org/changeset/base/221214 We should do the same for each hypervisor. Jung-uk Kim --DE1LZOkh9kxFql1fzPsgzKkQJkdJC3Vej-- --i3db1n5AU0SP87SkKIjI4GhC9VJU1zR7S Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlszvSAACgkQfJ+WJvzb 8UYU2Af+Ou3jz23pGMgvsQ4gUbdS2znHEvu7mD/z70iyKwg8+MHivYR7dw06yLzn VKPHsttg/TyJFcRqi60U1kIMzJkdbngiQ65bxwzm/TCAeLIbFWaxga/tYwfBvroP 9pTBq1G7wghktAXYpDWRVlNeKdrLx595auOTU/BRiLlV72q8aU7SxnqZkNACmvna rff3USaZa8OVWo/YfFLH2PdZlT5+rpgkP1b4gR/wWoZLjQy87Ko+dNrMTrqNKe9T 3SyHj3tJJsUs/X1Zi9YMD2C7s7AdTXKLJ1RuL4bN1TkF4v3pUltO5ZjK45Sm/pvH KLJ6ySjth5xhW06RNqMiQgPQu75veQ== =oUJ2 -----END PGP SIGNATURE----- --i3db1n5AU0SP87SkKIjI4GhC9VJU1zR7S--