]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79c455430396b1832b6cb0841851d6efc71f2551
treeffd4a1daf73f40a3789afadf654f5fa5127a2bc5
parentd96bef44ec0c731623b05e8ce00a7a587a085402
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