Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp357844pxu; Thu, 3 Dec 2020 02:00:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDizxK0AU5eLMsiz8qafUpcN81Dm/sJxAVLDjAevtN0vDuRm7vPtLkvqCiGjZNnccYeKx1 X-Received: by 2002:a17:906:4412:: with SMTP id x18mr1735871ejo.301.1606989626870; Thu, 03 Dec 2020 02:00:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606989626; cv=none; d=google.com; s=arc-20160816; b=hwbJOcMfaXVhJr7aWrPUyIdS0jS1IjZ19Hm4rfxmudpqBXtwfW7w4Q73x/0rggjvW6 OTyx7DN39T3V+miD8n0ttxG1aVjuVj939n4TuqVc2IQAjM+m0oAtx9HE9z8+Wof2A/fH jcKqnwDTGcdPeJ9Xgb16ryUDdLuaCyN98YJg23StRYSNa4EI4pDC5hyO+7IM2BQtEEJn q3LK+ekIT7hLCegaY9fhQHSq+j73vFRApe3NFJMrXRWcPA6p+a+KmYtlhrY8GLsmkqq1 DP8p3aRoWuI6qYanHxvKqhWp92ta8Xp+rRuLaDogBadfRd5rEU+cMx12TZI8DWfHoM2+ iYWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=QAGIyllJbyUDnIAelqTMPiyPf0yS1rk1/VMXBwokIZg=; b=XzlMlScX5xUbIvzB9qbAG2AKiHmZxWPrefeS1IjDfN/3uJ6vlNtRlpNXvl5/HYxmnv JbKEZtXIKfPvHGPs2C5TgjrgEKnbepMEzYrZM5o4PTTPzv4jlKGtVmbkyki/ZBXugpJm QzOW74cHyFnt4zP0q+JN+AqI6XHcQfkv3m1X1SaIgbzhKBt1erj7KdU4O7kn7VQokDUB iCj9tFhlmP79WVgvEn9B+oR461Sdk7VMi+SZAJVC39tjgQf/yRGG/q7KZ2Hk8cc40MRi MG++d7bQjM8IjCdGszCpq0ovD6POgIZ+pIthdN4MKpPrBWUIXt31qaVEQgse43ndC0hr tllg== 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 rp28si764554ejb.10.2020.12.03.02.00.02; Thu, 03 Dec 2020 02:00:26 -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 S2388434AbgLCJ54 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Dec 2020 04:57:56 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2198 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730121AbgLCJ5z (ORCPT ); Thu, 3 Dec 2020 04:57:55 -0500 Received: from fraeml715-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Cmrmg6RY4z67Hq5; Thu, 3 Dec 2020 17:55:15 +0800 (CST) Received: from lhreml714-chm.china.huawei.com (10.201.108.65) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 3 Dec 2020 10:57:12 +0100 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by lhreml714-chm.china.huawei.com (10.201.108.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1913.5; Thu, 3 Dec 2020 09:57:11 +0000 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.1913.007; Thu, 3 Dec 2020 17:57:09 +0800 From: "Song Bao Hua (Barry Song)" To: Peter Zijlstra , Valentin Schneider CC: "catalin.marinas@arm.com" , "will@kernel.org" , "rjw@rjwysocki.net" , "lenb@kernel.org" , "gregkh@linuxfoundation.org" , Jonathan Cameron , "mingo@redhat.com" , "juri.lelli@redhat.com" , "vincent.guittot@linaro.org" , "dietmar.eggemann@arm.com" , "rostedt@goodmis.org" , "bsegall@google.com" , "mgorman@suse.de" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , Linuxarm , "xuwei (O)" , "Zengtao (B)" Subject: RE: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters Thread-Topic: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters Thread-Index: AQHWx46tyJL5OgLpakCat9sEfhhBKKnh4fQAgAK2JoCAAItncA== Date: Thu, 3 Dec 2020 09:57:09 +0000 Message-ID: References: <20201201025944.18260-1-song.bao.hua@hisilicon.com> <20201201025944.18260-3-song.bao.hua@hisilicon.com> <20201203092831.GH2414@hirez.programming.kicks-ass.net> In-Reply-To: <20201203092831.GH2414@hirez.programming.kicks-ass.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.200.109] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Peter Zijlstra [mailto:peterz@infradead.org] > Sent: Thursday, December 3, 2020 10:29 PM > To: Valentin Schneider > Cc: Song Bao Hua (Barry Song) ; > catalin.marinas@arm.com; will@kernel.org; rjw@rjwysocki.net; lenb@kernel.org; > gregkh@linuxfoundation.org; Jonathan Cameron ; > mingo@redhat.com; juri.lelli@redhat.com; vincent.guittot@linaro.org; > dietmar.eggemann@arm.com; rostedt@goodmis.org; bsegall@google.com; > mgorman@suse.de; mark.rutland@arm.com; linux-arm-kernel@lists.infradead.org; > linux-kernel@vger.kernel.org; linux-acpi@vger.kernel.org; Linuxarm > ; xuwei (O) ; Zengtao (B) > > Subject: Re: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters > > 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. Yep. Valentin was actually recommending the same SD_SHARE_PKG_RESOURCES sd flags by ignoring the actual names of the hardware. But the question is where we should start, in case we have 3 domains under llc, maybe it is not good to scan from the first level domain as it is gathering too much. > > 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 Would you point out the link of your previous patches? Thanks Barry