Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2549870pxu; Mon, 7 Dec 2020 09:16:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkVUUMMgfKrzpw759IO6vTisnkYARx8rybm+/uIcWis9sffPjSyfrBngeTYlCM49wYTMlu X-Received: by 2002:a17:906:a114:: with SMTP id t20mr19282956ejy.257.1607361407814; Mon, 07 Dec 2020 09:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607361407; cv=none; d=google.com; s=arc-20160816; b=FTY+2DPlkten7+//BbA2rK6Xsw1vUppj3d88YZkqWiLpzfdO22MZCNZXQyj1iCGG5j RKu/ybv3dFJnApnubCfQ1CZoTJPBJIEDqYH5pJFztblSXYGWKSoafkzb4xQA7Ba6pOFw 1K1fIUspi8tlVxCrjMwIbegHrJbxsnFXXXoUC/krz6yo1VyRyWysua+r7wzPXNY9Hrvx 8zvQRkwrWCogALlFtWD+HYsYCK77Tjf5DBfaIb97xtnp4bPC1KdZZN+Q7TZZg3JP+OgC vL+ZTgiC1saf7zO/rDrVzW6KCjLMZv1JDJltw8DszHAEJzlTfBee6BhUMz+6NX/5HUNF YqHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4sNjY824hjRaRKKjlQiW3H3/rOyuJUHvTpRviCOaaw8=; b=RWSlaeUyA5ZKXch5U0W1uzX9NtHZ36gmL49MH+KBUdTOgKB+l075A4AwJGMRaWayIW dibK1NuPSEHZmDo1lEqhC12TAmciMXLdqvfFaOmzm8ulREWOdB4EPG8uRS54mDchdfok I0UJVklyRDeZSoNfNkrmxwv3BIkKhMKqprkoXnAKKI5Ae69hGtM2bUAS1GV2ET13ufHF 8ohzvFUNnnwC4KrK7pg+j1AMqXpTGNEOjfDPNdPeg10OVtNNnfQ+gsGHIjW20PdnaydE 0c8lPhCVrz7Il/dDZHPT4sh7y5XPB2DPQqZ8lCcFi1EoqUpCt9pczZTgIGI6VUpTORuJ hJVA== 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 j9si6695231ejk.570.2020.12.07.09.16.18; Mon, 07 Dec 2020 09:16:47 -0800 (PST) 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 S1726447AbgLGRLQ (ORCPT + 99 others); Mon, 7 Dec 2020 12:11:16 -0500 Received: from outbound-smtp48.blacknight.com ([46.22.136.219]:47191 "EHLO outbound-smtp48.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbgLGRLQ (ORCPT ); Mon, 7 Dec 2020 12:11:16 -0500 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp48.blacknight.com (Postfix) with ESMTPS id 48CF3FA7DA for ; Mon, 7 Dec 2020 17:10:24 +0000 (GMT) Received: (qmail 9767 invoked from network); 7 Dec 2020 17:10:23 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 7 Dec 2020 17:10:23 -0000 Date: Mon, 7 Dec 2020 17:10:21 +0000 From: Mel Gorman To: Peter Zijlstra Cc: Aubrey Li , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, valentin.schneider@arm.com, qais.yousef@arm.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, Mel Gorman , Jiang Biao Subject: Re: [RFC PATCH v5] sched/fair: select idle cpu from idle cpumask for task wakeup Message-ID: <20201207171021.GF3371@techsingularity.net> References: <20201118043113.53128-1-aubrey.li@linux.intel.com> <20201207155015.GQ3040@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201207155015.GQ3040@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 04:50:15PM +0100, Peter Zijlstra wrote: > On Wed, Nov 18, 2020 at 12:31:13PM +0800, Aubrey Li wrote: > > Add idle cpumask to track idle cpus in sched domain. When a CPU > > enters idle, if the idle driver indicates to stop tick, this CPU > > is set in the idle cpumask to be a wakeup target. And if the CPU > > is not in idle, the CPU is cleared in idle cpumask during scheduler > > tick to ratelimit idle cpumask update. > > So this will only have SIS consider CPUs that have the tick stopped? > That might affect the facebook tail-latency workloads quite a bit. > This is the concern I had as well. That's why patch "sched/fair: Avoid revisiting CPUs multiple times during select_idle_sibling" was created. The intent was that a mask could be used as a hint about what runqueues to look at first but continue looking at other runqueues without examining the same runqueue twice. While the patch would not be merged on its own, it may still be relevant in the context of an idle CPU mask depending on how up to date it is. -- Mel Gorman SUSE Labs