From owner-freebsd-virtualization@freebsd.org Mon Aug 15 02:09:41 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 99C32BB8B59 for ; Mon, 15 Aug 2016 02:09:41 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id 223921A7E for ; Mon, 15 Aug 2016 02:09:40 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-4-72.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.4.72]) by ipmail07.adl2.internode.on.net with ESMTP; 15 Aug 2016 11:36:57 +0930 Subject: Re: bhyve use 100% CPU, but guest are idle. clock issue? To: =?UTF-8?B?0JLRj9GH0LXRgdC70LDQsg==?= , freebsd-virtualization@freebsd.org References: <1471176914.467716812@f126.i.mail.ru> From: Shane Ambler Message-ID: <57B123BE.1090804@ShaneWare.Biz> Date: Mon, 15 Aug 2016 11:36:54 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <1471176914.467716812@f126.i.mail.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 02:09:41 -0000 On 14/08/2016 21:45, Вячеслав via freebsd-virtualization wrote: > Hi all. > > I have FreeBSDÂ 10.3-RELEASE-p4 amd64 as host and FreeBSDÂ > 10.3-RELEASE-p4 amd64 as guest with one CPU core. > > 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. > > 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. > > When I stopped pvpgn, I can see 100% idle in guest and around 1% > usage by bhyve in host. 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. From 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. -- FreeBSD - the place to B...Software Developing Shane Ambler