Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1085836ybx; Wed, 30 Oct 2019 09:37:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkzZzi7fu6UaDvVgUwxVr9DdHIUhsbTISkf9yOGQ52Ucl6C6sJMHtBgn8L9pPqYS4q1hlo X-Received: by 2002:a17:906:4b57:: with SMTP id j23mr430158ejv.7.1572453455351; Wed, 30 Oct 2019 09:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572453455; cv=none; d=google.com; s=arc-20160816; b=bavcxD39e7AXhWQrA+qtUvPOn63TYUdcpU8bqF1pr48Z9sTOIVsRTdiHnQ+ISr8KkY u2rzS4mUk8a4t8Fw49V+mOkkjoUAoTzTCd28x0VkJkyn4lMkP8X/AJzB0OghQz4GzDdx hlnGLlPYrWuMVLIh0o27aenXJ5+SVHycHglPkKmg7T12TojOYp2SpptJ7+kDqQcaYhQH NAVJuS38G90M2X1a2RWxCjR2fEC8KuX7ZPm43cQsWhTa96niYFhsoZHp5PAuLrW9Gs/i KJqf7r0OXoP0dEWieq86ehlFZ95BBfa6ST+q6iRLmtcgO71PaULzxEr6/hakdxm+pQm2 spuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7taDuXETgzt8pxtRBRm5sYecajUsQjUnKOwSLtkY/3s=; b=MZgffuic7IU/R3Syp+wbjBnxo8qO2jM3qT45jC22dthvgvuCJbn4654I3Ypt4Anr1a 1y39K8ABE7T0w5QofaitwNYeWmeC1UNMofAQULSNpLS0O/dC/ZckOZX2zKJuBBRjhCbn +r3CnYuU51OV8ceO3ns4xxAU71b6OfNqmE9ZOVkdDWZYjJHJYKzVGg3U6OX5P6Xm4vRQ 4NJNzv7faftkbijo+kQD7+fEUKbNoBWVMQePXvQC76QpQykQ6+PsFqR+Bm4KPpefRJGI TiHGR4LORa40qadGHtEmODqLSkXu2nZnbExJNvizlOgpWU4TnR7MCsqUhhbJK7ej7W30 q2nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si1913723edi.103.2019.10.30.09.36.40; Wed, 30 Oct 2019 09:37:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbfJ3QgE (ORCPT + 99 others); Wed, 30 Oct 2019 12:36:04 -0400 Received: from foss.arm.com ([217.140.110.172]:37870 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbfJ3QgC (ORCPT ); Wed, 30 Oct 2019 12:36:02 -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 27E4131F; Wed, 30 Oct 2019 09:36:02 -0700 (PDT) Received: from [10.188.222.161] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E77D53F6C4; Wed, 30 Oct 2019 09:35:57 -0700 (PDT) Subject: Re: [PATCH v4 00/10] sched/fair: rework the CFS load balance To: Dietmar Eggemann , Phil Auld , Vincent Guittot Cc: Ingo Molnar , Mel Gorman , linux-kernel , Ingo Molnar , Peter Zijlstra , 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> <564ca629-5c34-dbd1-8e64-2da6910b18a3@arm.com> From: Valentin Schneider Message-ID: Date: Wed, 30 Oct 2019 17:35:55 +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: <564ca629-5c34-dbd1-8e64-2da6910b18a3@arm.com> 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/2019 17:24, Dietmar Eggemann wrote: > 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. > Well from the code nobody but us (asymmetric capacity systems) set SD_BALANCE_WAKE. I was however curious if there were some folks who set it with out of tree code for some reason. As Dietmar said, not having SD_BALANCE_WAKE means you'll never go through the slow path on wakeups, because there is no domain with SD_BALANCE_WAKE for the domain loop to find. Depending on your topology you most likely will go through it on fork or exec though. IOW wake_wide() is not really widening the wakeup scan on wakeups using mainline topology code (disregarding asymmetric capacity systems), which sounds a bit... off.