diff options
| author | Wanpeng Li <[email protected]> | 2017-12-01 00:15:10 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2017-12-14 09:26:48 +0100 |
| commit | 9c48d517ce6da398b8cff0603b75b366759023c4 (patch) | |
| tree | f6f20df33a0e12b3ce2275f4a18cde639472350c /tools/perf/scripts/python | |
| parent | 74c55931c71352317ae0f5736ee9e4ca07ba4238 (diff) | |
KVM: X86: Reduce the overhead when lapic_timer_advance is disabled
When I run ebizzy in a 32 vCPUs guest on a 32 pCPUs Xeon box, I can observe
~8000 kvm_wait_lapic_expire CurAvg/s through kvm_stat tool even if the advance
tscdeadline hrtimer expiration is disabled. Each call to wait_lapic_expire()
will consume ~70 cycles when a timer fires since apic_timer_expire() will
set expired_tscdeadline and then wait_lapic_expire() will do some caculation
before bailing out. So total ~175us per second is lost on this 3.2Ghz machine.
This patch reduces the overhead by skipping the function wait_lapic_expire()
when lapic_timer_advance is disabled.
Cc: Paolo Bonzini <[email protected]>
Cc: Radim Krčmář <[email protected]>
Signed-off-by: Wanpeng Li <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions