Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incusd/device/gpu_sriov: Implement NUMA fallback (NPS) #641

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

stgraber
Copy link
Member

For systems with multiple NUMA nodes per socket (NPS), it's always better to select a GPU on the same socket, even if on a different node than going across socket.

This adds a bit of logic to map the current NUMA nodes to the matching set of CPU sockets and then extract all NUMA nodes from those sockets to build a list of fallback NUMA nodes. Those are less optimal than a direct match but still better than potentially going across socket.

Sponsored-by: ActivePort (https://www.activeport.com.au)

For systems with multiple NUMA nodes per socket (NPS), it's always
better to select a GPU on the same socket, even if on a different node
than going across socket.

This adds a bit of logic to map the current NUMA nodes to the matching
set of CPU sockets and then extract all NUMA nodes from those sockets to
build a list of fallback NUMA nodes. Those are less optimal than a
direct match but still better than potentially going across socket.

Signed-off-by: Stéphane Graber <[email protected]>
Sponsored-by: ActivePort (https://www.activeport.com.au)
@hallyn hallyn merged commit 6491574 into lxc:main Mar 22, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants