diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-07-31 12:56:02 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-31 13:54:08 -0700 |
| commit | 2887da61c42df1d9d5dad9253837c56a3424788a (patch) | |
| tree | 7e37de660c23468cb7b564b263658f9c40a9d091 /include/linux/workqueue_api.h | |
| parent | f766bf3d0ac8eadac48326af51f624c71985de8e (diff) | |
KVM: selftests: Set threads CPU affinity before doing work in hardware disable test
Affine worker threads to their target pCPU set *before* doing any work in
the hardware disable test. When running a preemptible kernel on a NUMA
system with a large number of CPUs (100+ of CPUs), waiting to set the
affinity of the grandchildren until after the grandchild is fully spun up
results in total test runtimes of over a minute, presumably due to
cross-node NUMA penalties and scheduler lock contention.
E.g. from the perspective of the caller, when waiting to affine the tasks,
pthread_create() takes ~100x longer.
Link: https://patch.msgid.link/20260731195612.2697986-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
