From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F21D6C432BE for ; Mon, 23 Aug 2021 17:53:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BCCD761361 for ; Mon, 23 Aug 2021 17:53:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BCCD761361 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pncj1hVbE3ZCb0DSo7nHOpqhpeDpVHMhoUxxuwbJOmM=; b=xdqHKWeuytpmrNVex71jxGFi7F L4ivlXTJVa66BD5w+CpJHFRa+rEhzFcuW34xToy4ZmpTWU7ouxE+WEdCUKbugj2nu+aVOavNGawJn jIHJkKBl2NQBXcqSntkPwNuSXUdY1RCVPYk46KlMVk4DKaGz3Wff+P/CvWWIzNrPBXq32myNOIMcO 9P03LIeAGQXoiz2A5lItM+RybrHDs0cV5xorBZvplykQkBYE7QC5LWNKuCwCHCCtn2hbLU6cpSUEf oXh0pExXuq/n2Aic4Q5/Cdc+b1KtMKxbJVL8x+tCcJBPzdfhK3954LCMgHBT29Eos0mAI4a+glUAf 9ruRfVeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIE6n-000E7R-4i; Mon, 23 Aug 2021 17:51:41 +0000 Received: from mga18.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIE6j-000Dva-H9 for linux-arm-kernel@lists.infradead.org; Mon, 23 Aug 2021 17:51:38 +0000 X-IronPort-AV: E=McAfee;i="6200,9189,10085"; a="204291360" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="204291360" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 10:49:35 -0700 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="597229956" Received: from schen9-mobl.amr.corp.intel.com ([10.251.14.9]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 10:49:33 -0700 Subject: Re: [PATCH 3/3] scheduler: Add cluster scheduler level for x86 To: Barry Song <21cnbao@gmail.com>, bp@alien8.de, catalin.marinas@arm.com, dietmar.eggemann@arm.com, gregkh@linuxfoundation.org, hpa@zytor.com, juri.lelli@redhat.com, bristot@redhat.com, lenb@kernel.org, mgorman@suse.de, mingo@redhat.com, peterz@infradead.org, rjw@rjwysocki.net, sudeep.holla@arm.com, tglx@linutronix.de Cc: aubrey.li@linux.intel.com, bsegall@google.com, guodong.xu@linaro.org, jonathan.cameron@huawei.com, liguozhu@hisilicon.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, msys.mizuma@gmail.com, prime.zeng@hisilicon.com, rostedt@goodmis.org, valentin.schneider@arm.com, vincent.guittot@linaro.org, will@kernel.org, x86@kernel.org, xuwei5@huawei.com, yangyicong@huawei.com, linuxarm@huawei.com, Barry Song References: <20210820013008.12881-1-21cnbao@gmail.com> <20210820013008.12881-4-21cnbao@gmail.com> From: Tim Chen Message-ID: <32bcec89-57d5-65e3-970b-affcf4f41667@linux.intel.com> Date: Mon, 23 Aug 2021 10:49:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20210820013008.12881-4-21cnbao@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210823_105137_637627_DD9EB0FE X-CRM114-Status: GOOD ( 18.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/19/21 6:30 PM, Barry Song wrote: > From: Tim Chen > > There are x86 CPU architectures (e.g. Jacobsville) where L2 cahce is > shared among a cluster of cores instead of being exclusive to one > single core. > To prevent oversubscription of L2 cache, load should be balanced > between such L2 clusters, especially for tasks with no shared data. > On benchmark such as SPECrate mcf test, this change provides a > boost to performance especially on medium load system on Jacobsville. > on a Jacobsville that has 24 Atom cores, arranged into 6 clusters > of 4 cores each, the benchmark number is as follow: > > Improvement over baseline kernel for mcf_r > copies run time base rate > 1 -0.1% -0.2% > 6 25.1% 25.1% > 12 18.8% 19.0% > 24 0.3% 0.3% > > So this looks pretty good. In terms of the system's task distribution, > some pretty bad clumping can be seen for the vanilla kernel without > the L2 cluster domain for the 6 and 12 copies case. With the extra > domain for cluster, the load does get evened out between the clusters. > > Note this patch isn't an universal win as spreading isn't necessarily > a win, particually for those workload who can benefit from packing. I have another patch set to make cluster scheduling selectable at run time and boot time. Will like to see people's feed back on this patch set first before sending that out. Thanks. Tim _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel