Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752787AbbGOBjJ (ORCPT ); Tue, 14 Jul 2015 21:39:09 -0400 Received: from g4t3427.houston.hp.com ([15.201.208.55]:58731 "EHLO g4t3427.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbbGOBjI (ORCPT ); Tue, 14 Jul 2015 21:39:08 -0400 Message-ID: <55A5B9B7.7090101@hp.com> Date: Tue, 14 Jul 2015 21:39:03 -0400 From: Waiman Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Davidlohr Bueso CC: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch Subject: Re: [PATCH 3/7] locking/pvqspinlock: Implement wait-early for overcommitted guest References: <1436647018-49734-1-git-send-email-Waiman.Long@hp.com> <1436647018-49734-4-git-send-email-Waiman.Long@hp.com> <1436817022.27924.74.camel@stgolabs.net> In-Reply-To: <1436817022.27924.74.camel@stgolabs.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 21 On 07/13/2015 03:50 PM, Davidlohr Bueso wrote: > On Sat, 2015-07-11 at 16:36 -0400, Waiman Long wrote: >> /* >> + * Queued Spinlock Spin Thresholds >> + * ------------------------------- >> + * Because of the cacheline contention effect of the ticket spinlock, the >> + * same spin threshold for queued spinlock will run a bit faster. So we set >> + * a slight larger threshold for the queue head (1.25X) while the other queue >> + * nodes will keep the same threshold. > How did you come to 1.25x? These sort of magic numbers scare me. > Yes, this is kind of arbitrary. I am going to get rid of it in the v2 patch. Cheers, Longman -- 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/