Skip to content

CP-53642: change default NUMA placement policy to best-effort #6472

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

psafont
Copy link
Member

@psafont psafont commented May 15, 2025

We've seen that using the policy can be up to 10% faster than using any is some
workflows, while not observing workflows that were negatively affected. The
policy per VM can always be change if need be.

Note that currently sometime the best-effort falls back to the same behaviour,
especially when restarting on starting more than one VM at a time. This needs
xen patches to be fixed:
https://lore.kernel.org/xen-devel/[email protected]/

Also fix the legacy numa-placement configuration option for xenopsd. It was
always deciding the setting, even when not used, not it only takes effect when
it's present, otherwise it leaves the default option untouched.

@psafont psafont force-pushed the private/paus/numa-default branch 3 times, most recently from 382d48b to 4a3a8a3 Compare May 20, 2025 16:06
We've seen that using the policy can be up to 10% faster than using any is some
workflows, while not observing workflows that were negatively affected. The
policy per VM can always be change if need be.

Note that currently sometime the best-effort falls back to the same behaviour,
especially when restarting on starting more than one VM at a time. This needs
xen patches to be fixed:
https://lore.kernel.org/xen-devel/[email protected]/T/#ma1246e352ea3cce71c7ddc26d1329a368548b3b2

Now the deprecated numa-placement configuration option for xenopsd does nothing.
It was exclusively used to enable Best_effort, since now it's the default,
there's no point in setting the option. It's value depends on whether the
default option is best_effort or not, as per the spec.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the private/paus/numa-default branch from 4a3a8a3 to 3be8ea9 Compare May 20, 2025 16:06
@psafont psafont marked this pull request as ready for review May 20, 2025 16:08
@psafont psafont added this pull request to the merge queue May 21, 2025
@psafont
Copy link
Member Author

psafont commented May 21, 2025

Tested on startup:

May 21 10:04:31 xen-81-04 xenopsd-xc: [debug||0 ||xenopsd-xc] numa-placement = true (NUMA-aware placement of VMs (deprecated, use XAPI setting))

May 21 10:04:31 xrtuk-81-04 xenopsd-xc: [ info||0 ||xenops] Default NUMA affinity policy is 'best-effort'

Merged via the queue into xapi-project:master with commit e6f94be May 21, 2025
17 of 19 checks passed
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.

3 participants