From owner-freebsd-virtualization@freebsd.org Thu Nov 22 19:27:02 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C861B1104B85 for ; Thu, 22 Nov 2018 19:27:02 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D327B82AA7 for ; Thu, 22 Nov 2018 19:27:01 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id wAMIujnq078617; Thu, 22 Nov 2018 10:56:45 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id wAMIuiZ7078616; Thu, 22 Nov 2018 10:56:44 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201811221856.wAMIuiZ7078616@pdx.rh.CN85.dnsmgr.net> Subject: Re: vmrun.sh - how to pin vcpu to realcpu? In-Reply-To: <20181122181737.GA24125@rpi3.zyxst.net> To: tech-lists Date: Thu, 22 Nov 2018 10:56:44 -0800 (PST) CC: freebsd-virtualization@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: D327B82AA7 X-Spamd-Result: default: False [0.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.60)[-0.601,0]; URL_IN_SUBJECT(0.40)[vmrun.sh]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.45)[-0.451,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: pdx.rh.CN85.dnsmgr.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.53)[-0.535,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 22 Nov 2018 19:27:02 -0000 > Hi, > > As subject - how can I pin a VM that used 4x cpu (-c 4) to realcpu? > I know that it's the -p option but am unclear on the syntax. > > vmrun.sh gives the following for -p > > -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0) > > but how to express this for vcpus and realcpus? vmrun.sh and bhyve(8) are seperate commands, only bhyve(8) supports the cpu pin option as -p, you can not do this with the example script vmrun.sh unless you modify it yourself and add some other option to do this with. To do the pinning with bhyve(8) you do something like bhyve -p 0:0 -p 1:1 -p 2:2 -p 3:7 if I am reading the code correctly. -- Rod Grimes rgrimes@freebsd.org