Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4743257ybc; Fri, 15 Nov 2019 09:21:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzy6/agB4QJifAMSuB0Rum6NbU3CYxJtj8wHdq3g0WSRGUwVMd5iLUXbLumRgN3lKkI1HC2 X-Received: by 2002:a17:906:b6cb:: with SMTP id ec11mr2350046ejb.145.1573838509292; Fri, 15 Nov 2019 09:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573838509; cv=none; d=google.com; s=arc-20160816; b=v4/cLBNDyONggILTB5E7q/ZdEKDbYsQJV4ZoBIr5gw1vfoFcuvV7wMJhqF4BymoCdU Hj6N5b36U/IhPWvukxQ9voANG8a8l+CuhH9A2oFmymLGGHm/OAzS6DgdxH/J36wRQflP JXPUYdRx2g/kbmNQDl4iib8qIcX+WBUyserJ3/HZe7FjjQ6vcdTuMuCmOMkDwA3xMUKh NYUp1mSWYA5xRGv5ZUPFTUenFWdcLOn67D2WMdNPWz4u5SYjk3Ohx9XXYpCh1aKlOiRm 8b1OYpGLlOPYlMeC0EhR8Z1ISnM7zFVjAGgOmv1ZJUJ/be3p+R70ztAuw+opVuVRhigz XSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tryllwBwDJ9OUmjsunPs1obph+vnIVprFgLsrAuN1Lo=; b=Ykj8lvnAj/03igWGVUPje7BrTMesBqDGoSXwcqsuNRCqBhjosgIjIyr7x/yCEUlYYE /HuhJMMeg9xZFRePsersMHZV/2xCNWBvOADpcECQhwG1DJTaV0v/oCMtQYy1H20uNFzr xsojRtftDSAtuCY3J6quUGwCfnpRS5Fe+p7ByaWsbP5awDMW9p6T3Ky18gNsqfunVERy xADMoBmbvAeacEFefdzcyPvd/cQek5kNYii4GQ12CqjJin+CyTkP5Re9ZWCYXO4PtVkv w/DpCYto5UHC5TtZhT23zaag5+b+6EfYfjjEtykiWy4QNAi5JVUQbsVIL/ZYUaeC2lpk FZIQ== 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 k24si1213084ejk.280.2019.11.15.09.21.23; Fri, 15 Nov 2019 09:21:49 -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 S1727590AbfKORSL (ORCPT + 99 others); Fri, 15 Nov 2019 12:18:11 -0500 Received: from mx2.suse.de ([195.135.220.15]:46116 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727531AbfKORSL (ORCPT ); Fri, 15 Nov 2019 12:18:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 367BDAD20; Fri, 15 Nov 2019 17:18:09 +0000 (UTC) Date: Fri, 15 Nov 2019 18:18:07 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, lizefan@huawei.com, tj@kernel.org, hannes@cmpxchg.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, Dietmar.Eggemann@arm.com, morten.rasmussen@arm.com, qperret@google.com Subject: Re: [PATCH v2] sched/topology, cpuset: Account for housekeeping CPUs to avoid empty cpumasks Message-ID: <20191115171807.GH19372@blackbody.suse.cz> References: <20191104003906.31476-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nFBW6CQlri5Qm8JQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nFBW6CQlri5Qm8JQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. On Thu, Nov 14, 2019 at 04:03:50PM +0000, Valentin Schneider wrote: > Michal, could I nag you for a reviewed-by? I'd feel a bit more confident > with any sort of approval from folks who actually do use cpusets. TL;DR I played with the v5.4-rc6 _without_ this fixup and I conclude it unnecessary (IOW my previous theoretical observation was wrong). The original problem is non-issue with v2 cpuset controller, because effective_cpus are never empty. isolcpus doesn't take out cpuset CPUs, hotplug does. In the case, no online CPU remains in the cpuset, it inherits ancestor's non-empty cpuset. I reproduced the problem with v1 (before your fix). However, in v1 effective =3D=3D allowed (we're destructive and overwrite allowed on hotunplug) and we already check the emptiness of=20 cpumask_intersects(cp->cpus_allowed, housekeeping_cpumask(HK_FLAG_DOMAIN) few lines higher. I.e. the fixup adds redundant check against the empty sched domain production. Sorry for the noise and HTH, Michal --nFBW6CQlri5Qm8JQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl3O3cgACgkQia1+riC5 qSiGeA//dbxeLleRivvTRMu6ewhKeYA5GfAfmrsle+ZHgxKgu13LIa8eHLAWPu/Z YyHPHLctNpNYafHe47dMbAxduA4roPTtZzN8AMN4bRkrT85c1ZqCAVel6eZLU9Dj RIwV9vK3E6RBObG8W9Qq7b6Rhlty6mwnGpxil7oqJq/MxKe0DOYjYKsrl5JROc3G iywiIignt9izFFqK1z7R4TX4H9Q0ir/FEiu75CWMx7Ch5jSMgCUwcJiE1gTDognS vKIDIp0BD4nidnpLoP18iaywle6HbZOX6xT2GJXS5waCY6uKzHas++Jh/PdWYpTR +fzCQDS9otWlwSPUj/GSKwJbRakmxMWsfJp2/QreiWWbcS9XBxEH56jD03PBIF8A 3toQN5kLVu+kWf2v5v+avd6jaIXMRtm5uBigmkmmax/vjq9UtzWI8FzMhcx48BTI FHzWdwP3BcptZClp6O/4pLQ8doP/RINGtQgvYvnFvEDrJQGO2xxJ78FBRZ7WxQVU BuS3yDu8Ntxa8CuJBgFNJpN9yDu0rGHbknKDTHZ2vXWT6/v6B3B2UkdGGvmm4mQC RKoUjKoTQoLDCIvErQLI+PP62twGsz0lGJVm8WEPhVbs5AZIXPAJ8tx8LKngfXE8 38cy25tQ+hKhVtf+jIclTTYaN3Nvh2MBUKpZYXAQwdvXeiGn3NI= =2oDh -----END PGP SIGNATURE----- --nFBW6CQlri5Qm8JQ--