From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753354Ab0ADJdP (ORCPT ); Mon, 4 Jan 2010 04:33:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753184Ab0ADJdN (ORCPT ); Mon, 4 Jan 2010 04:33:13 -0500 Received: from casper.infradead.org ([85.118.1.10]:38373 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990Ab0ADJdN (ORCPT ); Mon, 4 Jan 2010 04:33:13 -0500 Subject: Re: [RFC PATCH] sched: Pass affine target cpu into wake_affine From: Peter Zijlstra To: Lin Ming Cc: Mike Galbraith , lkml , "Zhang, Yanmin" In-Reply-To: <1262596364.22471.110.camel@minggr.sh.intel.com> References: <1262595827.22471.108.camel@minggr.sh.intel.com> <1262597105.6408.99.camel@laptop> <1262596364.22471.110.camel@minggr.sh.intel.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 04 Jan 2010 10:32:46 +0100 Message-ID: <1262597566.6408.101.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2010-01-04 at 17:12 +0800, Lin Ming wrote: > On Mon, 2010-01-04 at 17:25 +0800, Peter Zijlstra wrote: > > On Mon, 2010-01-04 at 17:03 +0800, Lin Ming wrote: > > > commit a03ecf08d7bbdd979d81163ea13d194fe21ad339 > > > Author: Lin Ming > > > Date: Mon Jan 4 14:14:50 2010 +0800 > > > > > > sched: Pass affine target cpu into wake_affine > > > > > > Since commit a1f84a3(sched: Check for an idle shared cache in select_task_rq_fair()), > > > the affine target maybe adjusted to any idle cpu in cache sharing domains > > > instead of current cpu. > > > But wake_affine still use current cpu to calculate load which is wrong. > > > > > > This patch passes affine cpu into wake_affine. > > > > > > > Does this at all help with that regression? > > No. crap :/ The change does look sensible though.