Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2754588rwd; Fri, 26 May 2023 10:41:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6r5TxuogIVeRYnw0JtptClaH684GjRWD9fU8teZttlQknQjiZjtRRMVJUg9cb6T/QO4CdI X-Received: by 2002:a05:6a20:394b:b0:10b:58f1:7a6f with SMTP id r11-20020a056a20394b00b0010b58f17a6fmr51625pzg.41.1685122894934; Fri, 26 May 2023 10:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685122894; cv=none; d=google.com; s=arc-20160816; b=mzGxdl3jI1q/HCNbzQbQU241wLmrDLLWbOf+HfJoKYsQBzIFERuNt0yQKDsBFahPiu 8IaqI2gmjl+BwombzEeIqzfE3c3lFW4x7hOnFRtAIMesKW69YzxJwU080owY0aUc4uRY CMc7rdk4PHltbqsi/9wzW8+n/KlXbpcI0FDvrCwOt1dkKGVNOIEyooeG5Sz3+u/15bXI Gps1v3eK9iHZ9juq4qx/0MS/SgO6VBwTEBboqAGtZlJAdIhHBRytmroafsdThpxPpjeM IZ0bB+c/ydH4F0s3GgU3xhKW1aXzbeoRr5Q/kd50j/vAW1WxACIMptUol3wy/tPfAFQE QQmw== 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=V7pSq7PJnnV+17c0PLHAsV81o6PiUmwa5c8k+OK0j2c=; b=s082lrtGQYdxn3CocQLvk8qZKqmc0OvxPikChL09ZWanWYLUPbUJs+dDcuIJVPidzs rBYpR0MhZX7azLRCdku0TRlkByO1Gl1zCB2FrfDdYBdvdJ9z4gx5aGpGZ5TBFXBmw1ty 7Cbwa4JMMXW0xOtTQLjhrcB63S+jv/4at6JcMDUBRdL296w0IELumrusRbp5KDP86HL4 oFiyI9Cbi8KGKkqy8nrxLXMIfAK2RcuXuuswotPnOp+i0ihdhRaTxtLq7mtdWNJ2nxHk 2LlnLCn0zXLUDi4kshzr73xjIPkoxtM4uiFo9P1Vf6RgBghN5vdAAw7lbWvMcHDdGvSD I40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=HKC5GqVx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a636b05000000b005289dd0ef00si3983118pgc.568.2023.05.26.10.41.22; Fri, 26 May 2023 10:41:34 -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=@infradead.org header.s=bombadil.20210309 header.b=HKC5GqVx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234439AbjEZReH (ORCPT + 99 others); Fri, 26 May 2023 13:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjEZReF (ORCPT ); Fri, 26 May 2023 13:34:05 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E18099; Fri, 26 May 2023 10:34:05 -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=V7pSq7PJnnV+17c0PLHAsV81o6PiUmwa5c8k+OK0j2c=; b=HKC5GqVxZdX8wRhS+hcBeYXxlV UI5ei/MYN07YXASmtoH6v/hoXh1Z8WEJPAFULInxGzMig6H2DvnQbp8R6exL/GuEEF9na0UaYo3mF feu8hcR1fY/coNq+BfeGDyrVIxdo+3Zr2xL1BkgKf4SGlbCiKxNzebiwgVD0ZIhF5OLWP6VVp1dTg i6lT2nciuafF13kv1/76VfXv8qQK1HKnByvMoN0YpS67HFjhUyV2wx1t8SLakmsRFiyTVOFo80sqU +6/TDGsJ463twtBFUdkp/BgnQrLfbuKgPP9CDetYozGKolTok9W2usghuCeSXCuz7iF5CZgfsLndp A8DElMFw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2bK5-003Jgz-38; Fri, 26 May 2023 17:33:53 +0000 Date: Fri, 26 May 2023 10:33:53 -0700 From: Luis Chamberlain To: Matthew Wilcox Cc: hughd@google.com, akpm@linux-foundation.org, brauner@kernel.org, djwong@kernel.org, p.raghav@samsung.com, da.gomez@samsung.com, rohan.puri@samsung.com, rpuri.linux@gmail.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, hare@suse.de, kbusch@kernel.org, patches@lists.linux.dev, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v2 0/8] add support for blocksize > PAGE_SIZE Message-ID: References: <20230526075552.363524-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 Fri, May 26, 2023 at 02:54:12PM +0100, Matthew Wilcox wrote: > On Fri, May 26, 2023 at 12:55:44AM -0700, Luis Chamberlain wrote: > > This is an initial attempt to add support for block size > PAGE_SIZE for tmpfs. > > Why would you want this? It helps us experiment with higher order folio uses > > with fs APIS and helps us test out corner cases which would likely need > > to be accounted for sooner or later if and when filesystems enable support > > for this. Better review early and burn early than continue on in the wrong > > direction so looking for early feedback. > > I think this is entirely the wrong direction to go in. Any recommendations for alternative directions? > You're coming at this from a block layer perspective, and we have two > ways of doing large block devices -- qemu nvme and brd. tmpfs should > be like other filesystems and opportunistically use folios of whatever > size makes sense. I figured the backing block size would be a good reason to use high order folios for filesystems, and this mimicks that through the super block block size. Although usage of the block size would be moved to the block device and tmpfs use an page order, what other alternatives were you thinking? Luis