Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1358939pxb; Wed, 4 Nov 2020 07:00:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwczp0xz/bzQ2XsRNx3cTFsMOqs+9a78DcpyPpYiXHEsgWXFR9x4iPmQm9WWD6rug7ix4xn X-Received: by 2002:a17:906:6409:: with SMTP id d9mr25429225ejm.344.1604502033712; Wed, 04 Nov 2020 07:00:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604502033; cv=none; d=google.com; s=arc-20160816; b=ClGWAjefDWtrSa8aCmIUeAt5BmavImmAn0N3z2QZKATJlvE1nXwPEowVsGIcMjb8FY 8K/YhKMfrpv+ZwnnOqZV4qFwCpMmioDBNaJUb/1r6MWOXj//sfalcGx8RfgS0GHrr7dC 38vChRiO962za57F7j6MLCbTR8HmgR18NfpM+NKnpudXNV4aHnBh7KfZ219oiNzGbb3q /L4WiV7pRD0wYpWZ0tawFICPa9WXwQ4Ne44XxqLJpk7GJVhqp+oTsZaOOGAJryuZeQg2 UsvPG61q2GpeO3R0b/tdEhDfh6DdbgWs85IcuGfBa+ll2BCNy2EIWoQBLcExvkqXGZEb Xnyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gBA94tI3EQjgMI74m6BPVN41GViyC2ztxPzm1ZOqtVA=; b=F82L+m2JMQYh7nDNVz01OwKpP6C/Nweskx7oDvyec8qc1RH90AJjgyq5DTXh3ePQja C6dsNeOaw9F8AbK5dbFMVxus7YIv972pqG6G0+h1K3SiprMPmiG4nxzjI/lOSXxl+Xzn 05wt2+Mccztaqg84OdKvtuBaVTEPA8O/qSKX6IOfsLIgLKWE6Jmv1ChvltNLD9ZxBVjs qPBncclRkosjrL6GOehYiogEufVFw31LimkGmtnKHVc4qlOzg3nKom13ptctyu3pNEpK hpRG5KF6JVzPcnxSM14nAZN5YtR6PmuqW095Q6OoRTho6RSSO/xE6omnuqJcd04iFv/o NqBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FPMp+JtA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc1si1403774edb.495.2020.11.04.07.00.07; Wed, 04 Nov 2020 07:00:33 -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=@google.com header.s=20161025 header.b=FPMp+JtA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730254AbgKDO6s (ORCPT + 99 others); Wed, 4 Nov 2020 09:58:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbgKDO6s (ORCPT ); Wed, 4 Nov 2020 09:58:48 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98A4C0613D3 for ; Wed, 4 Nov 2020 06:58:47 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id d24so23244009ljg.10 for ; Wed, 04 Nov 2020 06:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gBA94tI3EQjgMI74m6BPVN41GViyC2ztxPzm1ZOqtVA=; b=FPMp+JtAH457XBNVzdLVMQn5yt2IsrHbrP/ySibBE9QTXaEvSVxyCGpdv19W/MEZjp Y9qTJzZM10R4D+ms68IbbM3Jxbg8ESwvK2atHydTM21B9izBAGjx/I2MM7RBC6xrRQ0E WxBQXjOk0Q3CI1xCRu0vKDunFY/ysY3Oo1AUGsesYonXYmsrrOhhfdzVaEgTzlUHiZ1W o91AHNQaJXWS9k3hG6e6ByM9Zh3EfzssToRk/F/RsA0BQyqIHQiXanreLdydPkBHDyx+ hJdjSLIhtuOwyqaJj4lMDNa2k2Pa0Tdoj2dPMU/dJ1XFVzniyz/csFQfQpM6FcCPesDl 4WpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gBA94tI3EQjgMI74m6BPVN41GViyC2ztxPzm1ZOqtVA=; b=hNiCLfF4zugdh5U6F8kVOCnhbF3d/mQ7chqXa+9nnLvX6fZxnX+qYP+bEMIrzZYyn4 hu9e806wOq45tM+UFJLcGgmEI8+Plys/f2tEdD53OciGJVWNrnIz8B0wcnAjp1DLQr39 gHMfI+j7DSNbPCc/RAkrXIUCE6RFXZzweSTzLKS/TF2gZoDdB878+BMF1DGR7276OX06 HYzp+pQyd3Wjtagwtix/nvlZZjCcmzNJ5BfmL92r35PMX+GE+tQ0r0KcuAwfQpkeA/1J puphUl2pgsiRHb43PicUDdd8EXx2MHFX3t3YhcKmRP8PW72U+LQrB2RyW9x/aHQJUoGY Zf1w== X-Gm-Message-State: AOAM5328VXZo1SIL35sUfcKcq3z2RhNcfef5l1hPw80qJvdn4jcovZel fjry/3Svek+saPGgHE1Cwb8aJK35Y8RN3zRtzD7Q3A== X-Received: by 2002:a05:651c:3db:: with SMTP id f27mr8698539ljp.270.1604501925939; Wed, 04 Nov 2020 06:58:45 -0800 (PST) MIME-Version: 1.0 References: <20201103212725.3716088-1-guro@fb.com> <20201103212725.3716088-2-guro@fb.com> In-Reply-To: <20201103212725.3716088-2-guro@fb.com> From: Shakeel Butt Date: Wed, 4 Nov 2020 06:58:34 -0800 Message-ID: Subject: Re: [PATCH rfc 1/3] mm: memcg: deprecate the non-hierarchical mode To: Roman Gushchin Cc: Linux MM , Andrew Morton , Johannes Weiner , Michal Hocko , Tejun Heo , LKML , Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 3, 2020 at 1:27 PM Roman Gushchin wrote: > > The non-hierarchical cgroup v1 mode is a legacy of early days > of the memory controller and doesn't bring any value today. > However, it complicates the code and creates many edge cases > all over the memory controller code. > > It's a good time to deprecate it completely. > > Functionally this patch enabled is by default for all cgroups > and forbids switching it off. Nothing changes if cgroup v2 is used: > hierarchical mode was enforced from scratch. > > To protect the ABI memory.use_hierarchy interface is preserved > with a limited functionality: reading always returns "1", writing > of "1" passes silently, writing of any other value fails with > -EINVAL and a warning to dmesg (on the first occasion). > > Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt