From owner-freebsd-virtualization@FreeBSD.ORG Mon Aug 11 15:36:40 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D49F96B9 for ; Mon, 11 Aug 2014 15:36:40 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 975DB290C for ; Mon, 11 Aug 2014 15:36:40 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 5E4D1124E8; Tue, 12 Aug 2014 01:36:33 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BXP61456 (AUTH peterg@ptree32.com.au); Tue, 12 Aug 2014 01:36:32 +1000 Message-ID: <53E8E2F8.4090603@freebsd.org> Date: Mon, 11 Aug 2014 08:36:24 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Jordan Starcher Subject: Re: Shared CPU in Bhyve References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18 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, 11 Aug 2014 15:36:40 -0000 Hi Jordan, > As I understand, one of the great features of bhyve is the ability to have > completely isolated resources where a guest OS can only consume N number of > CPUs. However, I only have 4 CPUs on my machine and would like to use bhyve > to create a Linux guest on my FreeBSD host. I don't want to dedicate an > entire CPU to the bhyve guest. Is it possible to limit the CPU execution of > a bhyve guest, or better yet, change the CPU priority so if other processes > on the host machine need the CPU they can have it? Is it as simple as > changing the niceness of the bhyve process? Yes, that should work. bhyve also has idle detection, so it should only use as much CPU as the guest is using. For instance, an idle guest uses almost no host CPU. later, Peter.