From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757059Ab2IXQIG (ORCPT ); Mon, 24 Sep 2012 12:08:06 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35111 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757011Ab2IXQIC convert rfc822-to-8bit (ORCPT ); Mon, 24 Sep 2012 12:08:02 -0400 Message-ID: <1348502863.11847.92.camel@twins> Subject: Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected From: Peter Zijlstra To: Linus Torvalds Cc: Mel Gorman , Borislav Petkov , Nikolay Ulyanitsky , Mike Galbraith , linux-kernel@vger.kernel.org, Andreas Herrmann , Andrew Morton , Thomas Gleixner , Ingo Molnar Date: Mon, 24 Sep 2012 18:07:43 +0200 In-Reply-To: References: <20120914212717.GA29307@liondog.tnic> <20120924150048.GB11266@suse.de> <1348500647.11847.69.camel@twins> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-09-24 at 08:52 -0700, Linus Torvalds wrote: > Your patch looks odd, though. Why do you use some complex initial > value for 'candidate' (nr_cpu_ids) instead of a simple and readable > one (-1)? nr_cpu_ids is the typical no-value value for cpumask operations -- yes this is annoying and I keep doing it wrong far too often.