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

Use all available cores #781

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

markbeierl
Copy link
Contributor

When determining what cores are available, we should use the total number from the system, not from the current process

Addresses #780

When determining what cores are available, we should
use the total number from the system, not from the
current process
@omecproject
Copy link

Can one of the admins verify this patch?

@@ -99,7 +100,7 @@ else:


# Initialize workers
cores = get_process_affinity()
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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

@gab-arrobo
Copy link
Collaborator

@markbeierl, have you tested the behavior of this PR when deploying multiple UPF instances in the same host?

@markbeierl
Copy link
Contributor Author

Yes, I have tested it, and repeated tests show my affinity staying at [1-15] instead of increasing with subsequent runs.

@markbeierl
Copy link
Contributor Author

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.

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.

None yet

3 participants