This does not look global. It changes PLE per vcpu.Yes. you are right. dynamic ple window was an attempt to solve it.
Probelm is, reducing the SPIN_THRESHOLD is resulting in excess halt
exits in under-commits and increasing ple_window may be sometimes
counter productive as it affects other busy-wait constructs such as
flush_tlb AFAIK.
So if we could have had a dynamically changing SPIN_THRESHOLD too, that
would be nice.
Gleb, Andrew,
I tested with the global ple window change (similar to what I posted
here https://lkml.org/lkml/2012/11/11/14 ),
But did not see good result. May be it is good to go with per VMOnly when it changes, shouldn't be to often no?
ple_window.
Gleb,
Can you elaborate little more on what you have in mind regarding per
VM ple_window. (maintaining part of it as a per vm variable is clear
to
me), but is it that we have to load that every time of guest entry?