From owner-freebsd-virtualization@FreeBSD.ORG Sat Apr 12 00:53:20 2014 Return-Path: Delivered-To: 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 43CEEDC7; Sat, 12 Apr 2014 00:53:20 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 0764412DF; Sat, 12 Apr 2014 00:53:19 +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 9B041125BC; Sat, 12 Apr 2014 10:53:17 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro-2.local ([64.245.0.210]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BTH54461 (AUTH peterg@ptree32.com.au); Sat, 12 Apr 2014 10:53:16 +1000 Message-ID: <53488E7A.5070800@freebsd.org> Date: Fri, 11 Apr 2014 17:53:14 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Steve Wills Subject: Re: pinning CPUs in bhyve References: <20140411194855.GA59594@mouf.net> In-Reply-To: <20140411194855.GA59594@mouf.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: virtualization@FreeBSD.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 12 Apr 2014 00:53:20 -0000 Hi Steve, > Can someone help me understand the cpu pinning feature in bhyve? I'm afraid the > docs have confused me: > > -p pinnedcpu > Force guest virtual CPUs to be pinned to host CPUs. Virtual CPU n is pinned > to host CPU pinnedcpu+n. > > What would the arg looks like? Something like -p 0,1,2,3 ? No - currently the parameter can only select the starting host CPU e.g. "-p 3" for a quad vCPU guest will force the vCPU threads to be pinned to host CPUs 3,4,5 and 6. > Also, is there like to be much or any benefit from it? Not really. It's for very specialized use cases, and could actually hurt performance. Not too different in that respect than cpuset with user processes. later, Peter.