Bug 1626130

Summary: [RFE] Auto-allocate PCIe route complex per NUMA node
Product: Red Hat OpenStack Reporter: Stephen Finucane <stephenfin>
Component: openstack-novaAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED WONTFIX QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: dasmith, egallen, eglynn, jhakimra, jraju, kchamart, lyarwood, sbauza, sgordon, smooney, vromanso, yocha
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 09:36:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Finucane 2018-09-06 15:52:02 UTC
Description of problem:

Attaching a PCIe devices to an instance will implicitly add a virtual NUMA topology to said instance. Unless otherwise specified (via PCI NUMA policies), the instance will confined to the host NUMA node the the PCI device is affinitized to. If the guest is additionally configured with multiple virtual NUMA nodes (e.g. the 'hw:numa_nodes=2' extra spec), each virtual NUMA node will be associated with a different host NUMA node. However, the PCI device will always be associated with the first virtual NUMA node. If the PCI device were associated with another host NUMA node (and therefore another virtual NUMA node), this would result in cross-NUMA traffic and reduced performance.

Version-Release number of selected component (if applicable):
RHEL OSP 10

How reproducible:
Everytime.

Steps to Reproduce:
1. Using a multi-socket host, ensure a PCI device is located in a NUMA node other than node 0
2. Spawn a two-node instance with the PCI attached

Actual results:

NUMA affinity is not accounted for in the instance XML, resulting in cross-NUMA traffic for the PCI device.

Expected results:

The PCI device should be associated with the virtual NUMA node associated with the same host NUMA node as the PCI device itself.

Comment 1 Stephen Finucane 2019-04-12 14:08:13 UTC
*** Bug 1697906 has been marked as a duplicate of this bug. ***