Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2307280iob; Fri, 20 May 2022 06:39:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeje1h25kTJVjvF5xAMpB5wbL4hIkZS28APjLrWEIzbkzaUYJoLCqgs7/MBMwecqTzbPVw X-Received: by 2002:a05:6402:354f:b0:418:849a:c66a with SMTP id f15-20020a056402354f00b00418849ac66amr10840198edd.234.1653053954454; Fri, 20 May 2022 06:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653053954; cv=none; d=google.com; s=arc-20160816; b=KJRW6rR1+lUfbsLoQfssrC6Cf/EAweSAmTXq576q0PCEUeKyPwqN4oAWlNljOCdt4P 0uNZU3OxrYmDXPDBZ9N+k7J2J5O/neH/L7hxP6j2hLuC3kvsmgBGfe1Sywa6+40mLwbM YEoQE3xAKETyBXCvWQ1XMD6KQXkN/eDrBnyHJBV0FFuixZXeSXi92clcqp0Tr197fpBK Hh0V4RQf+NnE7QfcCWLNCe9h9sq2Gf5ZCMHPYtsjFEI4Ry8UbChz7Q3o2dygs0glDyJR wZL8Le+CuGYd4Sbe/BdcQgZVlFRPL9Q49nGQKmmkO9qplXYPSyX1aFazSS9StJKR7ceT jtCQ== 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=6frXTBgzGRsjQpEWOm3xYp6acz/9cACY818c3GjmbTE=; b=HK3dVj0X+hXgGSGofrBzMIgdlJRFjR/C2ZvTN6Td4b6c2ElOhLtXE6z8XS6errPbXQ 4/vzR4kIpqHOMOkvJWqGCyYVaLvnhrZ6ausAVlFDBL58PRFtw/rwiFac/AnqXa3HTzMz XbUd3+pYQAw9vK3EIlKBDSd5i/cLugVjhAlwkNwY3NgQ2gNxgfmDUxojdOILxjaX41Qb o97NYq5oQKzKu9kAwo43FGEt3gwWQgo5R49p3t9GIeVVbO3Zh9lF/2+zWHC4zNftb+Qu 7QGoN+24e5/BFiqXdm2izyD5II2aHFDWWVFOiIQXixop6lHUQ6Z6XxMo/gx++UDe+evm pETg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=aU4Zz5L9; 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 hc8-20020a170907168800b006eff1696032si10100682ejc.14.2022.05.20.06.38.46; Fri, 20 May 2022 06:39:14 -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=aU4Zz5L9; 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 S241937AbiESQxg (ORCPT + 99 others); Thu, 19 May 2022 12:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242206AbiESQxd (ORCPT ); Thu, 19 May 2022 12:53:33 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 676CC66C84; Thu, 19 May 2022 09:53:28 -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-out1.suse.de (Postfix) with ESMTPS id 08AD521BA8; Thu, 19 May 2022 16:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652979207; 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=6frXTBgzGRsjQpEWOm3xYp6acz/9cACY818c3GjmbTE=; b=aU4Zz5L96bfOjnVSWwfUl/ZOl+pAHsxcqe088kJSSjOLa4Lo/g4x6rXHcEeW56lZA8rXfn Zd72o8ccBgsUKXmWVf+tFT7ICCA3Xn7X1C1Dh3B73jS5NH59GNa1+Osny2pwZrHT6DYSl8 I73RnhMuNCm9ZcgAXED12k4VMQysZuA= 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 CB63913456; Thu, 19 May 2022 16:53:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mAutMAZ2hmJHCgAAMHmgww (envelope-from ); Thu, 19 May 2022 16:53:26 +0000 Date: Thu, 19 May 2022 18:53:25 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Vasily Averin Cc: Roman Gushchin , Shakeel Butt , kernel@openvz.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Michal Hocko , cgroups@vger.kernel.org Subject: Re: [PATCH 3/4] memcg: enable accounting for struct cgroup Message-ID: <20220519165325.GA2434@blackbody.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Fri, May 13, 2022 at 06:52:12PM +0300, Vasily Averin wrote: > Creating each new cgroup allocates 4Kb for struct cgroup. This is the > largest memory allocation in this scenario and is epecially important > for small VMs with 1-2 CPUs. What do you mean by this argument? (On bigger irons, the percpu components becomes dominant, e.g. struct cgroup_rstat_cpu.) Thanks, Michal