Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755857AbcCaKrK (ORCPT ); Thu, 31 Mar 2016 06:47:10 -0400 Received: from casper.infradead.org ([85.118.1.10]:45015 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755560AbcCaKrI (ORCPT ); Thu, 31 Mar 2016 06:47:08 -0400 Date: Thu, 31 Mar 2016 12:47:05 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: Steve Muckle , Dietmar Eggemann , Ingo Molnar , linux-kernel , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Morten Rasmussen , Juri Lelli , Patrick Bellasi , Michael Turquette Subject: Re: [PATCH 1/2] sched/fair: move cpufreq hook to update_cfs_rq_load_avg() Message-ID: <20160331104705.GG3430@twins.programming.kicks-ass.net> References: <1458606068-7476-1-git-send-email-smuckle@linaro.org> <56F91D56.4020007@arm.com> <56F95D10.4070400@linaro.org> <56F97856.4040804@arm.com> <56F98832.3030207@linaro.org> <20160330193544.GD407@worktop> <20160331093408.GB12845@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 615 Lines: 15 On Thu, Mar 31, 2016 at 11:50:40AM +0200, Vincent Guittot wrote: > > In what case? Assuming you talk about a remove wakeup, no. Only if that > > wakeup results in a preemption, which isn't a given. > > yes, i was speaking about a remote wakeup. > In the ttwu_queue_remote, there is a call to smp_send_reschedule. Is > there another way to add a remote task in the wake list ? Right, but at that point we don't yet know how much util will change. And doing that IPI unconditionally is expensive; see: 518cd6234178 ("sched: Only queue remote wakeups when crossing cache boundaries") 13% regression on TCP_RR.