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 C3909C433F5 for ; Tue, 16 Nov 2021 05:19:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 48CFB6120F for ; Tue, 16 Nov 2021 05:19:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 48CFB6120F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id C16E66B00AD; Tue, 16 Nov 2021 00:19:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC6196B00AE; Tue, 16 Nov 2021 00:19:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8F1E6B00AF; Tue, 16 Nov 2021 00:19:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id 9AA776B00AD for ; Tue, 16 Nov 2021 00:19:10 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 5C2E68249980 for ; Tue, 16 Nov 2021 05:19:10 +0000 (UTC) X-FDA: 78813639828.05.F1137DC Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP id 8FAA64002087 for ; Tue, 16 Nov 2021 05:19:09 +0000 (UTC) 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 X-Stat-Signature: 5tb9pwkynzg8dwb3rt83kkz1p7ahp4nc Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=jg2HkZEL; spf=pass (imf18.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8FAA64002087 X-HE-Tag: 1637039949-293017 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.