Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1325135rwn; Thu, 8 Sep 2022 17:52:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR47Q6Dgs6i5EO4Wef1XplvJxoD4XDMgSlmD7jQ+XDi0Tqx5PyaQr8ddcG0VnoICkyG3Yt/t X-Received: by 2002:a05:6512:2308:b0:497:a290:cef6 with SMTP id o8-20020a056512230800b00497a290cef6mr3732082lfu.488.1662684774672; Thu, 08 Sep 2022 17:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662684774; cv=none; d=google.com; s=arc-20160816; b=fH1+BsJCVqBdblzhb+AJ/3vteU1WM/tze8JLPSXNl0Lrv33eN5lGw7NyZ1ZwXULM2P kQJcEkfO/PAzPtVlXJyYPYqj9Qo83lC491VhfAYhUbqw16XjT9n9wBZfDkRC53CfUVKI DkKZi6zZ4XUoEgIPjGX1TaDtqVqOYKq1wtEk3D6WtVtIFOXAJws3qUmSXyVH+2mX/5Rs LAKOrnU+mFR5Fo/iFgCEk4YV1+ccRd8qic/sqYlKL1MPo0hgPDRkqAuvp6eKDd0DUUjP e8Cxte6B0MA0KA8ZRiO9KoRZ2r0AfkDVba4Sp4igXuiJdbLK9c1MaQAQpOLhlZ5EBPeH VZTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oLbPE0Wn9MUv5iN+ZKgk87GvaSESM1SLfiGAHxsb7sE=; b=ClcgBmHykPSdf6WDaR5a1Ab/pIiclBoXz/q7zN6ea56oy1f5NPtsbXTswJ1fLvH1YB 9ZvNDPg+JfKMY4NkXRY0eEnn0lQkJdTdKXoVcpAzw2OtpEFbXik3QThaX0rQ+pBMONlW CO8Ld5Tvu6PVzkAstr3pLfW78CrzWkswss9/DzrgLP7LladC3aIp8dUdjwFT8jD/rGhV XA8CzGqoblAY5KY5jIH6mt8s7qN9Fuu/CnPG+sUEPqmPGXJrDKWZTXUn3iVGtThSHYbY h1434Wpks6pyY/6Yrqv818vAR9TqAePrdlMy7PTY0Dn6nOdzbouWrYLb9B2g7/0bUQa8 0RmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=M74DCUqR; 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 w2-20020a056512098200b0048a613e3873si159513lft.351.2022.09.08.17.52.25; Thu, 08 Sep 2022 17:52:54 -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=M74DCUqR; 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 S229437AbiIIA0r (ORCPT + 99 others); Thu, 8 Sep 2022 20:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiIIA0o (ORCPT ); Thu, 8 Sep 2022 20:26:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661A0B6D7F; Thu, 8 Sep 2022 17:26:43 -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 022341F74A; Fri, 9 Sep 2022 00:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1662683202; 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=oLbPE0Wn9MUv5iN+ZKgk87GvaSESM1SLfiGAHxsb7sE=; b=M74DCUqR4Zhu9qqowdIzC0yWGEoMxSvugFKMY6JydiDEwLYyXEwH+g1XQQml9JPnNg32Hz mbxmvw39Sc18R00K1lESxAGd+PBORN4d2sIqExz+Xv3FSi1hhzsEO6JM0hbam1jNxG//tS Ux5JGHlq845aLt0NMqCQKtgNo4wBibM= 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 B9EE413A93; Fri, 9 Sep 2022 00:26:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id XX8wLEGIGmO3MAAAMHmgww (envelope-from ); Fri, 09 Sep 2022 00:26:41 +0000 Date: Fri, 9 Sep 2022 02:26:40 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Shakeel Butt Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Andrew Morton , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] memcg: extract memcg_vmstats from struct mem_cgroup Message-ID: References: <20220907043537.3457014-1-shakeelb@google.com> <20220907043537.3457014-2-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220907043537.3457014-2-shakeelb@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi. On Wed, Sep 07, 2022 at 04:35:35AM +0000, Shakeel Butt wrote: > This is a preparatory patch to reduce the memory overhead of memory > cgroup. The struct memcg_vmstats is the largest object embedded into the > struct mem_cgroup. > This patch extracts struct memcg_vmstats from struct > mem_cgroup to ease the following patches in reducing the size of struct > memcg_vmstats. Is the reason for the extraction just moving things away from the header file? Or is the separate allocation+indirection somehow beneficial wrt, e.g. fragmentation? Thanks, Michal