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

Graceful error handling of when PCIe has no numa and mv-params has "cpu_pin" option #63

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

HughNhan
Copy link
Contributor

@HughNhan HughNhan commented Jan 31, 2024

Problem:
For some system, e.g AMD, we can define 0, 1, 2 or 4 NUMA nodes per socket. In the case that was 0 (whole flat memory layout for both sockets), "cat /sys/class/net/ens2f0np0/device/numa_node" returns "-1" . This is the normal behavior per https://access.redhat.com/discussions/4490711.

Now if the uperf CLI has the "cpu_pin" option to indicate pinning CPUs to same numa as the NIC in-use, the subsequent code ends up blindly invoked "taskset --cpu_list -1"
Solution:
Add a snippet to detect cpu_list = -1 and uperf CLI has "cpu_pin", and error out the run gracefully. The user must remove the "cpu_pin" option from the mv-params when running on host w/o NUMA.

@HughNhan HughNhan merged commit 002a4ae into master Jan 31, 2024
36 checks passed
@k-rister k-rister deleted the nps-numa branch February 1, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants