Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp354326pxu; Thu, 3 Dec 2020 01:52:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp1DIXDFmSQIvtzBAmAZ7uknSZ9GxQ+WxmzbhRTps3yt53iRqRv4Felcazg3/LvT4P01hr X-Received: by 2002:a17:906:e81:: with SMTP id p1mr1778959ejf.494.1606989128891; Thu, 03 Dec 2020 01:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606989128; cv=none; d=google.com; s=arc-20160816; b=qxpJr91uornIUixyO12fYlJ3PGooUTsoSVIp3HI17jOgQZtwm5UNmvNbIzLpYTAo8b kjYF5A/V+SpJ53Msyhx06+sItZWXY0Ew6YPuaFhlgnK+qEMxDe46fgAfC62Y1kWkYd8T svXJVB3+FOvY+N4lTEm1krgfbIgFtv0u5ncpo5MXiYJ9/7a20OYDosOIZdXEBt0joRhC QVcRKv7HCBmNS8WLq+tYVaVI/58Hi+ZtH1ghq4CuuYZrac65ve0/UH/GIFxL+wg3YZ9B IdDZhFwUOvzL92AZfBVE36X8Dwun9QZklnT08tEPA9C71PC7HzhquSvSGThw+fJ9G2tU J0GA== 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=k108yhENquiT1msnYxec8ls7v0RKnIJwwb+xsXpDZzI=; b=kgKqP47c+trC9/Vr26nSBmwNh2iQCHiYAuBiICNShhP7zlozou2SQOh2JoA9Vev+X3 JVV4zWLP9ZRPPh4OSPNLNPalOYyIpVzsAZJnghTrHWRRf6oikjI6X5zNr4oEti02gs3s qTKHiqSpavRtCBpAM5QMEGDiJzTKPiepIZ1yrZLyx9gpgadcuUlMCtfvuTMVxAhRtpDv dvBQMi+evVsmK0/j4nvsbpYyCDfo1O8eao03ug72rg9x8l+5FC261oaBHSy3lGy8hKW7 y4h2GMPyOsQa5bdu+ImMokjWN3TDyQ1BwJ/yFc/TPis0U0tYF7mBoWFRplL3irh8pbLP TkIg== 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 dm3si603922edb.547.2020.12.03.01.51.45; Thu, 03 Dec 2020 01:52:08 -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 S1730193AbgLCJt7 (ORCPT + 99 others); Thu, 3 Dec 2020 04:49:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:53356 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728958AbgLCJt7 (ORCPT ); Thu, 3 Dec 2020 04:49:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 69351AC55; Thu, 3 Dec 2020 09:49:17 +0000 (UTC) Date: Thu, 3 Dec 2020 09:49:14 +0000 From: Mel Gorman To: Peter Zijlstra Cc: Valentin Schneider , Barry Song , catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, lenb@kernel.org, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linuxarm@huawei.com, xuwei5@huawei.com, prime.zeng@hisilicon.com Subject: Re: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters Message-ID: <20201203094914.GE3306@suse.de> References: <20201201025944.18260-1-song.bao.hua@hisilicon.com> <20201201025944.18260-3-song.bao.hua@hisilicon.com> <20201203092831.GH2414@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201203092831.GH2414@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 Thu, Dec 03, 2020 at 10:28:31AM +0100, Peter Zijlstra wrote: > On Tue, Dec 01, 2020 at 04:04:04PM +0000, Valentin Schneider wrote: > > > > Gating this behind this new config only leveraged by arm64 doesn't make it > > very generic. Note that powerpc also has this newish "CACHE" level which > > seems to overlap in function with your "CLUSTER" one (both are arch > > specific, though). > > > > I think what you are after here is an SD_SHARE_PKG_RESOURCES domain walk, > > i.e. scan CPUs by increasing cache "distance". We already have it in some > > form, as we scan SMT & LLC domains; AFAICT LLC always maps to MC, except > > for said powerpc's CACHE thingie. > > There's some intel chips with a smaller L2, but I don't think we ever > bothered. > > There's also the extended topology stuff from Intel: SMT, Core, Module, > Tile, Die, of which we've only partially used Die I think. > > Whatever we do, it might make sense to not all use different names. > > Also, I think Mel said he was cooking something for > select_idle_balance(). > > Also, I've previously posted patches that fold all the iterations into > one, so it might make sense to revisit some of that if Mel also already > didn.t I didn't. The NUMA/lb reconcilation took most of my attention and right now I'm looking at select_idle_sibling again in preparation for tracking the idle cpumask in a sensible fashion. The main idea I had in mind was special casing EPYC as it has multiple small L3 caches that may benefit from select_idle_sibling looking slightly beyond the LLC as a search domain but it has not even started yet. -- Mel Gorman SUSE Labs