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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A0B9ECAAD8 for ; Fri, 23 Sep 2022 15:26:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C72580010; Fri, 23 Sep 2022 11:26:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9292980007; Fri, 23 Sep 2022 11:26:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A34D80010; Fri, 23 Sep 2022 11:26:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6442180007 for ; Fri, 23 Sep 2022 11:26:41 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 457FB14064B for ; Fri, 23 Sep 2022 15:26:41 +0000 (UTC) X-FDA: 79943727402.11.10A21CF Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by imf28.hostedemail.com (Postfix) with ESMTP id 636B5C0025 for ; Fri, 23 Sep 2022 15:26:39 +0000 (UTC) Received: by mail-pj1-f52.google.com with SMTP id s14-20020a17090a6e4e00b0020057c70943so6187903pjm.1 for ; Fri, 23 Sep 2022 08:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date; bh=ZWy71aF5Z4g2M7EPQKOVM2PfzynmTIcPbYGqsH4ugQ0=; b=Mc/z/AW6VhBGHjGOwfn5PkruFSYFBqwRa5tn3GQM1lteEuCJ+V+6CTTP+G7dOZobuq SWkg0q7JprL6fPbvwir3O3D3qKy1ydWGK8W7Kf+IVk+byBRnLMC2DbHJPNBWSU9TBi8L VCy9giJRvqA10AGLkdx52plKJ0ZUGujwB2zWMv44LDqZYgwCHropbLoWHZ0KrdngDhws GGKp3HoKQvAzGeeqFPEHPEeieFN5NfrQtixeYoOb3q1x11vmTs681STsJInjzjbG2HER BS9VPdRm5uNaGZMm5QmPMjCheLjyDIeN8yS14WY2ESUAL5Kc/XQgKtaI5foIEeeb2JTf fTKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date; bh=ZWy71aF5Z4g2M7EPQKOVM2PfzynmTIcPbYGqsH4ugQ0=; b=ZkS98LAioJtR+Fn5Wap30knR/jmjh28gdYMPlrIdhYuqf87Yp+Dhal/uF2ZQb4pB8Z uvz/l7Mrk2HJ8C3RkQkfOhKS7q/j5LZ/RVo7pdNsoW9j8xI8wC6rPetZ5aKPc1HxzE9k l9N9iaglakdy6f73fyOS89qMjCeMwtrGND0yyNMtH4Rra9+GXMuGs4549u9L1uk6vxqR aEH430LJNJoWhf/FHdJMKa2Vy8fB/JGbnAIYBMapf59z4mE2GU1vn4GMc2TKzLR1rkWF Sqd0Hup5ZrA8TjHwCh22miC6KNBHjskhL7SjgBDW4NhvRYG2RDXsIqyFDT6BHluZkam4 fFTw== X-Gm-Message-State: ACrzQf0sZudgB0YC38BMSjtcNd/1r7eUjr780Z9rxucfihCWtyH1IQpS TrFo5ikF+jUYVtJ/FKUtJr45wg== X-Google-Smtp-Source: AMsMyM4GYd6v9EMcN/Fb6ZH7c8imRbDWdoMZ8VzP/mcwqALCzvBDvUx78UKS9xewkApkxFvEyWUvAQ== X-Received: by 2002:a17:903:130f:b0:178:b6fd:7eb3 with SMTP id iy15-20020a170903130f00b00178b6fd7eb3mr9012080plb.82.1663946798026; Fri, 23 Sep 2022 08:26:38 -0700 (PDT) Received: from [10.4.89.86] ([139.177.225.237]) by smtp.gmail.com with ESMTPSA id y7-20020a623207000000b0053f9466b1b2sm6610523pfy.35.2022.09.23.08.26.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 08:26:37 -0700 (PDT) Message-ID: Date: Fri, 23 Sep 2022 23:26:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [External] Re: [PATCH] cgroup/cpuset: Add a new isolated mems.policy type. To: Michal Hocko Cc: hannes@cmpxchg.org, roman.gushchin@linux.dev, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, lizefan.x@bytedance.com, wuyun.abel@bytedance.com References: <20220904040241.1708-1-hezhongkun.hzk@bytedance.com> <0e5f380b-9201-0f56-9144-ce8449491fc8@bytedance.com> <93d76370-6c43-5560-9a5f-f76a8cc979e0@bytedance.com> <120cb50d-d617-a60a-ec24-915f826318f1@bytedance.com> From: Zhongkun He In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663946800; a=rsa-sha256; cv=none; b=uAL58nlQ0LAuDe+MZZUnUnuPR6rvEcpdRmITI2Rf0ziP/UZqA923kKxy79g1F00DuEtw0g xqEIQFGrTc7ZkNUtfaoJHYmzSZkc6h1JI/oKluI1XZB6i6Ly+owaUNdD4nk6tQOpHUkzHt qRw16uEcPszvHH/QnGMeMCI/RgTkLCw= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="Mc/z/AW6"; spf=pass (imf28.hostedemail.com: domain of hezhongkun.hzk@bytedance.com designates 209.85.216.52 as permitted sender) smtp.mailfrom=hezhongkun.hzk@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663946800; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZWy71aF5Z4g2M7EPQKOVM2PfzynmTIcPbYGqsH4ugQ0=; b=yp7C8r7NTTrKqJ4jxT66LnDurx2/X9FPxgFeYyuVeiQ686Ezefh+N80N7XrZuo0bjAOwve AEJQb6FBNT8RYeA+L6c+/BygfkDKeLwc9HFBlOui60NENJCEdPw0+/dM64BIfCsGnERvrX Jrh8lX31mujNUFjL7k+FeXjn0u15D1Q= X-Stat-Signature: 4a1j4j5o8gbyrsea7o4wphfjgw3witgo X-Rspamd-Queue-Id: 636B5C0025 X-Rspam-User: X-Rspamd-Server: rspam11 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="Mc/z/AW6"; spf=pass (imf28.hostedemail.com: domain of hezhongkun.hzk@bytedance.com designates 209.85.216.52 as permitted sender) smtp.mailfrom=hezhongkun.hzk@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com X-HE-Tag: 1663946799-434968 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > > set_mempolicy is a per task_struct operation and so should be pidfd > based API as well. If somebody requires a per-thread-group setting then > the whole group should be iterated. I do not think we have any > precendence where pidfd operation on the thread group leader has side > effects on other threads as well. Hi Michal, I got it, thanks for your suggestions and reply.