-
Notifications
You must be signed in to change notification settings - Fork 284
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
Conversation
Instead disable NUMA for the host Fixes xapi-project#6240 Signed-off-by: Pau Ruiz Safont <[email protected]>
73bf03a
to
9f4977b
Compare
if not numa_matrix_is_reasonable then ( | ||
D.info | ||
"Not enabling NUMA: the ACPI SLIT table contains values that are \ | ||
invalid." ; |
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.
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 |
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 see the [invalid_arg] is not raised any more, should the comment(L100) be updated?
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'll take a look, thanks
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. |
Instead disable NUMA for the host
Fixes #6240