Tuned cpu-partitioning profile will configure affinity on all cores if values are quoted in isolated_cores / HostIsolatedCoreList in Red Hat OpenStack Platform

Solution In Progress - Updated -

Issue

Tuned cpu-partitioning profile will configure affinity on all cores if values are quoted in isolated_cores / HostIsolatedCoreList in Red Hat OpenStack Platform

From a lab environment:

[root@overcloud-compute-0 pcm]# grep -i isol /etc/tuned/cpu-partitioning-variables.conf 
# isolated_cores=2,4-7
# isolated_cores=2-23
isolated_cores=2,4,6,8,10,12,14,16,18,22,24,26,28,30,32,34,36,38,3,5,7,9,11,13,15,17,19,23,25,27,29,31,33,35,37,39
[root@overcloud-compute-0 pcm]# grep -i affini /etc/systemd/system.conf 
#CPUAffinity=1 2
CPUAffinity=0 1 20 21
[root@overcloud-compute-0 pcm]# vi /etc/tuned/cpu-partitioning-variables.conf 
[root@overcloud-compute-0 pcm]# grep -i isol /etc/tuned/cpu-partitioning-variables.conf 
# isolated_cores=2,4-7
# isolated_cores=2-23
isolated_cores='2,4,6,8,10,12,14,16,18,22,24,26,28,30,32,34,36,38,3,5,7,9,11,13,15,17,19,23,25,27,29,31,33,35,37,39'
[root@overcloud-compute-0 pcm]# tuned-adm  profile cpu-partitioning
[root@overcloud-compute-0 pcm]# grep -i affini /etc/systemd/system.conf 
#CPUAffinity=1 2
CPUAffinity=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
[root@overcloud-compute-0 pcm]# vi /etc/tuned/cpu-partitioning-variables.conf 
[root@overcloud-compute-0 pcm]# grep -i isol /etc/tuned/cpu-partitioning-variables.conf 
# isolated_cores=2,4-7
# isolated_cores=2-23
isolated_cores=2,4,6,8,10,12,14,16,18,22,24,26,28,30,32,34,36,38,3,5,7,9,11,13,15,17,19,23,25,27,29,31,33,35,37,39
[root@overcloud-compute-0 pcm]#  tuned-adm  profile cpu-partitioning

[root@overcloud-compute-0 pcm]# 
[root@overcloud-compute-0 pcm]# grep -i affini /etc/systemd/system.conf
#CPUAffinity=1 2
CPUAffinity=0 1 20 21

This happens if the templates contain the following (note the single quotes within the double quotes):

HostIsolatedCoreList: "'2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,34,35,38,39,40,41,42,43,44,45,46,47'"

Environment

Red Hat OpenStack Platform 10

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