Wrt patch 4: is "yield CPU" an accurate description of what Sleep(0) does anymore? Separately, is that what we want, instead of NtYieldExecution()?
Wrt patch 5: I intend to sign off on the patch anyway, but I'm curious what if anything prevents us from going further. The subject mentions "minimally decreased" performance—was there a measurable (however minimal) loss, and do we remember with which applications? I had an out-of-tree patch to use TID alerts, do you know if that helps enough to reduce the spin count further or eliminate it altogether? I believe you had another out-of-tree patch somewhere that did remove the spin count altogether, I'm curious if you remember more of the details around that.