Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754944Ab3CGIg2 (ORCPT ); Thu, 7 Mar 2013 03:36:28 -0500 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:46220 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754855Ab3CGIg1 (ORCPT ); Thu, 7 Mar 2013 03:36:27 -0500 Message-ID: <1362645372.2606.11.camel@laptop> Subject: Re: [PATCH] sched: wakeup buddy From: Peter Zijlstra To: Michael Wang Cc: LKML , Ingo Molnar , Mike Galbraith , Namhyung Kim , Alex Shi , Paul Turner , Andrew Morton , "Nikunj A. Dadhania" , Ram Pai Date: Thu, 07 Mar 2013 09:36:12 +0100 In-Reply-To: <5136EB06.2050905@linux.vnet.ibm.com> References: <5136EB06.2050905@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 28 On Wed, 2013-03-06 at 15:06 +0800, Michael Wang wrote: > wake_affine() stuff is trying to bind related tasks closely, but it doesn't > work well according to the test on 'perf bench sched pipe' (thanks to Peter). so sched-pipe is a poor benchmark for this.. Ideally we'd write a new benchmark that has some actual data footprint and we'd measure the cost of tasks being apart on the various cache metrics and see what affine wakeup does for it. Before doing something like what you're proposing, I'd have a hard look at WF_SYNC, it is possible we should disable/fix select_idle_sibling for sync wakeups. The idea behind sync wakeups is that we try and detect the case where we wakeup up one task only to go to sleep ourselves and try and avoid the regular ping-pong this would otherwise create on account of the waking task still being alive and so the current cpu isn't actually idle yet but we know its going to be idle soon. -- 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/