From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55F3CCA9EC5 for ; Wed, 30 Oct 2019 16:24:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 259522087E for ; Wed, 30 Oct 2019 16:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbfJ3QYw (ORCPT ); Wed, 30 Oct 2019 12:24:52 -0400 Received: from foss.arm.com ([217.140.110.172]:37632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfJ3QYw (ORCPT ); Wed, 30 Oct 2019 12:24:52 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD3531F1; Wed, 30 Oct 2019 09:24:51 -0700 (PDT) Received: from [172.16.30.112] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B0F63F6C4; Wed, 30 Oct 2019 09:24:48 -0700 (PDT) Subject: Re: [PATCH v4 00/10] sched/fair: rework the CFS load balance To: Phil Auld , Vincent Guittot Cc: Ingo Molnar , Mel Gorman , linux-kernel , Ingo Molnar , Peter Zijlstra , Valentin Schneider , Srikar Dronamraju , Quentin Perret , Morten Rasmussen , Hillf Danton , Parth Shah , Rik van Riel References: <1571405198-27570-1-git-send-email-vincent.guittot@linaro.org> <20191021075038.GA27361@gmail.com> <20191024123844.GB2708@pauld.bos.csb> <20191024134650.GD2708@pauld.bos.csb> <20191025133325.GA2421@pauld.bos.csb> <20191030143937.GC1686@pauld.bos.csb> From: Dietmar Eggemann Message-ID: <564ca629-5c34-dbd1-8e64-2da6910b18a3@arm.com> Date: Wed, 30 Oct 2019 17:24:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191030143937.GC1686@pauld.bos.csb> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.10.19 15:39, Phil Auld wrote: > Hi Vincent, > > On Mon, Oct 28, 2019 at 02:03:15PM +0100 Vincent Guittot wrote: [...] >>> When you say slow versus fast wakeup paths what do you mean? I'm still >>> learning my way around all this code. >> >> When task wakes up, we can decide to >> - speedup the wakeup and shorten the list of cpus and compare only >> prev_cpu vs this_cpu (in fact the group of cpu that share their >> respective LLC). That's the fast wakeup path that is used most of the >> time during a wakeup >> - or start to find the idlest CPU of the system and scan all domains. >> That's the slow path that is used for new tasks or when a task wakes >> up a lot of other tasks at the same time [...] Is the latter related to wake_wide()? If yes, is the SD_BALANCE_WAKE flag set on the sched domains on your machines? IMHO, otherwise those wakeups are not forced into the slowpath (if (unlikely(sd))? I had this discussion the other day with Valentin S. on #sched and we were not sure how SD_BALANCE_WAKE is set on sched domains on !SD_ASYM_CPUCAPACITY systems.