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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 82D93C2D0A3 for ; Fri, 6 Nov 2020 21:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D9072087E for ; Fri, 6 Nov 2020 21:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728127AbgKFVWl (ORCPT ); Fri, 6 Nov 2020 16:22:41 -0500 Received: from foss.arm.com ([217.140.110.172]:44918 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbgKFVWl (ORCPT ); Fri, 6 Nov 2020 16:22:41 -0500 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 6A99A106F; Fri, 6 Nov 2020 13:22:40 -0800 (PST) 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 9DF213F718; Fri, 6 Nov 2020 13:22:38 -0800 (PST) References: <20201021150335.1103231-1-aubrey.li@linux.intel.com> <27f88d6a-302e-2c28-c936-22ac233fe175@linux.intel.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: "Li\, Aubrey" Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, Aubrey Li , Qais Yousef , Jiang Biao Subject: Re: [RFC PATCH v3] sched/fair: select idle cpu from idle cpumask for task wakeup In-reply-to: <27f88d6a-302e-2c28-c936-22ac233fe175@linux.intel.com> Date: Fri, 06 Nov 2020 21:22:36 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/20 11:52, Li, Aubrey wrote: > On 2020/11/4 3:27, Valentin Schneider wrote: >>> +static DEFINE_PER_CPU(bool, cpu_idle_state); >> >> I would've expected this to be far less compact than a cpumask, but that's >> not the story readelf is telling me. Objdump tells me this is recouping >> some of the padding in .data..percpu, at least with the arm64 defconfig. >> >> In any case this ought to be better wrt cacheline bouncing, which I suppose >> is what we ultimately want here. > > Yes, every CPU has a byte, so it may not be less than a cpumask. Probably I can > put it into struct rq, do you have any better suggestions? > Not really, I'm afraid.