Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11650449rwd; Thu, 22 Jun 2023 16:53:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oKQAnkjz0Iq8onmYJpwSuzkJFlZJO+HxtnB1WI+Be2d4RT5N42mmEXx0OLsvLwu3/cNKg X-Received: by 2002:a05:6a20:9146:b0:104:1f67:1157 with SMTP id x6-20020a056a20914600b001041f671157mr25056141pzc.26.1687478031194; Thu, 22 Jun 2023 16:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687478031; cv=none; d=google.com; s=arc-20160816; b=1LYMyrO85+OsET47ep9C66nyj01PukTsYC7OVISgg90QQvwUVj4cR/qyukXlOHw3FI nihqSw0n9AswcC2d6MmjAmQHMzkKNsX29q3Ukq7AKCKGv//rBZ37bYXL2VMPjKaFxqWh HPvGxkpxLSv95lmeT17TlqipTYwEWI6CD5M9DpNMjs380xQiwSoHdKQY+OYPdNU1FEy/ SQkEE7KcHtjpZe/e8Qpj+qELP7J+OIp8hLfco987a6GPnkyUam7RFIxLZVW4UypRu6VH wema0wQuopPSkTNe0xpBZaQfpC8wXzoC/QsFmvqXQCD4QZDfYFTv+TRkKit5+t6kGFXF sVBg== 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=ckdenG1i3LyU3fHf2zoe01aFyGsekEsJ7fVPuTD9/YY=; b=xDGiGB3u8XmaOuUPa2GjB00XimySnUzX4432Y5OvQtZnaWJm5vu6XhB4ysQMsMq3TD ap//wH7QKDn58PtEM59Pn75IGgtZfGdrAHQCkinVyGqhRKEYGjCqqNQnlcfMu8cX1p8Q YD+Vl0WWG3nsgfZYekVqHYQ6QHj5BHUlB2g9eRD2y+aXqI7+7K2Qw9fD0MzQs2GKmzrk kBfeE1U82GssbEeBdNpvIY5XHh5qZzMGgOshqVcWQLwpbB226Q5F7NSa0JD6jNv3NHh7 HMzXVQuYxiUDyWooddYFG49+cX4ZfnKimqME/MqcSbgsPuG6Bg7WQAQU4+L2wP98FtkP OmkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=s8V71EIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020aa79dc4000000b006687ee37224si3479790pfq.0.2023.06.22.16.53.39; Thu, 22 Jun 2023 16:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20221208.gappssmtp.com header.s=20221208 header.b=s8V71EIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbjFVWd3 (ORCPT + 99 others); Thu, 22 Jun 2023 18:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjFVWd2 (ORCPT ); Thu, 22 Jun 2023 18:33:28 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E1E1993 for ; Thu, 22 Jun 2023 15:33:26 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1b55643507dso44655135ad.0 for ; Thu, 22 Jun 2023 15:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20221208.gappssmtp.com; s=20221208; t=1687473205; x=1690065205; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ckdenG1i3LyU3fHf2zoe01aFyGsekEsJ7fVPuTD9/YY=; b=s8V71EIldaqGYVwOmX25NCzufmwczbjbrgxg/WeEa1tVZ/X7+ZCVYA8hPC4LG3Qvkn db8MLPdFQ6qQ8dmBGtQ8t94cTsLQ5Ydi1XOKr/+QanuSm2RstQ8Y/fZpEXhaht/7ZwuB GwSuHKtWPc8dq+j7OyEwNJ3i4OpBjaomjqeuva//+BZOjgr0niqPrxVsMO8LY/Oz+uBJ 3y8uhc1yQjnf6+cbMQDAoEVpEv4m0GgtIXB9uMz8T29TlxqoD4uEwmnE/HBp538nGqHG NrfpCP3baC5jZLDd9Avv/tTwU5AteyEYhW+fsQM64bGVS3qrPcJ0+t3AJUmVCtX5bCuS e1iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687473205; x=1690065205; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ckdenG1i3LyU3fHf2zoe01aFyGsekEsJ7fVPuTD9/YY=; b=LLJdnoqLWtMSOJYksYwkeoZJp+hK3Il4yYGq0IUAEWdyuHG8GMK3PwEfYV3emVyyWa 6+xTVCpZBThlbrttAB2B5sOmf+rwYMhELVasVY13e1fyfOpXkhNJQSEY9qFBpTQLcVOJ wHhtmmOmCnfGB+0jbhCqdf9RY0Ml4YdiAkVyl5uDHzNfLMLxYnsJ/hJmubQmqm30xxJp /9+KBKFOEoJChZFWA+uDKK0rpdz4Gfs3yDoDVUnEkHcqJBhFqKRyxbiu7l7WMENsBLSS tCqEfT9Wfj0il4tno+mI1x9tSE539bAmvKjJ2tNERnZgWFyZc0VXlr3viWkSp4UvLWxX MYcA== X-Gm-Message-State: AC+VfDymlTq9aQECxL8WJmNNG0xSBJDR4Qa364298DpBmbTE59sQu/72 mIeZi81m/v4IIhWDWEEVtNIBnIqbFwnTdv5n7C8= X-Received: by 2002:a17:902:d504:b0:1b5:5ad2:6eac with SMTP id b4-20020a170902d50400b001b55ad26eacmr16116467plg.33.1687473205331; Thu, 22 Jun 2023 15:33:25 -0700 (PDT) Received: from dread.disaster.area (pa49-180-13-202.pa.nsw.optusnet.com.au. [49.180.13.202]) by smtp.gmail.com with ESMTPSA id jl13-20020a170903134d00b001b3f47ea2e8sm5824366plb.117.2023.06.22.15.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 15:33:24 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1qCSri-00F0rw-0R; Fri, 23 Jun 2023 08:33:22 +1000 Date: Fri, 23 Jun 2023 08:33:22 +1000 From: Dave Chinner To: Hannes Reinecke Cc: Pankaj Raghav , willy@infradead.org, gost.dev@samsung.com, mcgrof@kernel.org, hch@lst.de, jwong@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 0/4] minimum folio order support in filemap Message-ID: References: <20230621083823.1724337-1-p.raghav@samsung.com> <4270b5c7-04b4-28e0-6181-ef98d1f5130c@suse.de> <94d9e935-c8a4-896a-13ac-263831a78dd5@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 12:23:10PM +0200, Hannes Reinecke wrote: > On 6/22/23 12:20, Dave Chinner wrote: > > On Thu, Jun 22, 2023 at 08:50:06AM +0200, Hannes Reinecke wrote: > > > On 6/22/23 07:51, Hannes Reinecke wrote: > > > > On 6/22/23 00:07, Dave Chinner wrote: > > > > > On Wed, Jun 21, 2023 at 11:00:24AM +0200, Hannes Reinecke wrote: > > > > > > On 6/21/23 10:38, Pankaj Raghav wrote: > > > > > > Hmm. Most unfortunate; I've just finished my own patchset > > > > > > (duplicating much > > > > > > of this work) to get 'brd' running with large folios. > > > > > > And it even works this time, 'fsx' from the xfstest suite runs > > > > > > happily on > > > > > > that. > > > > > > > > > > So you've converted a filesystem to use bs > ps, too? Or is the > > > > > filesystem that fsx is running on just using normal 4kB block size? > > > > > If the latter, then fsx is not actually testing the large folio page > > > > > cache support, it's mostly just doing 4kB aligned IO to brd.... > > > > > > > > > I have been running fsx on an xfs with bs=16k, and it worked like a charm. > > > > I'll try to run the xfstest suite once I'm finished with merging > > > > Pankajs patches into my patchset. > > > > Well, would've been too easy. > > > 'fsx' bails out at test 27 (collapse), with: > > > > > > XFS (ram0): Corruption detected. Unmount and run xfs_repair > > > XFS (ram0): Internal error isnullstartblock(got.br_startblock) at line 5787 > > > of file fs/xfs/libxfs/xfs_bmap.c. Caller > > > xfs_bmap_collapse_extents+0x2d9/0x320 [xfs] > > > > > > Guess some more work needs to be done here. > > > > Yup, start by trying to get the fstests that run fsx through cleanly > > first. That'll get you through the first 100,000 or so test ops > > in a few different run configs. Those canned tests are: > > > > tests/generic/075 > > tests/generic/112 > > tests/generic/127 > > tests/generic/231 > > tests/generic/455 > > tests/generic/457 > > > THX. > > Any preferences for the filesystem size? > I'm currently running off two ramdisks with 512M each; if that's too small I > need to increase the memory of the VM ... I generally run my pmem/ramdisk VM on a pair of 8GB ramdisks for 4kB filesystem testing. Because you are using larger block sizes, you are going to want to use larger rather than smaller because there are fewer blocks for a given size, and metadata blocks hold many more records before they spill to multiple nodes/levels. e.g. going from 4kB to 16kB needs a 16x larger fs and file sizes for the 16kB filesystem to exercise the same metadata tree depth coverage as the 4kB filesystem (i.e. each single block extent is 4x larger, each single block metadata block holds 4x as much metadata before it spills). With this in mind, I'd say you want the 16kB block size ramdisks to be as large as you can make them when running fstests.... Cheers, Dave. -- Dave Chinner david@fromorbit.com