Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp821466pxb; Tue, 3 Nov 2020 13:30:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvznGwHwDaPfu5gY2BlVYhcfIupc2LBPLBOjnn9pqq6QiL04YmCoh4YkQ5zZWgMk3yF24S X-Received: by 2002:a17:906:1e08:: with SMTP id g8mr21779745ejj.358.1604439038724; Tue, 03 Nov 2020 13:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439038; cv=none; d=google.com; s=arc-20160816; b=rLHwtjqExVQBiOIzmxioU1PXvlkwXc0OKXL1RVkd7JPE0BJSu9VEjvtmJi2GLltH9u uK6Ta9S04XuU2yycCoPk1krfrXOYDZWAdBgtEt8cIR9pRlZWKvnE8wbnGXSkjhwzkFga d7BP7K+MwoFQzL/ARZi3w9OT3T1K/fnEs1NE/w/dpzn/6UBdHa0J5QhMIRJyjMXUM8fw aJGulclJKUdKxfIeqkV4BpfArjAZyWpe+cXHqk+xElliV9KSsxebqpfpgPc0MYhpUPFc OusYTTHGLdpaPbyCy0fbMJiRe2EEyHfORCu+a6yBFq4W/Ljdzch0/uElm8HI/1eGgU/i VWeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yCke0IQHgrkifTuQ0Dl6dNGewQHXJuLVGHnNeFGrg0s=; b=O8KOeI2sIYFk7ay0yT3UV7EMmF7dA4x0LJD6LeoyU1qUyyelLkP7Btpu9vLXgXoC+M TppG/IinSG70lpox45Qq/psSCQHA+AbcVihAmObCSOjxm91Q5sNMcE8hHdvdQBCTx8OD AMZwpzOO7NWBSAw9kaMyfOy6N9inCnMhsbwBZopYg1uCKEeeOV+bJ6b5Tzp1QQ/y0Y3m q4kHjVk6SXhf6isyZGx4rloY04rA1/+DmKbctZwgek2s1UQnCHo9+vXAsB2URZmIjEQp sIwmhnjedD5TZterZ/+7maY9dJ505eLDuooN+3KRoboKDrjyrrhbMMWZDz2AkubflhM+ JSEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=L4luCOIZ; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si43296eje.464.2020.11.03.13.30.16; Tue, 03 Nov 2020 13:30:38 -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=@fb.com header.s=facebook header.b=L4luCOIZ; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388035AbgKCV1t (ORCPT + 99 others); Tue, 3 Nov 2020 16:27:49 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:25596 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733263AbgKCV1k (ORCPT ); Tue, 3 Nov 2020 16:27:40 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.42/8.16.0.42) with SMTP id 0A3LFQvQ030454 for ; Tue, 3 Nov 2020 13:27:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=facebook; bh=yCke0IQHgrkifTuQ0Dl6dNGewQHXJuLVGHnNeFGrg0s=; b=L4luCOIZI/FjNwF2ydDRfM7kwgCPJdUkLkJ7LANF4ZuEmz2NN0SK3i7eqz/l2aJwRjc/ AcSgT3UijlqJ+3phDhM21l3876FSPZYo8wIrDb4aC/1AivRrCs5t8lKeScEELRIT0eZP j+3tqC3HaNHkqzRKB/A6HNAVXticwfj+QvE= Received: from maileast.thefacebook.com ([163.114.130.16]) by m0089730.ppops.net with ESMTP id 34k9k3ahrx-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 03 Nov 2020 13:27:38 -0800 Received: from intmgw002.41.prn1.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 3 Nov 2020 13:27:37 -0800 Received: by devvm1755.vll0.facebook.com (Postfix, from userid 111017) id 5A5F8202668E; Tue, 3 Nov 2020 13:27:27 -0800 (PST) From: Roman Gushchin To: CC: Andrew Morton , Shakeel Butt , Johannes Weiner , Michal Hocko , Tejun Heo , , , Roman Gushchin Subject: [PATCH rfc 0/3] mm: memcg: deprecate cgroup v1 non-hierarchical mode Date: Tue, 3 Nov 2020 13:27:22 -0800 Message-ID: <20201103212725.3716088-1-guro@fb.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-03_14:2020-11-03,2020-11-03 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 phishscore=0 mlxlogscore=565 lowpriorityscore=0 bulkscore=0 priorityscore=1501 adultscore=0 malwarescore=0 clxscore=1015 suspectscore=1 spamscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011030142 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. This patchset removes the internal logic, adjusts the user interface and updates the documentation. The alt patch removes some bits of the cgroup core code, which become obsolete. Roman Gushchin (3): mm: memcg: deprecate the non-hierarchical mode docs: cgroup-v1: reflect the deprecation of the non-hierarchical mode cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy .../admin-guide/cgroup-v1/memcg_test.rst | 8 +- .../admin-guide/cgroup-v1/memory.rst | 40 +++------ include/linux/cgroup-defs.h | 15 ---- include/linux/memcontrol.h | 7 -- kernel/cgroup/cgroup.c | 12 --- mm/memcontrol.c | 90 +++---------------- 6 files changed, 29 insertions(+), 143 deletions(-) --=20 2.26.2