Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4735227pxv; Tue, 20 Jul 2021 10:22:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyr98b24baO3zbbLvB3iqJSxvJRRWLe2N61PnVl8Yqf/pDHleqOPEBvQsCJcFHAHYu7UqL X-Received: by 2002:a50:8d4e:: with SMTP id t14mr32435063edt.138.1626801761461; Tue, 20 Jul 2021 10:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626801761; cv=none; d=google.com; s=arc-20160816; b=tFC0wflLt5tQ6D2rx8iH/ATPfa4r2rZHr/cJp0D4ak7CL8kuQYGkoQ+qB5ReDQ+O// NSxhaj2WDHkJjAE6oHJFCGm2PlIzHBA4lCdT1nextMA705hftyk243GzkjKdFgj0jBf0 20oj2H2Fs16d8+U7akf/twX6aD71KrDMcxeXvsNb2LKl1/uY+BC3yGyDIkgvSat7uKPW jDzkA5VTr48vojOPZxRppexrdMYS6sOQbqapxPza/jwQvLC4x5aKtUmkoYiyGxSTVwEf CjPdVvxtTlWPg/8ujZ6M0MWCQElUDWvUVW0v5z+UCMhzUL8SCuS1L/EB9qJlhw7aZhv5 Gr5A== 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=nIUPbWmLSj16v4fdAmjxUh4nxogfx1bpU0hHVWTHTvI=; b=IP2QZE6zic86rsgkZV77lX+9ZXfSp14zW5SqMS17YhmgzoMSyvtagd4puI6mmjJGtO JJZ9B49FDvG2IjJOelLmq3z1cWe5z+xn50SuCItWuIJql/EWqV5ePphS29s81TCrqGr2 crTjLLEDoJs6nqcC9k9FJAVKWCqqPvf7isoA4kR8KMHCXWf+dXJzqqII50k6Nb1886vD cn+aERCLKOtMk6Ti9sCzcWhrBz1d0ZZ/EeZhKAVJZ6UYzEKhHIhOEh8nNE2jCYu46zLM ylwlJ3dmlJu7GKmbFgFMDTTzQaSbhZk4YohOIwtvJOyzYthazM7DvUy6kvePPBm1gN6p Qmzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nAMqbSKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb1si24619522ejb.309.2021.07.20.10.22.16; Tue, 20 Jul 2021 10:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nAMqbSKW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233548AbhGTQjZ (ORCPT + 99 others); Tue, 20 Jul 2021 12:39:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbhGTQiJ (ORCPT ); Tue, 20 Jul 2021 12:38:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E339BC061574; Tue, 20 Jul 2021 10:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nIUPbWmLSj16v4fdAmjxUh4nxogfx1bpU0hHVWTHTvI=; b=nAMqbSKWqbj/Ac8oc6FDFmgton RWU7nDnH8HrY85pFnG7w+Znd8kqgpgYH6kGrc0ZS0U4Rj3cgtOVkZ9CQVcSB3AvQJmFeaBpDg+AHQ 3h17EK9hTAwPtE9UQjVBjT9mYQ+kKPofbajFnmisOvdG3HmquACGcZSlEszqrCdkAGjDlyt+lkrQI LluCGBk2OL/UMvMOhPbeJDLHHibCxk6RvoNSe81nNjIfrVuvZizcHHWE5F9fKbAYiLEXwW3tPSiYx WWVglYjmfJGXd1ANfpypqnnW2wcjiJp4xM99heruNQkZJtVfWHzadyV2PUALLWwC3WAXgisP+MSTT i9ru9xuA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5tNl-008LUQ-99; Tue, 20 Jul 2021 17:18:17 +0000 Date: Tue, 20 Jul 2021 18:18:13 +0100 From: Matthew Wilcox To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v14 000/138] Memory folios Message-ID: References: <20210715033704.692967-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 06:35:50PM +0300, Mike Rapoport wrote: > On Tue, Jul 20, 2021 at 04:23:29PM +0100, Matthew Wilcox wrote: > > Which patch did you go up to for that? If you're going past patch 50 or > > so, then you're starting to add functionality (ie support for arbitrary > > order pages), so a certain amount of extra code size might be expected. > > I measured 6KB at patch 32 or so, then between patch 32 & 50 was pretty > > much a wash. > > I've used folio_14 tag: > > commit 480552d0322d855d146c0fa6fdf1e89ca8569037 (HEAD, tag: folio_14) > Author: Matthew Wilcox (Oracle) > Date: Wed Feb 5 11:27:01 2020 -0500 > > mm/readahead: Add multi-page folio readahead Probably worth trying the for-next tag instead to get a meaningful comparison of how much using folios saves over pages. I don't want to give the impression that this is all that can be saved by switching to folios. There are still hundreds of places that call PageFoo(), SetPageFoo(), ClearPageFoo(), put_page(), get_page(), lock_page() and so on. There's probably another 20KB of code that can be removed that way.