Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp282997pxu; Thu, 22 Oct 2020 23:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGTQ4SnI+XduiPh6oKgFMXktkEguvqIse077YyKOEHCTPmzTf3FJlUogh6bVv4KTjHEk54 X-Received: by 2002:a05:6402:293:: with SMTP id l19mr844165edv.227.1603436348374; Thu, 22 Oct 2020 23:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603436348; cv=none; d=google.com; s=arc-20160816; b=WpbaZEioXNTrC5arqeB4+idegM4ODmekEipxRgOhUa6DmrXUxRXKzk2PsYUbxR6xGq bnOz1JjL7RjF4eYFtHaY71tP8uPvf65LTqUfPIJjoaYGJQmSeu6Wyrcci+1YvqVzJloh NTBVcvwLntvmiPK7ULAYrt2XywW9hE/dtGhz31rU/Zon6nFSsHjuIpnAIjsRXwfc19sD 5hzqI8LI8SnI3R5tVm/gxE6eJ+RUE3BKpLcxBQj/FlmNUYYl/fifFBf43tv2SGxbOsjz ONcskByu+/Z3qCPHApK5WHM+w6xAkvelDQmBeSwXTqVC41hoIKQvslVv3oynFJaGmtAE TM4A== 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=iDXB6MzIAjPa6Z+bYdtdThdhAzUe/hH836F46Z6tXhw=; b=x2QOdejUpfyeUwuA9VzJ/gNq0I6AspgrNeelwGAXoGLAOjODrEDnhVDWfIwj7ZvCy4 F2KPN9ZIDLz0TNmx9DMtRRGQvMUfByGIj4QERkW0Ka21q5PB/EwgPHDc90qATVL8MW6k fCz0Vv0nSpB0/4zVPzMKCm41m2+bnpma1Fn4NYIAn4IrC/c6pEGuebRaKSwnoi1XrIcq zvxZFKFTtjBpFo/usI6YShChGE/s2JA7whdguErdRNqUjGQ/RKYLj8MmUp8RUrj6/Jzh gNvyOu+5hiicfdbxx6yJgPZ6GTQVNn7I8x4m/rFzFJCesFppLxSgKGcBivVdMag5vSjL OY5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=guRkvILP; 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 92si226167edp.262.2020.10.22.23.58.46; Thu, 22 Oct 2020 23:59:08 -0700 (PDT) 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=guRkvILP; 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 S373639AbgJWAAK (ORCPT + 99 others); Thu, 22 Oct 2020 20:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2901294AbgJWAAK (ORCPT ); Thu, 22 Oct 2020 20:00:10 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A601C0613CE for ; Thu, 22 Oct 2020 17:00:10 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id v6so4399889lfa.13 for ; Thu, 22 Oct 2020 17:00:09 -0700 (PDT) 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=iDXB6MzIAjPa6Z+bYdtdThdhAzUe/hH836F46Z6tXhw=; b=guRkvILP5wkBF+Y8oh3Zj7febDKb+DRU+Ww1jYwe0hatSbkoSvbf2KK84bXYRPYpEc UcIAxUjcnJZrINp5BGV6sKtKGNlAG6k3n3FkO8x4H/85YVV7SR/705oDXmT5x3d0yhVZ mG6PuVtvKHPX8zk3WDn7PAnWbJx9bjuy7E08MCpKuK2f7ke3p5BXY9C2tUa6TY/xPrMM 8qsv+MYRUGERFLfHpupKVI1x3jOXVV9VUezVFFIPeMf+nK0oIbHJevGLpn5M5RnUCXqI FgiXurXdocx0CUIqiFWILkvklKd3RHDh47dcC4y37Yo+GN5Ns+yckbpjeJjxnoSZ8MRo pzpQ== 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=iDXB6MzIAjPa6Z+bYdtdThdhAzUe/hH836F46Z6tXhw=; b=AMeifQC047/HLi9rbVnbZ8YbM2aoyc3rmq9ofY6XDkyuMblyHdGd/n2DVAjU4nyNAk BtXBj5bbLkN23oXljvGl7eFOy0HosvD6zz0dWpH7bK/hO86ZMo81TrbaDHKZGhWN5WVh H2hCO1ZiQQgm38K9QnoN8sO/Y+3zLUBXb3F5e/UE6QodDNZ54KESxpoxR2lJzc9t0joV 9BVfRcsjO9i149ASPk+2VUePFVkctu444y58U1Hee3+SPXmMYFgmgPdM38TNBPxjlwjI WU2WR7tb8Chy+HVhC8V+XBzhdIKkkTojXtIYuuSCopiVF6jNtFCTUuYVQ2kvQ3mA01dT uYhg== X-Gm-Message-State: AOAM531VcCXr4cIyvdlLcaDTrPbWPMd2eKfs99QPQ7Y8eCsUTpMc94Xh LVioSxlEHXpfOHofm+iEhX5G3Iv/I8aUz69ziZX8yQ== X-Received: by 2002:a19:7ed8:: with SMTP id z207mr577866lfc.54.1603411208087; Thu, 22 Oct 2020 17:00:08 -0700 (PDT) MIME-Version: 1.0 References: <87sga6vizp.fsf@suse.de> <20201022122858.8638-1-rpalethorpe@suse.com> <20201022172508.GF300658@carbon.dhcp.thefacebook.com> In-Reply-To: <20201022172508.GF300658@carbon.dhcp.thefacebook.com> From: Shakeel Butt Date: Thu, 22 Oct 2020 16:59:56 -0700 Message-ID: Subject: Re: [PATCH v4] mm: memcg/slab: Stop reparented obj_cgroups from charging root To: Roman Gushchin Cc: Richard Palethorpe , Linux MM , LKML , LTP List , Johannes Weiner , Andrew Morton , Christoph Lameter , Michal Hocko , Tejun Heo , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 10:25 AM Roman Gushchin wrote: > [snip] > > > > Since bf4f059954dc ("mm: memcg/slab: obj_cgroup API") is in 5.9, I > > think we can take this patch for 5.9 and 5.10 but keep Roman's cleanup > > for 5.11. > > > > What does everyone think? > > I think we should use the link to the root approach both for stable backports > and for 5.11+, to keep them in sync. The cleanup (always charging the root cgroup) > is not directly related to this problem, and we can keep it for 5.11+ only. > > Thanks! Roman, can you send the signed-off patch for the root linking for use_hierarchy=0?