What's the proper way of defining vcpu_pin_set in /etc/nova/nova.conf file for cpu pinning ?

Solution Verified - Updated -

Issue

  • vcpu_pin_set is defined as following in /etc/nova/nova.conf file. CPUs 0-7 are left for host/hypervisor usage.
vcpu_pin_set=8-47

Also, grub is defined accordingly.

grubby --update-kernel=ALL --args="isolcpus=8-47"
  • Compute node has 2 physical CPUs with hyper-threading turned on, yielding 12 physical cores and 24 threads per physical CPU (total of 24 physical cores and 48 threads per compute node). 0-23 are physical cores and 24-47 are the logical cores appeared after enabling hyper-threading, one corresponding to each physical core.
available: 2 nodes (0-1)
node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46
node 0 size: 65439 MB
node 0 free: 58074 MB
node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47
node 1 size: 65536 MB
node 1 free: 62156 MB
node distances:
node   0   1 
  0:  10  21 
  1:  21  10

Environment

  • Red Hat OpenStack Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content