Hi George, > On Sep 21, 2023, at 20:23, George Dunlap <[email protected]> wrote: > > On large systems with many vcpus yielding due to spinlock priority > inversion, it's not uncommon for a vcpu to yield its timeslice, only > to be immediately stolen by another pcpu looking for higher-priority > work. > > To prevent this: > > * Keep the YIELD flag until a vcpu is removed from a runqueue > > * When looking for work to steal, skip vcpus which have yielded > > NB that this does mean that sometimes a VM is inserted into an empty > runqueue; handle that case. > > Signed-off-by: George Dunlap <[email protected]>
Release-acked-by: Henry Wang <[email protected]> Kind regards, Henry
