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 X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51D2AC433E0 for ; Fri, 26 Feb 2021 19:04:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C07D664F24 for ; Fri, 26 Feb 2021 19:04:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C07D664F24 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DCF446B0073; Fri, 26 Feb 2021 14:04:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D58756B0074; Fri, 26 Feb 2021 14:04:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C461D8D0002; Fri, 26 Feb 2021 14:04:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id AB5A36B0073 for ; Fri, 26 Feb 2021 14:04:13 -0500 (EST) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 66D444DA1 for ; Fri, 26 Feb 2021 19:04:13 +0000 (UTC) X-FDA: 77861344386.03.BB6DC79 Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) by imf09.hostedemail.com (Postfix) with ESMTP id 80FD560024A7 for ; Fri, 26 Feb 2021 19:04:08 +0000 (UTC) Received: by mail-il1-f181.google.com with SMTP id e7so8908738ile.7 for ; Fri, 26 Feb 2021 11:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AZ8qA7aQ5rpYT0V2sctlkBYPSd8hoeYCGiKdEoaJ6vM=; b=oKvpOm5iarSQ50kIWkk9J3uYkaBdk2Rh6A5rsIzmPgynnXLl+CctGSG7eLJi6eUv06 RU7c8ld/yPnB7UH0ZSYOJIZ6w927LNIdI0xiV2eL3JknVbocjzaIowpPj9pIruNA0v0H 3Ivbv3STxsu14ZiPWD/EDorKRzfpdwAp26qDC57jCIicOoEcD+g+gCt5VTRhaD0cBEl1 MgA4f+ZtuQEpWPjhA4AV8jTQt2d6kQkolaMMHMeUVMMSeOQ0/MNSAov3prYsm7ptrpAE UxO1bgHjdrKWimHZzLxf61lJRo1sdv9CjNSjx8qaXSNRW0WZQ9mbsMGBxBpUmRU+Vy7M W6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AZ8qA7aQ5rpYT0V2sctlkBYPSd8hoeYCGiKdEoaJ6vM=; b=VgmnIYwTCZVBdFfM77O7yoTpS0+yergYIgwHeCZSGcgUb2HzxLOCYyysL8Xve33GaX JQL0GdM12f6ordHinrRr+vPlGxxylXrPSIar2DIcBZuFqtIe68P2Gxk2nfMcvLi+TY85 wxb1ErgmZ7Q6emR4wVFPh59rs97IK0TYE1/tTwg1Kum398iBxFnaJDtoMuRv9K8mBfCR 9ufOpjXmtcD4ZBPhBZcZyjeTuxQjYK/+9yU9D3P/jyuQdx0XXmgCbO2GDRQl5GWT0dt4 IYtYvxAvw4zjKBfA12qFn8C87NHV3iJBrLHo/z+qEvsVKLNLkDj6lkBywtsSVI0XeJ9e wBxw== X-Gm-Message-State: AOAM532AWXEZh3pKzte4QaozBh/QXymaGwzZ/mF09zbxKm2J4pGKcT8H 1VbMrPiT0/71sMszNOyc038qig== X-Google-Smtp-Source: ABdhPJwnYu4zRP+tcyj4kccpaJX9VLj4BYvACrkR0IoFavyjLN8Ii1ceBJLPRpp3LrdbwgvzRZIK9w== X-Received: by 2002:a05:6e02:d4a:: with SMTP id h10mr3653155ilj.107.1614366251849; Fri, 26 Feb 2021 11:04:11 -0800 (PST) Received: from google.com ([2620:15c:183:200:bd06:d32d:458e:cd3a]) by smtp.gmail.com with ESMTPSA id o12sm5813972iop.42.2021.02.26.11.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 11:04:11 -0800 (PST) Date: Fri, 26 Feb 2021 12:04:07 -0700 From: Yu Zhao To: Vlastimil Babka Cc: akpm@linux-foundation.org, alex.shi@linux.alibaba.com, willy@infradead.org, guro@fb.com, hannes@cmpxchg.org, hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@kernel.org, vdavydov.dev@gmail.com, "Kirill A. Shutemov" Subject: Re: [PATCH v2 0/3] trim the uses of compound_head() Message-ID: References: <20210224084807.2179942-1-yuzhao@google.com> <20210226091718.2927291-1-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Stat-Signature: oedo3sqmref5r4zi1cre6dexdshzh7r7 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 80FD560024A7 Received-SPF: none (google.com>: No applicable sender policy available) receiver=imf09; identity=mailfrom; envelope-from=""; helo=mail-il1-f181.google.com; client-ip=209.85.166.181 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614366248-567506 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000076, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Feb 26, 2021 at 11:52:03AM +0100, Vlastimil Babka wrote: > On 2/26/21 10:17 AM, Yu Zhao wrote: > > Patch series "mm: lru related cleanups" starting at commit 42895ea73bcd > > ("mm/vmscan.c: use add_page_to_lru_list()") bloated vmlinux by 1777 > > bytes, according to: > > https://lore.kernel.org/linux-mm/85b3e8f2-5982-3329-c20d-cf062b8da71e@suse.cz/ > > Huh, I thought Andrew didn't want to send it for 5.12: > https://lore.kernel.org/linux-mm/20210223145011.0181eed96ab0091a493b51f6@linux-foundation.org/ > > > It turned out many places inline Page{Active,Unevictable} which in > > turn include compound_head(). > > > > From the v1: > > Removing compound_head() entirely from Page{Active,Unevictable} may > > not be the best option (for the moment) because there may be other > > cases that need compound_head(). > > > > In addition to picking a couple pieces of low-hanging fruit, this v2 > > removes compound_head() completely from Page{Active,Unevictable}. > > > > bloat-o-meter result before and after the series: > > add/remove: 0/0 grow/shrink: 6/92 up/down: 697/-7656 (-6959) > > Good that you found a way to more than undo the bloat then. But we need to be > careful so bugs are not introduced due to pressure to not have bloated 5.12. I was very conservative and only picked a few pieces of low-hanging fruit. The pressure is good -- if you hadn't noticed it and Andrew hadn't been emphatic about it, it'd have been left for another time and to another person, and so on.