[Openstack] CPU pinning question

Arne Wiebalck Arne.Wiebalck at cern.ch
Tue Dec 15 13:36:59 UTC 2015


The pinning we set up goes indeed into the <cputune> block:

—>
<vcpu placement='static'>32</vcpu>
  <cputune>
    <shares>32768</shares>
    <vcpupin vcpu='0' cpuset='0-7,16-23'/>
    <vcpupin vcpu='1' cpuset='0-7,16-23'/>
    …
<—

What does “virsh vcpupin <domain>” give for your instance?

Cheers,
 Arne


> On 15 Dec 2015, at 13:02, Satish Patel <satish.txt at gmail.com> wrote:
> 
> I am running JUNO version with qemu-kvm-ev-2.1.2-23.el7_1.9.1.x86_64
> on CentOS7.1
> 
> I am trying to configure CPU pinning because my application is cpu
> hungry. this is what i did.
> 
> in /etc/nova/nova.conf
> 
> vcpu_pin_set=2,3,6,7
> 
> 
> I have created aggregated host with pinning=true and created flavor
> with pinning, after that when i start VM on Host following this i can
> see in guest
> 
> ...
> ...
> <vcpu placement='static' cpuset='2-3,6-7'>2</vcpu>
> ...
> ...
> 
> But i am not seeing any <cputune> info.
> 
> Just want to make sure does my pinning working correctly or something
> is wrong. How do i verify my pinning config is correct?
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

--
Arne Wiebalck
CERN IT



More information about the Openstack mailing list