Zones (including LX-brand) have a native view of all sockets, cores, and 
hyperthreads of the physical system. You set CPU affinity by process (or lwp) 
using the pbind(1M) command.

Although not directly supported by vmadm, you can also use zonecfg to set 
dedicated-cpu, which will use pooladm/poolcfg to allocate CPUs for the 
exclusive use of that zone. Be warned though, that if there aren't enough CPUs 
to fully dedicate to the zone it will fail to boot, and dedicated cpus are 
unavailable for use by all other zones, including the global zone.

I very highly recommend using pbind over dedicated-cpu. It's much more 
flexible, doesn't require special permission because it can be used within the 
zone, and doesn't require extra configuration in the global zone.

-- 
Brian Bennett
Systems Engineer, Cloud Operations
Joyent, Inc. | www.joyent.com <http://www.joyent.com/>
> On Aug 18, 2016, at 8:22 PM, 龙白滔 <[email protected]> wrote:
> 
> 
> Hi, 
> 
> We are running SmartOS on a 2-socket Xeon marchine, and would like to 
> allocate 4 CPUs for a zone. For performance consideration, we want the 4 
> VCPUs from a single socket. How can we achieve that?
> 
> Appreciate your kind help. 
> 
> Baitao from China
> 
> smartos-discuss | Archives 
> <https://www.listbox.com/member/archive/184463/=now>  
> <https://www.listbox.com/member/archive/rss/184463/26986985-d0246faa> | 
> Modify <https://www.listbox.com/member/?&;> Your Subscription  
> <http://www.listbox.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to