Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp318999lqo; Fri, 10 May 2024 00:11:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPphFcUvV6E4KYFolUGDo8uNT/lHkag6nMrgyQPHom3UUKqJd9+QO2vKTZmquwJrZ/GgLjcqhBo10zyQT4D+u/E4TETZVFdq78DI2NUw== X-Google-Smtp-Source: AGHT+IF03j23j+RPeKKn+MCc8d8U9tO8SxDjfZx16w6wPRwyhTVwwWE3HlGPCY6wPC0DYrgRvzs2 X-Received: by 2002:a05:6214:2f8a:b0:6a0:c768:6a58 with SMTP id 6a1803df08f44-6a168213ca9mr19257566d6.48.1715325087268; Fri, 10 May 2024 00:11:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715325087; cv=pass; d=google.com; s=arc-20160816; b=eg2169i6rjERBDYcs4/stf9OIe8n3KuY8slh/9PZulWE9SOEd+ppQYh4bB2actrYz6 a3yab0BJLsE9ZjVb4AyQuLaz01caCbWUzFsZJaKt/xwP+vG1pu91fXkvFBpOSiPN2Vhl vPffB19Zod/OEYVe7EiY1eHu0h+fa91FOOUvS7T6hSybC88KXIcKmArGS+GREKyNTACS v8ChqgjuZNw8qKa68Iib4t/QalU1b1PoXrjq+k7iky5LNEcg9Cn9bhtlA4PmWlRx0SwG U8/ec90r8nioKOhBsUAAFtEdXsnbuB7AGa3T95WsgqtOBuNIgiFL6gjylFLUneZ/ji+W /pMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=uSDPOFZMBtE0jEK4V0BRpEm5DCDPQotJmApYGjORHp8=; fh=fdYuaPavtK3dfPghdFttJk2X8twgTphbLlq8k8mKIw4=; b=mlZcKVoRektoFHuSXxzy1Z29IL9tUhGwymQmIR+McpDJjSQhG5As32xa+LwM2motG+ +Qo3CIKDUq9xTQ9lNqWPzsrb/Kj87UHpRYw8TB/DbcUBuB7SRAVHg5HoesKtfV9rcUnZ /A45A5gR+FOK1mIM9dPhNqfLpHMo+xfLM/pcPY3O8hLUEwqQkN2xPRbvjED1p009B0iq fGkvmEeDNjU+sMm2gjkl7gI3JeVfQBj6BJLfGWNTMw/15OSggJUhtW89W+tG5Cm3y+qC uk0bsAf/f34gmoJMpEi//AFK58+e5PrgeBotLQUdFDysDIxFcuiB9Z1z7UqIx44YgGBq YqHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fc8ZH+SQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29a536si30878916d6.216.2024.05.10.00.11.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 00:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fc8ZH+SQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 04F8E1C22084 for ; Fri, 10 May 2024 07:11:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C6D415ECCB; Fri, 10 May 2024 07:11:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fc8ZH+SQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4902515B147 for ; Fri, 10 May 2024 07:11:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715325067; cv=none; b=ZC25IGf6ryDVm3kZAdDmR8nm/04ITItELX4INPqEIBCKq90h2t8SQM3dpGooVMbJX3w0febzjfx4vhXDbY04l053IEwhkLJSsg3u6tRl9dK8loQhV5PFZijwGbJFM7by/hWbyczybcRTZ30mqeETDIlEblF/6tK++qnJBwY74SA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715325067; c=relaxed/simple; bh=Z9ApargRseOze0lK8nAdGp6lAx3o/KGDjDeb4qiKKMg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OI4ZsJ0zSJvAnGFMQ8rSHZzgsPEtrMMw7IjP/cPXoFt0zYOT3zLekCj8zf+aoa01lixfwREprLDpLU7sNrs1BIkg+9tnQDlcL2toHGWCQlU/fZspLgHFStsJ5UimmDuDnsY05/J5kGV0d4IEQ+19pVzSR5iHVX0XQkkWklaBi68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fc8ZH+SQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB230C4AF0A for ; Fri, 10 May 2024 07:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715325066; bh=Z9ApargRseOze0lK8nAdGp6lAx3o/KGDjDeb4qiKKMg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fc8ZH+SQsgdJVx0arRPTSzS8k9BzelNIFR6Fl+f0sIlZv8Zrf0VwCEntmkBty1ijd JKlUxuHh0uMzN/jmr5DC8urZdNthfEPeUJJP/To2HRGR8A/3q0elOufGSR93FZ1oDE 3215IsTYvZ7Rc9RuvaJtuXkV6j9tAleuXqsA20StgN5R5UJyOFgzgOYhyBUSO2nrWJ 0nkyxeM073NEOWedWyuU9M5R24oYoPjkhVZAW0L/wv9YTGy8QM1m2hNkwA/gvbf5yU jCtd70dxGd+68KI1QuC+7W5b9h6qhlrtPn9qxPts/jRb0rSU06lxbBZi6VUFi+Iakq ipzea0SE6ER5A== Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-36c703d13e6so7162875ab.3 for ; Fri, 10 May 2024 00:11:06 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUuSn4JEWHiQgtbb2fSCgJcKFrAPzlOD0AnxxnDW6gAXFkZWAZAcILE2cumZhBr1ODgBSDwjGU7HOGoKqI5aY4MUpNRUvxIGy529nZl X-Gm-Message-State: AOJu0YwGFB7sEQBm+p2GINd4IoQa1Z7G/mtMz3woEj3dT6c13Nv2iPGs z3ucA2NZ8LdfRRoUsCz3hKmYsEZFoRAPUWC2zz2jazEH4QENvGV+tH17pGAnWMH/6ohWbW2CIBi Z7DxiAGjwehQrrIJw9RarptMVLK/IYvUquNXH X-Received: by 2002:a05:6e02:1c88:b0:36c:84e0:252d with SMTP id e9e14a558f8ab-36cc1501b7fmr21479035ab.27.1715325066029; Fri, 10 May 2024 00:11:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240509034138.2207186-1-roman.gushchin@linux.dev> In-Reply-To: From: Chris Li Date: Fri, 10 May 2024 00:10:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH rfc 0/9] mm: memcg: separate legacy cgroup v1 code and put under config option To: David Rientjes Cc: Shakeel Butt , Roman Gushchin , Andrew Morton , Muchun Song , Johannes Weiner , Michal Hocko , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, gthelen@google.coma Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 9, 2024 at 7:59=E2=80=AFPM David Rientjes = wrote: > > On Wed, 8 May 2024, Shakeel Butt wrote: > > > Hi Roman, > > > > A very timely and important topic and we should definitely talk about i= t > > during LSFMM as well. I have been thinking about this problem for quite > > sometime and I am getting more and more convinced that we should aim to > > completely deprecate memcg-v1. > > > > I think this would be a very worthwhile discussion at LSF/MM, I'm not sur= e > if it would be too late for someone to make a formal proposal for it to b= e > included in the schedule. Michal would know if there is a opportunity. > > I say that in light of > https://lore.kernel.org/bpf/ZjL5b-zipMrV2JSg@archie.me/T/#mb6c21b09543c43= 4dd85e718a8ecf5ca6485e6d07 > as well for the whole cgroup v1 -> v2 transition. > > Chris, now cc'd, would know best about all of the dependencies that Googl= e > has for memcg specifically. Thanks David, Yes, I am very interested in that cgroup v1 -> v2 transition discussion. > > > More specifically: > > > > 1. What are the memcg-v1 features which have no alternative in memcg-v2 > > and are blocker for memcg-v1 users? (setting aside the cgroup v2 > > structual restrictions) In the list mentioned by Roman: "soft limit reclaim, oom handling in usersp= ace, complicated event notification system, charge migration." The "oom.control" and leak of user space oom control is a big one for googl= e. Some test frameworks also use "memory.force_empty". Soft limit reclaim and charge migration is also used. There is also the combined "memsw" limit enforcement. Google has some internal work around for V2 but it would be good if that upstream can support it directly. BTW, I know you are not looking for the "cgroup v2 structure restrictions". Two cgroup controllers that can't have different sets of processes is a bit too restrictive. That is what I recall right now, I might be missing some small odd items. Anyway, glad to join the discussion if there is a session. Chris Chris > > > > 2. What are unused memcg-v1 features which we should start deprecating? > > > > IMO we should systematically start deprecating memcg-v1 features and > > start unblocking the users stuck on memcg-v1. > > > > Now regarding the proposal in this series, I think it can be a first > > step but should not give an impression that we are done. The only > > concern I have is the potential of "out of sight, out of mind" situatio= n > > with this change but if we keep the momentum of deprecation of memcg-v1 > > it should be fine. > > > > I have CCed Greg and David from Google to get their opinion on what > > memcg-v1 features are blocker for their memcg-v2 migration and if they > > have concern in deprecation of memcg-v1 features. > > > > Anyone else still on memcg-v1, please do provide your input. > > > > thanks, > > Shakeel > >