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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83621C433F5 for ; Tue, 16 Nov 2021 05:19:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6ECA863214 for ; Tue, 16 Nov 2021 05:19:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233453AbhKPFWf (ORCPT ); Tue, 16 Nov 2021 00:22:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:42120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233403AbhKPFWF (ORCPT ); Tue, 16 Nov 2021 00:22:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E471E60F6E; Tue, 16 Nov 2021 05:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1637039948; bh=0+h5I2fETKUh6GKu9bzTHSm7jqJYMvkVoBdFhY2URtE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jg2HkZELTf65WPyR611JRctoeh08n8+NPdKweeTf7PMvxNchHTMDvWsc/5jZuQ/5i ZSHaM85TcRKSIWfX3oRQ5tTjfXwlBiVW017CXWo1I5M5IFi8nFXpWqtUBuoxXzgx65 HJ94E1llTJD5T6zTl3FoH9Z3y20PLI77DAK7rqnM= Date: Mon, 15 Nov 2021 21:19:05 -0800 From: Andrew Morton To: Suren Baghdasaryan Cc: Colin Cross , Sumit Semwal , Michal Hocko , Dave Hansen , Kees Cook , Matthew Wilcox , "Kirill A . Shutemov" , Vlastimil Babka , Johannes Weiner , Jonathan Corbet , Al Viro , Randy Dunlap , Kalesh Singh , Peter Xu , rppt@kernel.org, Peter Zijlstra , Catalin Marinas , vincenzo.frascino@arm.com, Chinwen Chang (=?UTF-8?Q?=E5=BC=B5=E9=8C=A6?= =?UTF-8?Q?=E6=96=87?=) , Axel Rasmussen , Andrea Arcangeli , Jann Horn , apopple@nvidia.com, John Hubbard , Yu Zhao , Will Deacon , fenghua.yu@intel.com, thunder.leizhen@huawei.com, Hugh Dickins , feng.tang@intel.com, Jason Gunthorpe , Roman Gushchin , Thomas Gleixner , krisman@collabora.com, Chris Hyser , Peter Collingbourne , "Eric W. Biederman" , Jens Axboe , legion@kernel.org, Rolf Eike Beer , Cyrill Gorcunov , Pavel Machek , Muchun Song , Viresh Kumar , Thomas Cedeno , sashal@kernel.org, cxfcosmos@gmail.com, Rasmus Villemoes , LKML , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm , kernel-team Subject: Re: [PATCH v11 2/3] mm: add a field to store names for private anonymous memory Message-Id: <20211115211905.faef6f9db3ce4a6fb9ed66a2@linux-foundation.org> In-Reply-To: References: <20211019215511.3771969-1-surenb@google.com> <20211019215511.3771969-2-surenb@google.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Oct 2021 14:58:36 -0700 Suren Baghdasaryan wrote: > As Andrew suggested, I checked the image sizes with allnoconfig builds: > > unpatched Linus' ToT > text data bss dec hex filename > 1324759 32 73928 1398719 1557bf vmlinux > > After the first patch is applied (madvise refactoring) > text data bss dec hex filename > 1322346 32 73928 1396306 154e52 vmlinux > >>> 2413 bytes decrease vs ToT <<< > > After all patches applied with CONFIG_ANON_VMA_NAME=n > text data bss dec hex filename > 1322337 32 73928 1396297 154e49 vmlinux > >>> 2422 bytes decrease vs ToT <<< > > After all patches applied with CONFIG_ANON_VMA_NAME=y > text data bss dec hex filename > 1325228 32 73928 1399188 155994 vmlinux > >>> 469 bytes increase vs ToT <<< Nice. Presumably there are memory savings from no longer duplicating the vma names? I fudged up a [0/n] changelog (please don't forget this) and merged it all for testing.