From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33073C43334 for ; Fri, 24 Jun 2022 12:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbiFXM0P (ORCPT ); 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) 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--