]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: set halt polling to 80 microseconds
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 13 May 2016 10:16:36 +0000 (12:16 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 May 2016 15:29:49 +0000 (17:29 +0200)
commitdd7ee6fd7e4c710b88ba787d2fd97e7657ace1e5
treebf00e3c8077771a5dcfd641ea5ed4643ae645618
parent0fb06ed2b4c5d81af2127de2c8f8ecf11e7b1c2d
KVM: s390: set halt polling to 80 microseconds

on s390 we disabled the halt polling with commit d9920cee251c
("KVM: disable halt_poll_ns as default for s390x"), as floating
interrupts would let all CPUs have a successful poll, resulting
in much higher CPU usage (on otherwise idle systems).

With the improved selection of polls we can now retry halt polling.
Performance measurements with different choices like 25,50,80,100,200
microseconds showed that 80 microseconds seems to improve several cases
without increasing the CPU costs too much. Higher values would improve
the performance even more but increased the cpu time as well.
So let's start small and use this value of 80 microseconds on s390 until
we have a better understanding of cost/benefit of higher values.

Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/include/asm/kvm_host.h