From owner-freebsd-virtualization@freebsd.org Mon Aug 15 14:20:50 2016 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 E02FDBBB791 for ; Mon, 15 Aug 2016 14:20:50 +0000 (UTC) (envelope-from terehovv@mail.ru) Received: from fallback1.mail.ru (fallback1.mail.ru [94.100.181.184]) by mx1.freebsd.org (Postfix) with ESMTP id 50A411951 for ; Mon, 15 Aug 2016 14:20:49 +0000 (UTC) (envelope-from terehovv@mail.ru) Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) by fallback1.mail.ru (mPOP.Fallback_MX) with ESMTP id EE33A7E1C1CD for ; Mon, 15 Aug 2016 16:41:29 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Type:Content-Transfer-Encoding:Mime-Version:To:References:In-Reply-To:From:Date:Subject:Message-Id; bh=Hgw3iBKb9+bN+MrHMkNF4p3vw1B/PwnsLCZpgp4fGcI=; b=sbGQFa8RCOAZ38g9CVSaZONtNGRBYM3d1zmVKkEPlcCdOYMzcrZeZqfshS7hiyCxVadb/lyWDkQerLoixf1qrZlHnC4G/X7ticdlMIySU9UEudb7LQX/asFTJ6Y0uGKXVxJpTYWt40nipc9/BrL+JOU1OUUuaTn4F5bfxK8UAoc=; Received: from [46.252.164.130] (port=55949 helo=[10.1.30.105]) by smtp32.i.mail.ru with esmtpa (envelope-from ) id 1bZI8m-0002SW-W4 for freebsd-virtualization@freebsd.org; Mon, 15 Aug 2016 16:41:21 +0300 Message-Id: Subject: Re[2]: bhyve use 100% CPU, but guest are idle. clock issue? X-Mailer: Mail.Ru Mailer 1.0 Date: Mon, 15 Aug 2016 16:41:18 +0300 X-Priority: 3 (Normal) From: =?koi8-r?B?99HexdPMwdc=?= Received: from [93.100.41.19] (ident=mail) by f417.i.mail.ru with local (envelope-from ) id 1bZEMG-0006RH-1T for terehovv@mail.ru; Mon, 15 Aug 2016 12:39:00 +0300 In-Reply-To: <57B123BE.1090804@ShaneWare.Biz> References: <1471176914.467716812@f126.i.mail.ru> <57B123BE.1090804@ShaneWare.Biz> To: freebsd-virtualization@freebsd.org Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Delivered-To: terehovv@mail.ru X-Originating-Ip: [93.100.41.19] X-Mailru-Sender: E066B21AB147F9B46989947FDCF0A3E9D319C0352EA4F9FFE1EA176A7185AB3F2B8D111435E761C54A43D3E7D3A7B3F6 X-Mras: OK X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 15 Aug 2016 14:20:51 -0000 > Shane Ambler : >=20 >> On 14/08/2016 21:45, =D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2 via= freebsd-virtualization wrote: >> Hi all. >>=20 >> I have FreeBSD=C3=82 10.3-RELEASE-p4 amd64 as host and FreeBSD=C3=82 >> 10.3-RELEASE-p4 amd64 as guest with one CPU core. >>=20 >> I'm install games/pvpgn in guest over pkg, rename all files in >> /usr/local/etc/pvpgn/ from *.conf-sample to *.conf and run service. >>=20 >> If I run top -SHIP under guest, I see 95% idle and 5% usage by >> 'intr{swi4: clock}'. In this time, top -SHIP on host show the 100% >> usage by bhyve. >>=20 >> When I stopped pvpgn, I can see 100% idle in guest and around 1% >> usage by bhyve in host. >=20 > Are you using the -H option? The bhyve related ports will add -H for > you but if you are starting them manually you may miss it. >=20 > =46rom man bhyve - > -H Yield the virtual CPU thread when a HLT instruction is > detected. If this option is not specified, virtual CPUs will > use 100% of a host CPU. >=20 >=20 > --=20 > FreeBSD - the place to B...Software Developing >=20 > Shane Ambler I'm using sysutils/vm-bhyve, not start bhyve manually. =46rom logs for this machine: bhyve options: -c 1 -m 1024M -AHP -U d55d45d4-46e1-11e6-85e6-1c6f65d8653a bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/dev/zvol/data2g/= vm/freebsd/disk0 -s 5:0,virtio-net,tap0,mac=3D58:9c:fc:0d:78:06 bhyve console: -l com1,/dev/nmdm0A --=20 Terekhov Vyacheslav