Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2016 16:41:18 +0300
From:      =?koi8-r?B?99HexdPMwdc=?= <terehovv@mail.ru>
To:        freebsd-virtualization@freebsd.org
Subject:   Re[2]: bhyve use 100% CPU, but guest are idle. clock issue?
Message-ID:  <D0D2A6A3-63A8-4007-A145-E0646C88E43A@mail.ru>
In-Reply-To: <57B123BE.1090804@ShaneWare.Biz>
References:  <1471176914.467716812@f126.i.mail.ru> <57B123BE.1090804@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
> Shane Ambler <FreeBSD@ShaneWare.Biz>:
>=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D0D2A6A3-63A8-4007-A145-E0646C88E43A>