Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp359848iog; Fri, 24 Jun 2022 05:35:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uVeg2alxbUJdsvc9mXBLYIsMgfkLQvoEHsWo3u/8dKEQmf5xCjKKHi0bHaDXypg2dM316r X-Received: by 2002:a17:907:7b86:b0:70c:a99a:f525 with SMTP id ne6-20020a1709077b8600b0070ca99af525mr13205374ejc.606.1656074102263; Fri, 24 Jun 2022 05:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656074102; cv=none; d=google.com; s=arc-20160816; b=CuPtH8kaY9wLgqT5BoQ4fAn1QeY1zoA4kCkGjWhxds6zz7ZZShgjpcDF4XHJzf8Iv2 TFVB82CVv8c0f9i0Wr056NdBfdZ386SiaxZyA255DYhAalmAILhDwh9lsrXOjwLiqSt8 iTz2gSt27wp9oDzLoDXD3t2h6z42cH0h1HdgP3CL5D3oeFIfW0fR3dlRdGzrBkXSjy6j d7CT6W5xQDO3oADaNqG/SXUwgFM+Q4RCN4wmu30s/KuwGm/dQWOEVgYAHDXtjrIsgZW8 xczYStLI7uKz3L6R8saFaJpGSzryuT2Mv4ze6TmDdHCtvQu8QNO37MekwloCp+UdHczy I/rQ== 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=+3cWh7Nkfv7QaM5e4ajRtU4xW3swpukjf7WrfRWPE6E=; b=V3t7m4y5FR/jFgDosiuMxuAxdB8HuJMUUztWHrvIWA5D01lAEU3M6mpQA7tZNcMs+F H7jc6fFU/dGQRdwQIlyGFAzd42OUFGvQVBSnAfMOiFFenPDTjISTwjMnAeNLHlXa0yvE 2n4Sw+HBa/p8YvtigvqkLPczMrZQeY1TW5ozJVAyS0cyzPEFLK3SRtW3/4qDthIHNtQt PlxiXiC96knW1rEP7V6DPqFvQe4/MKylCl3cGnaZkG9IZUqJ7v7II/bBaZPNo+Ab2dpy EntnMWTSLECsGTdy8QZAYN+kuPRH1Rt4JGRo0yo55UWRP01F1DFaL+BZNiA3D/Ky/om2 MxYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=mrYLsPoE; 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 h9-20020a170906110900b006fe8d06caf3si2557738eja.906.2022.06.24.05.34.36; Fri, 24 Jun 2022 05:35:02 -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=mrYLsPoE; 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 S230143AbiFXM0P (ORCPT + 99 others); Fri, 24 Jun 2022 08:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbiFXM0O (ORCPT ); Fri, 24 Jun 2022 08:26:14 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35AAB47541; Fri, 24 Jun 2022 05:26:13 -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 CCD8A1F8BE; Fri, 24 Jun 2022 12:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656073571; 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=+3cWh7Nkfv7QaM5e4ajRtU4xW3swpukjf7WrfRWPE6E=; b=mrYLsPoEEQjRnhUtwsgNCoXCtrKNyvFVbXRqAwPxnnjWRxGMXjfszLzHbhAFKwx+uBW8CZ yuxjkWUMBCdNt+cgyQoLNqirpOBMsxu9PydMYcuN5QwltNVl12wnAOqK/fInVpSJGV7Mty XPJvhw0hfSqQTdSlEe9+UkTfFT9IMi4= 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 7309213ACA; Fri, 24 Jun 2022 12:26:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 197MGWOttWKZYgAAMHmgww (envelope-from ); Fri, 24 Jun 2022 12:26:11 +0000 Date: Fri, 24 Jun 2022 14:26:10 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Vasily Averin Cc: Shakeel Butt , Michal Hocko , kernel@openvz.org, Andrew Morton , LKML , Linux MM , Roman Gushchin , Vlastimil Babka , Muchun Song , Cgroups Subject: Re: [PATCH mm v5 0/9] memcg: accounting for objects allocated by mkdir, cgroup Message-ID: <20220624122610.GG16004@blackbody.suse.cz> References: <4e685057-b07d-745d-fdaa-1a6a5a681060@openvz.org> <0fe836b4-5c0f-0e32-d511-db816d359748@openvz.org> <0f8146e3-5865-b7e6-6728-5baada375cf2@openvz.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline In-Reply-To: <0f8146e3-5865-b7e6-6728-5baada375cf2@openvz.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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 --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jun 24, 2022 at 01:40:14PM +0300, Vasily Averin wrote: > Btw could you please explain why memory cgroups have MEM_CGROUP_ID_MAX limit > Why it is required at all and why it was set to USHRT_MAX? I believe that > in the future it may be really reachable: IIRC, one reason is 2B * nr_swap_pages of memory overhead (in swap_cgroup_swapon()) that's ~0.05% of swap space occupied additionally in RAM (fortunately swap needn't cover whole RAM). HTH, Michal --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCYrWtXgAKCRAkDQmsBEOq uTryAQCHh6ZZYDD+j5lciUOhDxLFMQ15T9S7Ty/OmIhNzCcXwwD/YhFGF7ylqaSv BYyT9akQtqnK5O1l1tmp4Hp0oIkmMAs= =mx99 -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk--