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

Simplify numasupport #84207

Merged
merged 7 commits into from
Apr 6, 2023
Merged

Simplify numasupport #84207

merged 7 commits into from
Apr 6, 2023

Conversation

am11
Copy link
Member

@am11 am11 commented Apr 1, 2023

Aimed to remove lib dependency.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Apr 1, 2023
@ghost
Copy link

ghost commented Apr 1, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Aimed to remove lib dependency.

Author: am11
Assignees: -
Labels:

area-Infrastructure-coreclr, community-contribution

Milestone: -

@am11 am11 marked this pull request as ready for review April 1, 2023 14:21
@am11 am11 requested review from jkotas and janvorli April 1, 2023 14:21
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! @janvorli ?

Do we have any NUMA machines to verify that this works well? cc @dotnet/gc

@build-analysis build-analysis bot mentioned this pull request Apr 1, 2023
@janvorli
Copy link
Member

janvorli commented Apr 3, 2023

Do we have any NUMA machines to verify that this works well?

My main Linux devbox has NUMA enabled, so I can test it.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo the comment. I've verified on my NUMA enabled physical device that it works correctly.

return;

g_numaAvailable = true;
g_highestNumaNode = GetNodeNum("/sys/devices/system/node", false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original (dynamic) code was disabling NUMA if there was just one NUMA node. In that case, it is useless to add complexities related to NUMA. I think we should do it here too.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@am11
Copy link
Member Author

am11 commented Apr 6, 2023

CI failures are known (according to Build Analysis).

cc @jkotas, I'll update SDK tests (which counts the number of assets in aotsdk) once this is picked up.

@jkotas jkotas merged commit de5a04b into dotnet:main Apr 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants