From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH RFC 0/2] kvm: Improving directed yield in PLE handler Date: Wed, 11 Jul 2012 12:00:01 +0300 Message-ID: <4FFD4091.8040804@redhat.com> References: <20120709062012.24030.37154.sendpatchset@codeblue> <1341870457.2909.27.camel@oc2024037011.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1341870457.2909.27.camel@oc2024037011.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: habanero@linux.vnet.ibm.com Cc: Raghavendra K T , "H. Peter Anvin" , Thomas Gleixner , Marcelo Tosatti , Ingo Molnar , Rik van Riel , S390 , Carsten Otte , Christian Borntraeger , KVM , chegu vinod , LKML , X86 , Gleb Natapov , linux390@de.ibm.com, Srivatsa Vaddagiri , Joerg Roedel List-ID: On 07/10/2012 12:47 AM, Andrew Theurer wrote: > > For the cpu threads in the host that are actually active (in this case > 1/2 of them), ~50% of their time is in kernel and ~43% in guest. This > is for a no-IO workload, so that's just incredible to see so much cpu > wasted. I feel that 2 important areas to tackle are a more scalable > yield_to() and reducing the number of pause exits itself (hopefully by > just tuning ple_window for the latter). One thing we can do is autotune ple_window. If a ple exit fails to wake anybody (because all vcpus are either running, sleeping, or in ple exits) then we deduce we are not overcommitted and we can increase the ple window. There's the question of how to decrease it again though. -- error compiling committee.c: too many arguments to function