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 51D2AC433EF for ; Tue, 16 Nov 2021 06:10:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B2D361C14 for ; Tue, 16 Nov 2021 06:10:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237048AbhKPGNe (ORCPT ); Tue, 16 Nov 2021 01:13:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232576AbhKPGNb (ORCPT ); Tue, 16 Nov 2021 01:13:31 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1024AC061746 for ; Mon, 15 Nov 2021 22:10:35 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id u60so54171980ybi.9 for ; Mon, 15 Nov 2021 22:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cKbvFtZ+QRZeI3FNBGdfQQxAtlb2rMZX444bX3hzMG8=; b=iLSyO1Wzty/HxSbjlG8/79WYkC7ybAYGe6n21M/rCnfX7DgCvNzRR8pL0wvcqd+M78 Fatg0iIfjQwREHvF9nC6hqGp7GpSW/H73mCOKvjYVN47BFVo3vqfIQpVw1gpCOu25k2x 7AtUlVKKX+hlqy+gj6NO/lXRjWaj0VWYqIVAX4k599LcgTXloavYAaaCPI4oLBPiD3So nqjSDZQ8+76XYR/zkmnWp2MrTk4mBVEhWeI2L+TTwvapiHtv2NLW2hN4az2OrcABC7+n uaQvDriLzyFQBjPMI+l/ANBhZEWViDhXMQqEwy2JjJDlAR5DYRkm270zUhZIlxz11DqF AvsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cKbvFtZ+QRZeI3FNBGdfQQxAtlb2rMZX444bX3hzMG8=; b=0YZL83am0CRWTWCQzebpGyHM1o6cGPVO/cMkKGMhfFJw31C3FNPYpOO4mqR/mAtpQh /dJrNX5sutCyAL6VfWET6YTtdm1TNW5qTVpmudAcB6tknEDPf/iG8yYDx/tBouZmxZE3 K1hy1Yp0KksWU+gYsuzNp3cJScT2y1J71TsTLypUwFI6dHtV/gSk3UljTYrduRmvEkSq iM9RbmaBtVYxRFqfWh162CwF+0ONOWEV8RZpI41DIEZ/YYuzpzsl8HKCL+0PTY/ehAzh fLm/nQWMVi+ttSMm3YkH+ku6nhn3y/BbZu2WkMxK1GpeiJjsJDCx9VpGAcP8K+C6pvVB a93w== X-Gm-Message-State: AOAM531XfIAL0T9EVYbwcrEyzv5fmWGk/brK9u15goGrdXSMyiA7USfX fDc+4hLa+iG76wuFvUfp/iUCJBpFtRSziz2v140hSw== X-Google-Smtp-Source: ABdhPJzN3pVN1nOnOBZej16gfngM79uRdjBdoa7a33PlJmhY0MQPFgpI2ys9scPvhjJczlcxmh/zFAf822pKoifh5E4= X-Received: by 2002:a05:6902:110e:: with SMTP id o14mr5715852ybu.161.1637043033954; Mon, 15 Nov 2021 22:10:33 -0800 (PST) MIME-Version: 1.0 References: <20211019215511.3771969-1-surenb@google.com> <20211019215511.3771969-2-surenb@google.com> <20211115211905.faef6f9db3ce4a6fb9ed66a2@linux-foundation.org> In-Reply-To: <20211115211905.faef6f9db3ce4a6fb9ed66a2@linux-foundation.org> From: Suren Baghdasaryan Date: Mon, 15 Nov 2021 22:10:21 -0800 Message-ID: Subject: Re: [PATCH v11 2/3] mm: add a field to store names for private anonymous memory To: Andrew Morton 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 , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 15, 2021 at 9:19 PM Andrew Morton wrote: > > 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? The third patch does have this effect. > > I fudged up a [0/n] changelog (please don't forget this) and merged it > all for testing. Thanks!