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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D235C47088 for ; Fri, 2 Dec 2022 10:22:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbiLBKWw (ORCPT ); Fri, 2 Dec 2022 05:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233186AbiLBKWv (ORCPT ); Fri, 2 Dec 2022 05:22:51 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0B1125C6A; Fri, 2 Dec 2022 02:22:50 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id D937167373; Fri, 2 Dec 2022 11:22:45 +0100 (CET) Date: Fri, 2 Dec 2022 11:22:45 +0100 From: Christoph Hellwig To: "Ritesh Harjani (IBM)" Cc: Christoph Hellwig , Namjae Jeon , Sungjong Seo , Jan Kara , OGAWA Hirofumi , Mikulas Patocka , Dave Kleikamp , Bob Copeland , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-karma-devel@lists.sourceforge.net, linux-mm@kvack.org Subject: Re: start removing writepage instances Message-ID: <20221202102245.GA17715@lst.de> References: <20221113162902.883850-1-hch@lst.de> <20221116183900.yzpcymelnnwppoh7@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116183900.yzpcymelnnwppoh7@riteshh-domain> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Nov 17, 2022 at 12:09:00AM +0530, Ritesh Harjani (IBM) wrote: > reclaim. Now IIUC from previous discussions [1][2][3], reclaims happens from > the tail end of the LRU list which could do an I/O of a single page while > an ongoing writeback was in progress of multiple pages. This disrupts the I/O > pattern to become more random in nature, compared to, if we would have let > writeback/flusher do it's job of writing back dirty pages. Yes. > Also many filesystems behave very differently within their ->writepage calls, > e.g. ext4 doesn't actually write in ->writepage for DELAYED blocks. I don't think it's many file systems. As far as I can tell only ext4 actually is significantly different. > 2. Now the other place from where ->writepage can be called from is, writeout() > function, which is a fallback function for migration (fallback_migrate_folio()). > fallback_migrate_folio() is called from move_to_new_folio() if ->migrate_folio > is not defined for the FS. Also there is generic_writepages and folio_write_one/write_one_page. > Is above a correct understanding? Yes.