Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1059366rdb; Tue, 19 Sep 2023 20:25:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFenLm1vPkyCbnHgnbtYtp7RanLOkoE+z4ccWY2hC3d9PCx9jKnYS+9zb3RTgMQpXPomIUK X-Received: by 2002:a05:6808:356:b0:3a7:a14:ba07 with SMTP id j22-20020a056808035600b003a70a14ba07mr1055041oie.7.1695180352630; Tue, 19 Sep 2023 20:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695180352; cv=none; d=google.com; s=arc-20160816; b=q0hYgZR0tU39UxevtCX6jGR/JS4n7UP848fp5qDxs9s0TGPAETOJCVUjpjaTzhG8by c7EsBuhKuvLXRdLsTD+az6Af853W/g1HucqzqOA/wBFYrr1LzpRFLz9+FdXOD90HDUE2 VR/WHmqN2CtRpV9pQBhvrkHG4M+pITzi4jTEMXKswhWEwwsJ1M4o8sveblVhYdyOnSi3 I8zYFr7fjbUMhzx1xyeQ+dLWqdAJI7ugxqNDzS/VcPukg6TNP29BqBr3m/Aufw9IfdzT Th+lN/EU4P39WR8BgV2kGaJYTaVjjKsC4ioeAJz3XGFMH+ALgVrMjiC1T6O5xKgkSpSl s6ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SoWGV/vSjH+QSAal7RVjoWtaY6GPfVPJsY2HI1Po9NA=; fh=xwQRC5dmoSeMaQ3KGcldMqsHkBU9XzKE5dlKd7xeQ6o=; b=iIxCbXfYWZE19j5Ab6U+2IGgu17acfRmzlE5rYsU5fP4kLhC1GK0YAdZjtjQmxuJyA h6vr33T4SOicfmvaOnSdj6qH+bnMumyqI/WW6109iON5QULcqJwTz71/T2PnaHUnqYOd l0MTtcUQzxwIAAhDB29ZHaIGbcly49gAFih8pZ8GGZU08viXpUjC5KRMy/jXWXWseaBb 5G00siCGkMWQRO/UsVoVi5edFvSi/KkIuYLhXDwpDaeSrdHHNz6Ztb+rwUzknScNXaXl 9Pfs2WH7BqqryP1ENCdEFswDLh2nPDp0A69MQUr+ah9Eo+Gs7PFK0tm2kzSWyyhu1BJp RB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="boUnKA/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b25-20020a630c19000000b00577549e67c8si10982145pgl.601.2023.09.19.20.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 20:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="boUnKA/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 37C0E80B02A3; Tue, 19 Sep 2023 14:15:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233342AbjISVPq (ORCPT + 99 others); Tue, 19 Sep 2023 17:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233252AbjISVPp (ORCPT ); Tue, 19 Sep 2023 17:15:45 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1E8A9; Tue, 19 Sep 2023 14:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SoWGV/vSjH+QSAal7RVjoWtaY6GPfVPJsY2HI1Po9NA=; b=boUnKA/KWwv2o53fF2DYhZzJHW 0f6aI76KTdV20mN53VyMRh3dCbFxTwr5RHi976RJMoVrluOyoyaeMvRTSJaeOHQSVqHO3fxsGIBr/ ae5hxtKmlTSk/1427oc6gFk5U0uNbFKfMJ322QqhXWMf0tyLUqnjCWzHa0jHypGgOnnmRlMMP2MW9 7672V8UtKVY6hCn5dhC+ysO2QHjqCfubvuMFx0QIs+0jI3mlwRBjtis0socm0RWiXpXtNjW2RlqqI jqCi7+sEIjUq/xl4R2sLRm2BBcpy5rJ9rycLkFNSliv0s4fkNvpbB1+AbkLPNydAD8xvPMlGLvWO6 hoMXSL8w==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qii4E-001HO9-1Y; Tue, 19 Sep 2023 21:15:34 +0000 Date: Tue, 19 Sep 2023 14:15:34 -0700 From: Luis Chamberlain To: Ritesh Harjani Cc: Pankaj Raghav , Dave Chinner , Pankaj Raghav , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, da.gomez@samsung.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, willy@infradead.org, djwong@kernel.org, linux-mm@kvack.org, chandan.babu@oracle.com, gost.dev@samsung.com, riteshh@linux.ibm.com Subject: Re: [RFC 00/23] Enable block size > page size in XFS Message-ID: References: <806df723-78cf-c7eb-66a6-1442c02126b3@samsung.com> <87a5ti74w3.fsf@doe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a5ti74w3.fsf@doe.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 19 Sep 2023 14:15:53 -0700 (PDT) On Tue, Sep 19, 2023 at 05:26:44PM +0530, Ritesh Harjani wrote: > Pankaj Raghav writes: > > >>>> > >>>> As it is, I'd really prefer stuff that adds significant XFS > >>>> functionality that we need to test to be based on a current Linus > >>>> TOT kernel so that we can test it without being impacted by all > >>>> the random unrelated breakages that regularly happen in linux-next > >>>> kernels.... > >>> > >>> That's understandable! I just rebased onto Linus' tree, this only > >>> has the bs > ps support on 4k sector size: > >>> > >>> https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=v6.6-rc2-lbs-nobdev > >> > > > > I think this tree doesn't have some of the last minute changes I did before I sent the RFC. I will > > sync with Luis offline regarding that. > > > >> > >>> I just did a cursory build / boot / fsx with 16k block size / 4k sector size > >>> test with this tree only. I havne't ran fstests on it. > >> > >> W/ 64k block size, generic/042 fails (maybe just a test block size > >> thing), generic/091 fails (data corruption on read after ~70 ops) > >> and then generic/095 hung with a crash in iomap_readpage_iter() > >> during readahead. > >> > >> Looks like a null folio was passed to ifs_alloc(), which implies the > >> iomap_readpage_ctx didn't have a folio attached to it. Something > >> isn't working properly in the readahead code, which would also > >> explain the quick fsx failure... > >> > > > > Yeah, I have noticed this as well. This is the main crash scenario I am noticing > > when I am running xfstests, and hopefully we will be able to fix it soon. > > > > In general, we have had better results with 16k block size than 64k block size. I still don't > > know why, but the ifs_alloc crash happens in generic/451 with 16k block size. > > > > > >>> Just a heads up, using 512 byte sector size will fail for now, it's a > >>> regression we have to fix. Likewise using block sizes 1k, 2k will also > >>> regress on fsx right now. These are regressions we are aware of but > >>> haven't had time yet to bisect / fix. > >> > >> I'm betting that the recently added sub-folio dirty tracking code > >> got broken by this patchset.... > >> > > > > Hmm, this crossed my mind as well. I am assuming I can really test the sub-folio dirty > > tracking code on a system which has a page size greater than the block size? Or is there > > some tests that can already test this? CCing Ritesh as well. > > > > Sorry I haven't yet looked into this series yet. I will spend sometime > reading it. Will also give a spin to run the fstests. Ritesh, You can save yourself time in not testing the patch series with fstests for block sizes below ps as we already are aware that a patch in the series breaks this. We just wanted to get the patch series out early for review given the progress. There's probably one patch which regresses this, if each patch regresses this, that's a bigger issue :P Luis