From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758608Ab2INVnL (ORCPT ); Fri, 14 Sep 2012 17:43:11 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:58435 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756707Ab2INVnG (ORCPT ); Fri, 14 Sep 2012 17:43:06 -0400 MIME-Version: 1.0 In-Reply-To: <20120914212717.GA29307@liondog.tnic> References: <20120914212717.GA29307@liondog.tnic> From: Linus Torvalds Date: Fri, 14 Sep 2012 14:42:44 -0700 X-Google-Sender-Auth: xqqQw3Y8ARBWd1SKkgSZhf_WHFc Message-ID: Subject: Re: 20% performance drop on PostgreSQL 9.2 from kernel 3.5.3 to 3.6-rc5 on AMD chipsets - bisected To: Borislav Petkov , Nikolay Ulyanitsky , Mike Galbraith , linux-kernel@vger.kernel.org, Andreas Herrmann , Peter Zijlstra , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2012 at 2:27 PM, Borislav Petkov wrote: > > as Nikolay says below, we have a regression in 3.6 with pgbench's > benchmark in postgresql. > > I was able to reproduce it on another box here and did a bisection run. > It pointed to the commit below. Ok. I guess we should just revert it. However, before we do that, maybe Mike can make it just use the exact old semantics of select_idle_sibling() in the update_top_cache_domain() logic. Because the patch in question seems to do two things: (a) cache the "idle_buggy" logic, so that we don't have those costly loops (b) change it to do that "left-right" thing. and that (b) thing may be what causes a regression for you. So my gut feel is that the patch was wrong to begin with, exactly because it did two independent changes. It *should* have treated those two issues as independent changes and separate commits. Maybe I'm mis-reading it. Mike? Peter? Linus