Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp793885pxu; Wed, 2 Dec 2020 03:39:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyF0bLof6zlnKl4xhs9hXJslHUNEaBdnMEBiKo5kOMj4P3MfJquq5jb2lqdMf+bxzLK2gLX X-Received: by 2002:a17:906:98d4:: with SMTP id zd20mr1878933ejb.532.1606909193700; Wed, 02 Dec 2020 03:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606909193; cv=none; d=google.com; s=arc-20160816; b=GtKprCIytltqvb7wxsb1szES2JvoFVH/jTBdPgwqpZpYV5fsxxnGMqnBF8P8FwXiqj CkVl0mmbO4aMXKhSORMVzvdk3DgmCSVc1v/ng5v9B3U6GxD7nIbl2t6kPDCMX2zGXyUv DJrhvrdRks8kqO40jm9BlUe6dvVXOd9AUTHndys2Fq9lExJ3W2Bv/VvmTiil5e5jKxNF wpk3dLhlflJ0e9ZVOIOTo0VU7YXINNPHDdJpJtTtyZLZ2fRb5TjjG7IDScHlsMkZD/1X wMe09qNZrkYgUuvS0CG9d/MBGxOAjvKHvOMg8gOr4EK5ptZHqQWWSc2jIoroM81wW7qw zIXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Xmmy4nJHy+6StBptpWkBYia/Qgt1K7AdUFudbbGlo9U=; b=l837tKxqhN4FVG3RV2TRHDtZWRk1OlJreM7ADL1RF+aA1wTh9BTqs9rAoMdHJlHTck CxS9DFnJxtIbYYb2pHleq4R7rHwxsE767QFCYY8ruxhZemUo0eZRGeBte9A40caV2jwJ qnbARwyoMYfQsGzphW1LNbhySqxfgKd3a6eBM7r2XqbFVGWVKGLGOED8csWmXlZ0R4wT u45tPXMe8iVtKGKZdwzLEGwaWFrWNkax8oY/jIwLQCKsPYfug0ZytIUR7YEgfdM886pz Nuxqi0BRytTG4dk08R1Y4+MU7K3QmN0MZeiyIxBDVN1U3PvxEMB6mIAxDncCTqYtJal7 9jmw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si686472ejb.73.2020.12.02.03.39.30; Wed, 02 Dec 2020 03:39:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728667AbgLBLfB (ORCPT + 99 others); Wed, 2 Dec 2020 06:35:01 -0500 Received: from foss.arm.com ([217.140.110.172]:36874 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgLBLfA (ORCPT ); Wed, 2 Dec 2020 06:35:00 -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 A9934101E; Wed, 2 Dec 2020 03:34:14 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.194.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 77F6D3F575; Wed, 2 Dec 2020 03:34:12 -0800 (PST) Date: Wed, 2 Dec 2020 11:34:10 +0000 From: Qais Yousef To: Will Deacon Cc: Quentin Perret , 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: <20201202113410.dx4m2gb7zkyregys@e107158-lin.cambridge.arm.com> 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> <20201201223056.GB28496@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201201223056.GB28496@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/20 22:30, Will Deacon wrote: > 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. Happy to lend a hand, just let me know. Thanks -- Qais Yousef