Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1946807imu; Sat, 8 Dec 2018 10:34:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XwVV1PFJVvyNAJ/8Mz/RJS8zhS4bJofPzbqJmre59u7OdALT2EwwGh8p1xLsbRWEyewurS X-Received: by 2002:a62:3948:: with SMTP id g69mr6793925pfa.114.1544294062791; Sat, 08 Dec 2018 10:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544294062; cv=none; d=google.com; s=arc-20160816; b=RQl8FpU84DItUPnzx0i1VLQp1BXSH8fkPlm11ckekcGiAl3KrSO/QsaFdn/mxCzWwD 4DDx2eCz7S/eetw7ue52pxGJLd90MKEdo3vRixjeITAEh2Tctwb25YpmQfh1dk+l55eO W8eeDOIkJewZuP8BqZA7GLv1qCi6BpwFHriUhy8RH+TMKk5kygfDYuc035I2mGoqs5sS LSD5LXrp3sD61XQuGLtQu3VplyRn7/bz7t4fUJJN/cFKLRtP8t3RF1eRG+wnHqCguThY 5IKRYNVadQJdGaSkigZ5OeZuukJZhe3svV/jVZsvkXcOu4X4G37xA1fjQRSQiU1i5WID 5bjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/PffB2LWJAHP1957QuF/eoGR1vHL0QKaSKcoB4iO70c=; b=kybbARAh4PJJZbSXZ8v2FgKOotUf1pilFMUOdxrBdOfzI7pvRrEIMy2oUlopI4flno 9iHJNeLLmMatfgxTokp+RytRNoG+TU/oWA/kTiO/XZPZfvRMCxwzfLoMqaTqFKjBNaoR KjHg3MJ5YuXJPBeyRazzTmCkwVAhecb/E6qfolRiQKs/wAdguj7SDipBrsXITr2xzRa/ OyZQEGZov+6onXH5htwB0/FaSiYzH5ARkeEHOY7A5NDKGuxHbi4XRqMckFit4BOzsBaY YeEK27gJQPUZlDl86Pt8yiZl8m/mQdoQi2CAnW92Vc/O9iWS5cOAClzshpgGeoeI1Ycw N3IA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c65si6454985pfa.148.2018.12.08.10.34.07; Sat, 08 Dec 2018 10:34:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726196AbeLHSdc (ORCPT + 99 others); Sat, 8 Dec 2018 13:33:32 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbeLHSdc (ORCPT ); Sat, 8 Dec 2018 13:33:32 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E386CEBD; Sat, 8 Dec 2018 10:33:31 -0800 (PST) Received: from [10.0.2.15] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 34C513F575; Sat, 8 Dec 2018 10:33:28 -0800 (PST) Subject: Re: [PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap To: Steven Sistare , mingo@redhat.com, peterz@infradead.org Cc: subhra.mazumdar@oracle.com, dhaval.giani@oracle.com, daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, riel@redhat.com, jbacik@fb.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, quentin.perret@arm.com, linux-kernel@vger.kernel.org References: <1544131696-2888-1-git-send-email-steven.sistare@oracle.com> <1544131696-2888-4-git-send-email-steven.sistare@oracle.com> <9253783d-d53f-9587-61eb-2505bca5fc0c@arm.com> <5c145b18-773d-756d-b0b9-1b939c441bd6@oracle.com> From: Valentin Schneider Message-ID: <42abaaa5-6e3e-7362-7622-565f98e9629f@arm.com> Date: Sat, 8 Dec 2018 18:33:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <5c145b18-773d-756d-b0b9-1b939c441bd6@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/12/2018 22:35, Steven Sistare wrote: [...] >>> + if (!sds->cfs_overload_cpus) { >>> + mask = sparsemask_alloc_node(nr_cpu_ids, 3, flags, nid); >> ^^^^^^^^^^ ^^^ >> (1) (2) >> >> (1): Is this necessary? Wouldn't cpumask_weight(span) suffice? > > weight does not work because the ids are not consecutive. As a future > optimization I have a patch that computes a local CPU id within the LLC > and uses that as the bitmap index, and that uses weight. For this first > series I am keeping things simple. > Oh, duh, non-contiguous spans strike again. Fair enough! [...]