Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752882Ab2FKRWS (ORCPT ); Mon, 11 Jun 2012 13:22:18 -0400 Received: from casper.infradead.org ([85.118.1.10]:56682 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562Ab2FKRWR convert rfc822-to-8bit (ORCPT ); Mon, 11 Jun 2012 13:22:17 -0400 Message-ID: <1339435331.31548.19.camel@twins> Subject: Re: [patch v3] sched: fix select_idle_sibling() induced bouncing From: Peter Zijlstra To: Mike Galbraith Cc: lkml , Suresh Siddha , Paul Turner , Arjan Van De Ven Date: Mon, 11 Jun 2012 19:22:11 +0200 In-Reply-To: <1339433835.7358.30.camel@marge.simpson.net> References: <1337857490.7300.19.camel@marge.simpson.net> <1337865431.9783.148.camel@laptop> <1338906621.6110.30.camel@marge.simpson.net> <1339433835.7358.30.camel@marge.simpson.net> 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 Content-Length: 1180 Lines: 26 On Mon, 2012-06-11 at 18:57 +0200, Mike Galbraith wrote: > Traversing an entire package is not only expensive, it also leads to tasks > bouncing all over a partially idle and possible quite large package. Fix > that up by assigning a 'buddy' CPU to try to motivate. Each buddy may try > to motivate that one other CPU, if it's busy, tough, it may then try it's > SMT sibling, but that's all this optimization is allowed to cost. > > Sibling cache buddies are cross-wired to prevent bouncing. > > Signed-off-by: Mike Galbraith The patch could do with a little comment on how you achieve the cross-wiring because staring at the code I go cross-eyed again ;-) Anyway, I think I'll grab it since nobody seems to have any objections and the numbers seem good. PJT any progress on your load-tracking stuff? Arjan is interested in the avg runtime estimation it has to make the whole wake an idle thing conditional on. -- 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/