Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp488145pxb; Thu, 12 Nov 2020 08:35:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzTMNnE965m8mZIS3RUBQ6CJzvJ0JKtd32u3WezGptgEB/Oi1Aw6OIH972d5kJTSFbgWGI X-Received: by 2002:a17:906:cd0f:: with SMTP id oz15mr124751ejb.228.1605198924267; Thu, 12 Nov 2020 08:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605198924; cv=none; d=google.com; s=arc-20160816; b=U1kkMyugEVvwbB+gQsk7dU+N4RATGugLl9ZE8ZgiVrWwy+JDWSt5rlwofn63vjQ+Z+ KyNaOR0vQy+MEMVkL7umVSKQbdHevGHv/AgnWpayg2atUuHauV89dtdTwOkk0nX9UOf3 x/VH7eEuwozhDHkGO9UfrBonTtnP+mTS9dyvv0L0EnnbVpQwzqOAW/v1m/u1whpHFwRb 7kAlQvwgw3gkNZIYLU+LQTOPztasSeV4+Le/MGc4TKnQMTCxydbMXApXpxawfJwJE09d sctbdG5tJ9t/y2Bd8CvAzm5Zj0C2SqiVR97vgLcTbwAHEE+1FJPphsqlLtv5CV2sb4Iw 95Ew== 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:dkim-signature; bh=WFwVbiWdrg8oJ19mjUEtG44KctcAB071Kx6FOG4kRls=; b=TnbHeeZYVgzFpJHlMqYN52Vh5z6ms8T4niJmc6j4zatoXaD0gzPwJCYhxnCbjqVbHX tqAfRJXt6D26/UdVHqYv9tZX5tk9F6F41MgpcACrgLL3gxpa9aL37L+72dDag2+AI7EF UiEA771lFkZa4mGQVY8GjKdrFDyskVnVgSHyMwZKmM3hlibOANi3gUDigSK6M/Z0HiLO 7YBNYJvY8jcDViaZrUEn1WdrCJATpXNHVIbvcy+EFzdFoi904fdR687ULGfIwZWRSl9B FaiwQ2bgo5wqk2QYVPn3nxJW0wyDkwqaeUvqUK//nlKmcs6WY5iEWAhyhjmeFonGXlYj D8Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=ioQQCFc9; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw6si4079083ejb.295.2020.11.12.08.35.00; Thu, 12 Nov 2020 08:35:24 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=ioQQCFc9; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbgKLQdK (ORCPT + 99 others); Thu, 12 Nov 2020 11:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbgKLQdJ (ORCPT ); Thu, 12 Nov 2020 11:33:09 -0500 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E472C0613D1 for ; Thu, 12 Nov 2020 08:33:09 -0800 (PST) Received: by mail-qk1-x741.google.com with SMTP id q5so5774198qkc.12 for ; Thu, 12 Nov 2020 08:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WFwVbiWdrg8oJ19mjUEtG44KctcAB071Kx6FOG4kRls=; b=ioQQCFc92AOKq8ku9H7tDHa5YhM0n8KmogoyRJZ1izXrF2YSEm1jz4/ZZbjTla3pbU fclII6E/2sTEzMOG+SIiftXnNzLwy7R96k1GECnLJ8oTqjpGzwHw1i9T88ZAD1eKjbRQ DeKX77e9EPadN5w8gLhyj2V5R+XL5S6nVx3rNKcwhwQ4eMmVHwgwE6B6kxEwKuy6yAF2 mYpCA9rA/uMYFE0OLBh9yfZbLBKvJochpE4Y0v3CJNBbN8oRYW9zNShsjitkkqiUQI2l WMANBp+9ijGOneGubckyGfTQsVKw4/DJBUSHLQcOwtxZURZO8KoEm8CPSd/KDtSFXbOX RJSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WFwVbiWdrg8oJ19mjUEtG44KctcAB071Kx6FOG4kRls=; b=LyCcd3mnDm3QW7hYzDCZVME1Oxh8BxpJuVi2kYpU5uyyeL9p8jTvsiS0BVMvwRjZx5 TiZMoCi/+R9JHSRRpH1Yt5jjXHDCk/lxyeD5JHnWWoKx1haiRuswgPvjW/z+zv6RfNhn 6I2oz3Zpb/Cpl8lRY+O/BLdiMGpn2Zv+fT9yIcGNMw+PpaCoNuQVpu68Wxzncz5UsJB3 hvIFhuh+a0xVa/u2LQjs/bdPfIPFp3Ck3URc0AxXwaMTI/ZPhplW+fuQ9Pj1FyTZzc6I nTPPybVDU/Wa10jpeCZHLDfNo9jFKD1NsIvFdXppKJ2Zzj+oHloIqF3g5Y9D67ENrou8 O4yg== X-Gm-Message-State: AOAM532PzUNrYcuL2iQ9ZAl4B22WRD61t5uio8WsvxXyI2a7JkRIb8Zf Qw9FiWVMm/Dtbc9bpf8qRRh6vg== X-Received: by 2002:a37:f513:: with SMTP id l19mr627725qkk.36.1605198788795; Thu, 12 Nov 2020 08:33:08 -0800 (PST) Received: from localhost ([2620:10d:c091:480::1:7257]) by smtp.gmail.com with ESMTPSA id v15sm4852426qto.74.2020.11.12.08.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 08:33:08 -0800 (PST) Date: Thu, 12 Nov 2020 11:31:19 -0500 From: Johannes Weiner To: Roman Gushchin Cc: Andrew Morton , linux-mm@kvack.org, Shakeel Butt , Michal Hocko , linux-kernel@vger.kernel.org, David Rientjes , kernel-team@fb.com, Michal Hocko Subject: Re: [PATCH v1 1/3] mm: memcg: deprecate the non-hierarchical mode Message-ID: <20201112163119.GC873621@cmpxchg.org> References: <20201110220800.929549-1-guro@fb.com> <20201110220800.929549-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110220800.929549-2-guro@fb.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 02:07:58PM -0800, 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 > Acked-by: Michal Hocko > Reviewed-by: Shakeel Butt > Acked-by: David Rientjes ...and don't let the door hit you on the way out ;-) Acked-by: Johannes Weiner