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=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 7517CC71156 for ; Tue, 1 Dec 2020 22:32:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 EDF4720671 for ; Tue, 1 Dec 2020 22:32:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u9TA3pRZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="i8yPkW/j" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDF4720671 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xy+K24CjJ+tQ5Ha/j/3yiPGsea5MIAbaKgGIWmWmni0=; b=u9TA3pRZcJZw3iF8vEitMfkhb yn93YyuJgxtBZkFxB5eNvinrKb2Gvwr6/2enmeVGP/2be+kxCe+BsDxaJCF46FTICwLCh/PKmyQyM fmW0beq/7IMBMelRB8+3xC+kTOxYzXg6SVNAYlenfs06hd6miNBVFG3LE00e0n1HdoiO6xt6hYYJu cabAltlqW0aZGWS5hyPsJG1k3i6IsiFxZsmATwFqhjgtrIIp9LF6nNAq1XEvJh+NzplqMmxEK5itP 1GIGIxBkShv9cWI58J2BGQCNcohWxPHlzFL55lmFgk2T8QrfQ2tpaorwZ8t9BgyakHjh+PH733EbZ IYmir8OCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkEAu-0005rA-UR; Tue, 01 Dec 2020 22:31:09 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkEAq-0005pV-Bo for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 22:31:05 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 368C720671; Tue, 1 Dec 2020 22:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606861863; bh=2FqELP0kL1gtJg1OgZdi1DE1pZCr06wueem7RmEe9ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i8yPkW/jGk0Rof1aFRSlnu+HT5bXjtUslWWaorpHYJtwOfdMUAEKVlXWk5mrLwBlV n/4S/aYvK9qw5fHqyP4PTFSaiolKLTqGugnZYxJ9lF1kEPS57nonNGG6my5fRrQZYe ycm/49bt3VYwv3FRSYWh0IJzJDSYaWy/82K87u5w= Date: Tue, 1 Dec 2020 22:30:56 +0000 From: Will Deacon To: Quentin Perret Subject: Re: [PATCH v4 09/14] cpuset: Don't use the cpu_possible_mask as a last resort for cgroup v1 Message-ID: <20201201223056.GB28496@willie-the-truck> References: <20201124155039.13804-1-will@kernel.org> <20201124155039.13804-10-will@kernel.org> <20201127133245.4hbx65mo3zinawvo@e107158-lin.cambridge.arm.com> <20201130170531.qo67rai5lftskmk2@e107158-lin.cambridge.arm.com> <20201130173610.GA1715200@google.com> <20201201115842.t77abecneuesd5ih@e107158-lin.cambridge.arm.com> <20201201123748.GA1896574@google.com> <20201201141121.5w2wed3633slo6dw@e107158-lin.cambridge.arm.com> <20201201155649.GB1914005@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201201155649.GB1914005@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_173104_579103_257FB760 X-CRM114-Status: GOOD ( 16.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Juri Lelli , kernel-team@android.com, Vincent Guittot , Greg Kroah-Hartman , Peter Zijlstra , Catalin Marinas , Johannes Weiner , linux-kernel@vger.kernel.org, Morten Rasmussen , Ingo Molnar , Li Zefan , Marc Zyngier , Tejun Heo , Suren Baghdasaryan , Qais Yousef , linux-arm-kernel@lists.infradead.org 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 Tue, Dec 01, 2020 at 03:56:49PM +0000, Quentin Perret wrote: > On Tuesday 01 Dec 2020 at 14:11:21 (+0000), Qais Yousef wrote: > > For cpusets, if hotunplug results in an empty cpuset, then all tasks are moved > > to the nearest ancestor if I read the code correctly. In our case, only 32bit > > tasks have to move out to retain this behavior. Since now for the first time we > > have tasks that can't run on all cpus. > > > > Which by the way might be the right behavior for 64bit tasks execing 32bit > > binary in a 64bit only cpuset. I suggested SIGKILL'ing them but maybe moving > > them to the nearest ancestor too is more aligned with the behavior above. > > Hmm, I guess that means putting all 32-bit-execd-from-64-bit tasks in > the root group in Android. I'll try and check the implications, but that > might be just fine... Sounds like a sensible behaviour to me anyways. I'll look into this -- anything we can do to avoid forcefully resetting the affinity mask to the arch_task_cpu_possible_mask() is worth considering. Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel