Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932334Ab3GKJJo (ORCPT ); Thu, 11 Jul 2013 05:09:44 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:58325 "EHLO e23smtp05.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932316Ab3GKJJj (ORCPT ); Thu, 11 Jul 2013 05:09:39 -0400 Message-ID: <51DE771F.7070805@linux.vnet.ibm.com> Date: Thu, 11 Jul 2013 14:43:03 +0530 From: Raghavendra K T Organization: IBM User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: Gleb Natapov CC: Andrew Jones , mingo@redhat.com, ouyang@cs.pitt.edu, habanero@linux.vnet.ibm.com, jeremy@goop.org, x86@kernel.org, konrad.wilk@oracle.com, hpa@zytor.com, pbonzini@redhat.com, linux-doc@vger.kernel.org, xen-devel@lists.xensource.com, peterz@infradead.org, mtosatti@redhat.com, stefano.stabellini@eu.citrix.com, andi@firstfloor.org, attilio.rao@citrix.com, gregkh@suse.de, agraf@suse.de, chegu_vinod@hp.com, torvalds@linux-foundation.org, avi.kivity@gmail.com, tglx@linutronix.de, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, riel@redhat.com, virtualization@lists.linux-foundation.org, srivatsa.vaddagiri@gmail.com Subject: Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks References: <20130601192125.5966.35563.sendpatchset@codeblue> <1372171802.3804.30.camel@oc2024037011.ibm.com> <51CAAA26.4090204@linux.vnet.ibm.com> <20130626113744.GA6300@hawk.usersys.redhat.com> <20130626125240.GY18508@redhat.com> <51CAEF45.3010203@linux.vnet.ibm.com> <20130626161130.GB18152@redhat.com> <51CB2AD9.5060508@linux.vnet.ibm.com> <51DBD3C2.2040807@linux.vnet.ibm.com> <20130710103325.GP24941@redhat.com> In-Reply-To: <20130710103325.GP24941@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13071109-1396-0000-0000-0000033EC0D8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1559 Lines: 43 On 07/10/2013 04:03 PM, Gleb Natapov wrote: [...] trimmed >>> Yes. you are right. dynamic ple window was an attempt to solve it. >>> >>> Probelm is, reducing the SPIN_THRESHOLD is resulting in excess halt >>> exits in under-commits and increasing ple_window may be sometimes >>> counter productive as it affects other busy-wait constructs such as >>> flush_tlb AFAIK. >>> So if we could have had a dynamically changing SPIN_THRESHOLD too, that >>> would be nice. >>> >> >> Gleb, Andrew, >> I tested with the global ple window change (similar to what I posted >> here https://lkml.org/lkml/2012/11/11/14 ), > This does not look global. It changes PLE per vcpu. Okay. Got it. I was thinking it would change the global value. But IIRC It is changing global sysfs value and per vcpu ple_window. Sorry. I missed this part yesterday. > >> But did not see good result. May be it is good to go with per VM >> ple_window. >> >> Gleb, >> Can you elaborate little more on what you have in mind regarding per >> VM ple_window. (maintaining part of it as a per vm variable is clear >> to >> me), but is it that we have to load that every time of guest entry? >> > Only when it changes, shouldn't be to often no? Ok. Thinking how to do. read the register and writeback if there need to be a change during guest entry? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/