Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp438678iog; Fri, 24 Jun 2022 07:02:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAT2Y1onyeOyKkuPufZt8AMi/qxfYVaTL70dcKRGgZxwEo4e4Q/nrx8wDwq2KzZU7TH9Hu X-Received: by 2002:a17:90b:1a8b:b0:1ed:1202:32fb with SMTP id ng11-20020a17090b1a8b00b001ed120232fbmr4242701pjb.9.1656079352542; Fri, 24 Jun 2022 07:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656079352; cv=none; d=google.com; s=arc-20160816; b=qnaW/MjxkLf+Ba2xLDAwUeYR50FEJfPDmhwtTA1ZivKTLQB5V4AJzTPbHOBaICzR5J v2gBaBknm/AIWT034WDF0SZr/HSYXKL+xS8dkdnLZdSYx1yejMt9egmZ7aUp/ZLFVh4o CR2ZaRrKz+V6KyMzws/w7MzLdLevObN8rFFTHGcgUlH8gg05mZxpPdM/kgX8aFqdnt/R oNdycJXKnO/M4FjoLWZY9Fi/K3uR4YhdOdj0ufSZjTpcywx5jtvc+EjMnGRpL3PAmEeN PbKt0d4mpxah4YawMLFxQqlE6CpISVCT489PiSoI2h6ev1zRJgebYdOWh53nLdYG7aV3 DkqA== 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=2w1L23+IbYV6NN1uakoMnM4Ln36dQ8vdC1Lu+6qgUGE=; b=1Fvxav8uJbuCbW7uFjXN8ehjy88reHJsW4wiZ7ljkk1dolUjwTcG1lZtknkuG6TomJ zsXn5yMa1VGL6sHrXa1ZA5lLOmU6fLKa/A5JlkywdaFKvfA+10Vy6H2HuzW29LG/GALc lxFWLUMifRkpsN6mfHyeWboIJOBSvosfHi48uKzv40vLrfnWR24R3i/NGWmEWjHY26iY NcE6d7+jqHlI/GlyTrGpw1sX9sbGtMFPsqiSg4EzgV6LnsXWh+qucNFeu/8qqFP1KQxt 0FLxBOEwO3Gxowj3oGs3gyJRlfXFwqRyFCv9arCcAdBCrmKTUVrNhaBq60x0J9YrXmgd yu9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rnrxBaL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a170902d4cc00b0016646a4d661si3452224plg.377.2022.06.24.07.02.18; Fri, 24 Jun 2022 07:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rnrxBaL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232224AbiFXN74 (ORCPT + 99 others); Fri, 24 Jun 2022 09:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbiFXN7y (ORCPT ); Fri, 24 Jun 2022 09:59:54 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBFD34DF4A; Fri, 24 Jun 2022 06:59:53 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 7A0131F8BD; Fri, 24 Jun 2022 13:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656079192; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2w1L23+IbYV6NN1uakoMnM4Ln36dQ8vdC1Lu+6qgUGE=; b=rnrxBaL9L5/alzpeiarh24yjJKETzL+5hZn/bNLXr9qnxJB4OputXmn+PQbI6yJrMHOWC1 J8yvQ3ooToFm+hyLDaXikq8rdGG9IAS8LNLT4TBOD3hSKY7HkpjmYw/nq2f526Yd+3cdoU Pm/WnARFLWJ2zx0fP4apGU2OaGlE1oA= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id E778F2C24C; Fri, 24 Jun 2022 13:59:51 +0000 (UTC) Date: Fri, 24 Jun 2022 15:59:51 +0200 From: Michal Hocko To: Shakeel Butt Cc: Vasily Averin , kernel@openvz.org, Andrew Morton , LKML , Linux MM , Roman Gushchin , Michal =?iso-8859-1?Q?Koutn=FD?= , Vlastimil Babka , Muchun Song , Cgroups Subject: Re: [PATCH mm v5 0/9] memcg: accounting for objects allocated by mkdir, cgroup Message-ID: References: <4e685057-b07d-745d-fdaa-1a6a5a681060@openvz.org> <0fe836b4-5c0f-0e32-d511-db816d359748@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 23-06-22 09:55:33, Shakeel Butt wrote: > On Thu, Jun 23, 2022 at 9:07 AM Michal Hocko wrote: > > > > On Thu 23-06-22 18:03:31, Vasily Averin wrote: > > > Dear Michal, > > > do you still have any concerns about this patch set? > > > > Yes, I do not think we have concluded this to be really necessary. IIRC > > Roman would like to see lingering cgroups addressed in not-so-distant > > future (http://lkml.kernel.org/r/Ypd2DW7id4M3KJJW@carbon) and we already > > have a limit for the number of cgroups in the tree. So why should we > > chase after allocations that correspond the cgroups and somehow try to > > cap their number via the memory consumption. This looks like something > > that will get out of sync eventually and it also doesn't seem like the > > best control to me (comparing to an explicit limit to prevent runaways). > > -- > > Let me give a counter argument to that. On a system running multiple > workloads, how can the admin come up with a sensible limit for the > number of cgroups? How is that any easier through memory consumption? Something that might change between kernel versions? Is it even possible to prevent from id depletion by the memory consumption? Any medium sized memcg can easily consume all the ids AFAICS. -- Michal Hocko SUSE Labs