OSDN Git Service

powerpc/pseries/cpuidle: add polling idle for shared processor guests
authorNicholas Piggin <npiggin@gmail.com>
Tue, 10 Oct 2017 07:11:09 +0000 (17:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 18 Jan 2018 04:43:44 +0000 (15:43 +1100)
commitf2ac428e0edabbca41b9dfe9473a90147962e4e9
treeffd4a1daf73f40a3789afadf654f5fa5127a2bc5
parentced54c08d8e4060d59c10629ea5a4ccdaed6898e
powerpc/pseries/cpuidle: add polling idle for shared processor guests

For shared processor guests (e.g., KVM), add an idle polling mode rather
than immediately returning to the hypervisor when the guest CPU goes
idle.

Test setup is a 2 socket POWER9 with 4 guests running, each with vCPUs
equal to 1/2 of real of CPUs. Saturated each guest with tbench. Using
polling idle gives about 1.4x throughput.

Kernel compile speed was not changed significantly.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/cpuidle/cpuidle-pseries.c