From owner-freebsd-virtualization@freebsd.org Mon Sep 7 12:42:10 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A519C9CCF8D for ; Mon, 7 Sep 2015 12:42:10 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 498821ED6 for ; Mon, 7 Sep 2015 12:42:10 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by wiclk2 with SMTP id lk2so82949101wic.1 for ; Mon, 07 Sep 2015 05:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9zVGKtTAzVzpX77ySsmXP13tJlFPqpGHXfkQ9hHyOUo=; b=jpajE+UysQaEVv9LSJlT0f7bSqfgIz7owmj0Ubzqa6E7IwJ7CQcZmYlVtgd4EpPNxl rNSrtAjuzVtRuZ+dTRWoUSho1UEP9sqRaJJhA7vpzVfTAItt8/+PreGcTsmyuu1RBQ05 f58ZLmFxBrURLNqXcvL61vlVb42kfHO/pn2VYVc1ct6etLtAzFCG8HX1ZHYgD7hEauD1 HVRwkaW2kqdNIY1Kp3kHj/HiP1RGPszUsB4iT+zf890MjjY2WBwR3Gso1/6GLkgnxaN0 C2RulTRIZ75x8lzDwq0e2nRSWmZASx9QO2XujJwpYbZNjFOAc1krx/uSuJ2LFPWTO+Xj Zicw== MIME-Version: 1.0 X-Received: by 10.194.92.166 with SMTP id cn6mr35581139wjb.6.1441629728594; Mon, 07 Sep 2015 05:42:08 -0700 (PDT) Received: by 10.28.211.81 with HTTP; Mon, 7 Sep 2015 05:42:08 -0700 (PDT) Date: Mon, 7 Sep 2015 15:42:08 +0300 Message-ID: Subject: [bhyve] clock problem From: Vladimir Laskov To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 07 Sep 2015 12:42:10 -0000 I have a problem with Linux guest on BHyve host. Guest use io driver virtio-blk. ************************************************************************************** # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy # uname -a Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux # tail /var/log/kern.log Sep 6 22:06:59 kernel: [110375.060025] hrtimer: interrupt took 295444 ns # tail /var/log/ntpd.log 5 Sep 04:00:53 ntpd[8041]: frequency error -589 PPM exceeds tolerance 500 PPM 6 Sep 07:27:46 ntpd[5723]: 0.0.0.0 c016 06 restart 6 Sep 07:27:46 ntpd[5723]: 0.0.0.0 c012 02 freq_set ntpd -500.000 PPM 6 Sep 07:27:53 ntpd[5723]: 0.0.0.0 c615 05 clock_sync 6 Sep 07:50:01 ntpd[5723]: frequency error -500 PPM exceeds tolerance 500 PPM # cat /var/lib/ntp/ntp.drift -500.000 # cat /sys/devices/system/clocksource/clocksource0/current_clocksource tsc ************************************************************************************** on host # sysctl kern.timecounter.hardware kern.timecounter.hardware: TSC-low # ntpdate -q pool.ntp.org server 46.254.216.12, stratum 2, offset 0.023543, delay 0.02783 server 31.135.95.60, stratum 2, offset 0.023552, delay 0.02791 server 85.21.78.23, stratum 2, offset 0.045319, delay 0.07175 server 93.180.54.115, stratum 2, offset 0.022923, delay 0.02832 7 Sep 15:27:43 ntpdate[10554]: adjust time server 46.254.216.12 offset 0.023543 sec # cat /var/db/ntpd.drift 0.932 ************************************************************************************** please help -- Vladimir Laskov