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
Use all available cores #781
base: master
Are you sure you want to change the base?
Use all available cores #781
Conversation
When determining what cores are available, we should use the total number from the system, not from the current process
Can one of the admins verify this patch? |
@@ -99,7 +100,7 @@ else: | |||
|
|||
|
|||
# Initialize workers | |||
cores = get_process_affinity() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that with this change the get_process_affinity
function is not used anymore, should it be removed from utils.py
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent point. I was not sure about if it could have been used elsewhere without me knowing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see it used anywhere else
@markbeierl, have you tested the behavior of this PR when deploying multiple UPF instances in the same host? |
Yes, I have tested it, and repeated tests show my affinity staying at |
Although, to note, we have no method of controlling the UPFs affinity when there is more than one on the physical host, so they both fight for processor 0 in that case. |
When determining what cores are available, we should use the total number from the system, not from the current process
Addresses #780