Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1945925ioo; Mon, 23 May 2022 06:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIZ1+ZWOcooVZCAaeTjIWTkIb/Nf5R8ZPIfSBLXll15EQSmUTHXFKVhqbI19lnym2fcCiT X-Received: by 2002:a17:90b:1bc6:b0:1df:cb4b:836e with SMTP id oa6-20020a17090b1bc600b001dfcb4b836emr25986809pjb.117.1653313973267; Mon, 23 May 2022 06:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653313973; cv=none; d=google.com; s=arc-20160816; b=TMIlPu0sJqUZ5b6KwBiD3g34F3qL3esxJiIUPSUERqyz6YGzCCnh3Xg1s8tIT1lBH0 rNtG3t1VC4VocPEzPGRmlSr7jF2z6rcYoogneeuZ+wPUdvpl0hVgSDk7enmslgX0tlk0 NHrx8UBXGjkPEPafkqlBi+pje7bdxCGcw355berUOqpfqQMukn67eGmEyKXxVnY9Z9tt 4tJdu5IRXwA1r3LCzwsPxwnrinGk8B60NLbvCs/4d039DsrnPZcYwxq0ezTyHJ4yrLEp pN4lVIskJKKEImzGprbQKferLWyspc+jLr7hL5lMfL13Mqo0NTO/emQN6udEDC6y+dPf fNFQ== 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=xwcI3FVHBcC1TOlzjqedkegcwhoAh+yee1Q1YN8LxAI=; b=RJxldOWiMsrZ0uA+V5rIMZ4fZVT5jgNEbvWs+9E2wx3zJoxy2CAsYcUMGY0Lg8HxvU EpgJPOjT40ctj4P2rGgjSPsnOnSkKyteetyU2hs2jw5ZLH8KCxS3JgFsv6vCTNffC3pz iBZsl4GKP+XH0Ll+qS80cOfOXyKuoBWUs40yP+9J5CR3nZyKLUDCIjBBbq9XGCmO8BsS p/aZ4z1C9BjCbWgGgiTxv1u2Qo+QbsbIGb/DVqrZ6bcMx4H50iy7ogeshXjk60HzTWiq hTV4QgXbR+VVV7Ig4orRdygt61mE8YdSo/nmc8ikC8nVBbOAAvQ8sEeBhnqRa0RAMsg9 4D3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nyh7ZdOC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id x1-20020a170902820100b0015874dc3247si9952676pln.170.2022.05.23.06.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 06:52:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nyh7ZdOC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 3AA3F5675D; Mon, 23 May 2022 06:52:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236599AbiEWNwo (ORCPT + 99 others); Mon, 23 May 2022 09:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236402AbiEWNwm (ORCPT ); Mon, 23 May 2022 09:52:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D2542A13; Mon, 23 May 2022 06:52:40 -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 5749F1F91B; Mon, 23 May 2022 13:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1653313959; 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=xwcI3FVHBcC1TOlzjqedkegcwhoAh+yee1Q1YN8LxAI=; b=nyh7ZdOC+ZJMo6ttxvfqb3u3FVn12Ph1Nic/fK5IP8ykzy0HqUrr135eS2oncTN21T0ahq X5K8KxOYg7U/5eIAU33DOZw43zYxZRCJcVw4ibiE7XPwYJ5vUhbx9yMMbjRulGr5QuMUr8 5jUq3rITRniXQ9k54MIuRXMD+XPVuxg= 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 28D70139F5; Mon, 23 May 2022 13:52:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7ST4CKeRi2LlZgAAMHmgww (envelope-from ); Mon, 23 May 2022 13:52:39 +0000 Date: Mon, 23 May 2022 15:52:37 +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: <20220523135237.GC4988@blackbody.suse.cz> References: <20220519165325.GA2434@blackbody.suse.cz> <740dfcb1-5c5f-6a40-0f71-65f277f976d6@openvz.org> 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=-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 Fri, May 20, 2022 at 11:16:32PM +0300, Vasily Averin wrote: > common part: ~11Kb + 318 bytes percpu > memcg: ~17Kb + 4692 bytes percpu > cpu: ~2.5Kb + 1036 bytes percpu > cpuset: ~3Kb + 12 bytes percpu > blkcg: ~3Kb + 12 bytes percpu > pid: ~1.5Kb + 12 bytes percpu > perf: ~320b + 60 bytes percpu > ------------------------------------------- > total: ~38Kb + 6142 bytes percpu > currently accounted: 4668 bytes percpu Thanks for the breakdown and this overview! Michal