Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1276920lfc; Wed, 1 Jun 2022 13:57:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1MfBHIcJG6gcpr5gETodGnHd655IjZ9xI5YpDLemY4a7BEARG1HMuyTf/0t2xTsMFO9Bb X-Received: by 2002:a05:6a00:c5:b0:51b:c452:47ce with SMTP id e5-20020a056a0000c500b0051bc45247cemr614938pfj.52.1654117054014; Wed, 01 Jun 2022 13:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117054; cv=none; d=google.com; s=arc-20160816; b=saKQDsFRaJz5s6+rVYkqnbIglFHiI0r+Wo1SRwZImlZIxSLkmTea6UakEaibj+F5S/ 3DDLiE2wU4CnxoNRoB3rvEaHhNaBmuUz++Fp6Ms0dvt7mF86HYh3hXk+tH2Fm6u5JI+Z l4Qb5ae/ZyNoOyy2DLdcQlpiS4ig3f+GSKSxc7Kr+N2SUxxDh8bEfFB1QQYRMgZmFHwT AjrgRIjUBjdjJMG5yU1oZoAgmsjlgQtu8HfSO0Kcfq3OexnJFyl6YDKpDuqmSm5JLvmt OWGi0ht6ttEbt2e2+SkAQ2WMfBPl72FA0utUQ1TXpuDUZGZ07CmosBicwLJXl1dpq48E pM1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yUzM6SCTjaU1mIdMVCprAWHtHI7nDAT4AcyKtphheFU=; b=ELtiCGVllrdHPXoXRSMKVva9kHEH3Skl2QWG9w8S2FD9RwiazH9r7NlsGgHC+PlivI IlJdIrSuu5kiAcqf9z3swt70Nca+QQmKi1Wm5VzPjyl5BdOPpPwFJWkCKiuxQ2we7cCO 0Ur0lI/pngXr1TXLMS78YTPfLqemMv2OccuC90WeEPDhDv1iYmfEklBoiNRyUmoiO7JA yx93lsZEWAj7sNs+Hl34lKCXsPsc78PqU7zNT+RAKoOaE594EvGNw43ZLE+lxSUcls5X k1wgFdhavEK9aykGR9EDqRxTFz5TIart8ko/O3sIK8QgwKUaluRjyaDQcrei3Pqm0jQz 8eqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=sepJCSSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v19-20020a170902d09300b00163e051ed3bsi2932421plv.338.2022.06.01.13.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=sepJCSSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DEA9321737D; Wed, 1 Jun 2022 12:58:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349729AbiFAJPz (ORCPT + 99 others); Wed, 1 Jun 2022 05:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346234AbiFAJPr (ORCPT ); Wed, 1 Jun 2022 05:15:47 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0561403DA; Wed, 1 Jun 2022 02:15:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 53DBE1F93E; Wed, 1 Jun 2022 09:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1654074945; 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=yUzM6SCTjaU1mIdMVCprAWHtHI7nDAT4AcyKtphheFU=; b=sepJCSScSco/ygJugTWsZ6WDsOVoPXEAXUJWsBt1nE7P68p+7hhw14Ir0wKgMPbTy6rfz2 uJoz2n6eIokFP4GbMKS4omn+EwCMNr51JNoG7uqDjtuvMQboSxieTjGqWXdvPY23kte/BX JNH8XgJ/JPc4f6ZESPn8deR8utON5ZI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1B8F113A8F; Wed, 1 Jun 2022 09:15:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id D/KqBUEul2JoagAAMHmgww (envelope-from ); Wed, 01 Jun 2022 09:15:45 +0000 Date: Wed, 1 Jun 2022 11:15:43 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Vasily Averin Cc: Michal Hocko , Andrew Morton , kernel@openvz.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt , Roman Gushchin , Vlastimil Babka , Muchun Song , cgroups@vger.kernel.org Subject: Re: [PATCH mm v3 0/9] memcg: accounting for objects allocated by mkdir cgroup Message-ID: <20220601091543.GA21320@blackbody.suse.cz> References: <06505918-3b8a-0ad5-5951-89ecb510138e@openvz.org> <3e1d6eab-57c7-ba3d-67e1-c45aa0dfa2ab@openvz.org> <3a1d8554-755f-7976-1e00-a0e7fb62c86e@openvz.org> <118bcb39-1281-0d1d-b163-3f6bcc99c3e2@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <118bcb39-1281-0d1d-b163-3f6bcc99c3e2@openvz.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jun 01, 2022 at 06:43:27AM +0300, Vasily Averin wrote: > CT-901 /# cat /sys/fs/cgroup/memory/cgroup.subgroups_limit > 512 > CT-901 /# echo 3333 > /sys/fs/cgroup/memory/cgroup.subgroups_limit > -bash: echo: write error: Operation not permitted > CT-901 /# echo 333 > /sys/fs/cgroup/memory/cgroup.subgroups_limit > -bash: echo: write error: Operation not permitted > > I doubt this way can be accepted in upstream, however for OpenVz > something like this it is mandatory because it much better > than nothing. Is this customization of yours something like cgroup.max.descendants on the unified (v2) hierarchy? (Just curious.) (It can be made inaccessible from within the subtree either with cgroup ns or good old FS permissions.) Michal