Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1630515ybt; Thu, 2 Jul 2020 09:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzkMVMp8Ba0HXnE8JD5MrrHQPp9dvyovGj2ur/S1d377HuPXmEzyJx4MiLFGV+GP25T0UA X-Received: by 2002:a50:f058:: with SMTP id u24mr35876863edl.351.1593708746534; Thu, 02 Jul 2020 09:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593708746; cv=none; d=google.com; s=arc-20160816; b=ApTCVjeWaml5P265atLb1OYJUnCg2jRLS5vZx2iZ1ca5CrnwKkQLcv4yiINKjQnAhi a4S8Y8/jT8B84M6IAFl8zulSACn9A1+QV3rSps5fryqzJu+tdEAu1NqiMErbVbJC6nRT PCa2xZx5Mj1Pcgz3g74XKPOHW0SRh7fTnaUYDwstEkLAjypt+X2OAzMFtjUh98iO1XM+ +lyBuXYsZvcwpEAQDD68AO8gTp4Tv/nZNdObPygTaPmo+17HjbEw4hrmnsm0GdQwK/F3 prQFNSO8d9zjNZ7JY7xuE/ZmRDNwMaUFBEZ+pOF1NQLrRLojBAt+svdwx+Cxg18XRoNl /CPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=a/zRLLi6BzFq4JnJY/u6VvFdcCHXkfi/7Sy2ooqoo3w=; b=LxgIaK0TDrgkmUFFt/UdxOx+elTyB5cphXi2ogPpgJoh7Jt+S0GAzwhbeVLCDDHAQS +udqO1KfLxvjOP9WTY0SaxNaVlRrfAQcEnXzYKHitKi9J4Eo0UXRvi+D2cLA0he7OBMf z4zZ6OSdN1Gos2I7rpgzqx6AqY8pB8llul1GJ7dQ9LKxqLgxf9K+ckvlYVhsWz6C0EIW sSn0EV0Dx2ds1wZcRFMuKuH6WE3qGTs+y0ACFEotISzyAanyZebpaXBUFf7Diul7LitL PFKItHBGPa1NVz5LET2QFcMRRHzr2VNu25XOeLXsZelQjOCTg6n8wXzBnM4IeHJSm8mx cOyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c68si6758176edf.428.2020.07.02.09.52.03; Thu, 02 Jul 2020 09:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726140AbgGBQtm (ORCPT + 99 others); Thu, 2 Jul 2020 12:49:42 -0400 Received: from foss.arm.com ([217.140.110.172]:42966 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgGBQtl (ORCPT ); Thu, 2 Jul 2020 12:49:41 -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 4ED211FB; Thu, 2 Jul 2020 09:49:41 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4DCAF3F71E; Thu, 2 Jul 2020 09:49:40 -0700 (PDT) References: <20200701190656.10126-1-valentin.schneider@arm.com> <20200701190656.10126-3-valentin.schneider@arm.com> <20200702121536.GA765585@google.com> <20200702154514.GA1072702@google.com> <20200702163748.GA1125675@google.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Quentin Perret Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com Subject: Re: [PATCH v3 2/7] sched/topology: Define and assign sched_domain flag metadata In-reply-to: <20200702163748.GA1125675@google.com> Date: Thu, 02 Jul 2020 17:49:38 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/07/20 17:37, Quentin Perret wrote: > On Thursday 02 Jul 2020 at 17:25:41 (+0100), Valentin Schneider wrote: >> It's actually pretty close to what happens with the LLC domain on SMP - >> select_idle_sibling() doesn't look outside of it. The wake_affine() stuff >> might steer the task towards a different LLC, but that's about it for >> wakeups. We rely on load balancing (fork/exec, newidle, nohz and periodic) >> to spread this further - and we would here too. > > Sure, but on SMP the search space in select_idle_sibling is always > consistent -- you search within the LLC. With the fix you suggested, > CPUs 0-3 will search within their LLCs, while CPU4 searches the entire > system, which creates an imbalanced mess IMO. > Yeah, it is a mess. > For affine wake-ups, you could migrate from CPU4 -> CPU0-3, but CPU0-3 > to CPU4 is not possible AIU the wake_affine bits, you get to steer the wakeup towards the waking CPU. So if the task previously ran on CPU0-3, wake_affine can make the target CPU4 (waking CPU), so it would become a possible candidate. But as you say, this thing is still an ugly asymmetric mess. > so this asymmetry is almost guaranteed to > actively create imbalance. And sure, the periodic load balancer ought to > fix it, but really wake-up balance and periodic load balance should be > pushing in the same direction and not fighting against each other. > > Anyways, enough bikeshedding for today, I'll try and have look at the > rest of the series :) > Thanks! > Cheers, > Quentin