Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp413306pxu; Tue, 1 Dec 2020 14:40:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8yWqOvsYXpvyJH1ee0+/M+pUdfpVLyoRIMNH51m3SOVdAX3J7jPqy1mcwYwoyO4V1BRNf X-Received: by 2002:aa7:c60c:: with SMTP id h12mr5400945edq.145.1606862454327; Tue, 01 Dec 2020 14:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862454; cv=none; d=google.com; s=arc-20160816; b=sfG6/KcctupyCIFKyxJPOev2iCbLqezGYIth97R6e42RTt1wAI0KZ6rzFBxr2ifBu9 rarKAdsovy46zHz6s1Ixk0yB7YBRbXbRF2fK3TezVyuwHYo6SDLQKkF88G44v1ZQBSC7 wDzTzX8pM78oW0ZtxDCsseWeQOWbNqBLFlGpd7qAIZ+JiLtympsyguuoNN3KBHcJTphh ShcbDxzXLYlmvnz532OCcm2B0ImMzjTojOtWsU9vwVJtqvfN1drX6YXztL8AsAO1GZVN fr7B36O69BdcXGIyiVucvnsQDvtluIHms2aX+JY/A9pRGQoXisq3sGhsufqX2bgxJhRw Ahpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WUxnLZT4eek+QaYRQqH0Rqpm67txzRexFjk2P3kQMeA=; b=bMiDeTR2ioaXvvVZYWEGr3jXM4EJ1u6qF3YJ1Jg1gfYlJnUV8ZxOTnaqSykj+Wd7QH QaqJChw4nraU6T0ekHgUUeOqPNiFOysXIUKUsM4LVfMCKqdEufXrZpliUuKp2gR7ZcgZ nRAmAMoc4SMwR6klXnPn2zSbgKVOMHyXA+cAQ3WD7zyliWNwG4MJs8cxaOY2p7P4ql/h dVzsvWdcE6NUrqbH0u9l2vSVQA8QUo/oqOoi3okE91ymmK7gLIk+EruCzt4N8JUx0TJ1 qc1JvP17pGh7C6fbkBMsaE0vS/41s9hK6dxh9XnBnSS/EwSbU/vbZhpXXAx9Ir9Mfzx2 17ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i8yPkW/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si818533edx.70.2020.12.01.14.40.32; Tue, 01 Dec 2020 14:40:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i8yPkW/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727225AbgLAWbo (ORCPT + 99 others); Tue, 1 Dec 2020 17:31:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:38942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727209AbgLAWbn (ORCPT ); Tue, 1 Dec 2020 17:31:43 -0500 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 Cc: Qais Yousef , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Suren Baghdasaryan , Tejun Heo , Li Zefan , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , kernel-team@android.com 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201201155649.GB1914005@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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