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

numa: do not fail when loading invalid distance matrices #6242

Closed
wants to merge 1 commit into from

Conversation

psafont
Copy link
Member

@psafont psafont commented Jan 21, 2025

Instead disable NUMA for the host

Fixes #6240

@psafont psafont requested a review from edwintorok January 21, 2025 11:31
Instead disable NUMA for the host

Fixes xapi-project#6240

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the private/paus/numaybe branch from 73bf03a to 9f4977b Compare January 21, 2025 11:32
@psafont psafont changed the title numa: do not fail to load invalid distance matrices numa: do not fail when loading invalid distance matrices Jan 21, 2025
if not numa_matrix_is_reasonable then (
D.info
"Not enabling NUMA: the ACPI SLIT table contains values that are \
invalid." ;
Copy link
Contributor

Choose a reason for hiding this comment

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

The wording could be more in line with the test: the table is implausible.

@@ -78,7 +78,7 @@ module NUMA : sig
(** A NUMA node index. Distinct from an int to avoid mixing with CPU numbers *)
type node = private Node of int

val make : distances:int array array -> cpu_to_node:int array -> t
val make : distances:int array array -> cpu_to_node:int array -> t option
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the [invalid_arg] is not raised any more, should the comment(L100) be updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll take a look, thanks

@psafont
Copy link
Member Author

psafont commented Jan 22, 2025

In light of the comment in the original issue, I want to make the code cope with unreachable numa nodes. I'll reopen the PR once it's ready.

@psafont psafont closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buggy or uncommon ACPI tables break xenopsd-xc startup (and thus XAPI's startup)
5 participants