]> 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)
commit5f42c12949e54a30b50222568825cc7b5bf2cfd8
treeffd4a1daf73f40a3789afadf654f5fa5127a2bc5
parent09c5985f6afb537ff8c0d482192210fe59b46a27
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