Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4613288rwl; Mon, 3 Apr 2023 07:23:26 -0700 (PDT) X-Google-Smtp-Source: AKy350bJQvsAQxRmS1KE65DEvPEmyqtVd97MAHK5NAGACiv8yS51ew/LTG97Vd7zdP3Dx8iG8HKZ X-Received: by 2002:a62:1712:0:b0:62d:dd8b:f42a with SMTP id 18-20020a621712000000b0062ddd8bf42amr11776675pfx.25.1680531806130; Mon, 03 Apr 2023 07:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680531806; cv=none; d=google.com; s=arc-20160816; b=KaoqrbZ+tTn6gIrdDhFfYzeiNxLtJ+Jr4jGkCFpdZmmlKNjJIAWjYTY3B2f4GNd3bt Gs/p5ZA3brxXF+kAI8QjPx/OvAc111RnWicso5Iz4vIcaP00XIO64OMZMDA7tm2b0Ad0 5tcRlK3yh+9qjW5BX9KdLbEySv3KowmSYsEhp12yB7VZHvizxqmlibc2T7oWl6zdoiqW D1whOwMdbEc/bMQijgo6QXngcE6eRU7laCBqunulAibWHWxNwutNl2gOEXOmlxYzX2C2 +WcYk92xdIzDwez5UwTmuJig4vJRgZ+vR7JjMpDLgKPtsiU6npnD5KF9YPmMdWgK/tt9 DWxA== 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 :dkim-signature; bh=R46s3dzmAWjax7iXZKikFYCLr1xSbo6uFhX0zzjg4pU=; b=XGTzHpzJqH1z470X6/aoRiJE7D0ldBquZqBctRwnoUID6waNI7YQjpEzW1SzijXgxz uyhsqZ1H/GIe/yl/cU7WACxjbw4Ia5vV4hQIG8oM6pF23j+Fm4qvDp++9WyjZ1nus08K 3em5zZKUqgNH73b5G1bwwQl1od1H2YcWpVNhM1d7MkgazA0jRkstakjWAdWKOwkMydFE hjxo0bI1MA3u9GOnGxfKTfUrhKLKFyGV9bMgdQ9BJI13clKyPhEHOjRui2iMa1wpB6v8 LkLsQ2MjK5cWBpmuKF6228GPPKFZSHTYVhExIgaxf85upPSu0RAspwC+VT5MBxRYQEQe t/Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=XViU3+ET; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=U1FjLpLf; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a63d347000000b0050f7dc442c1si7797559pgi.759.2023.04.03.07.23.02; Mon, 03 Apr 2023 07:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.cz header.s=susede2_rsa header.b=XViU3+ET; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=U1FjLpLf; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbjDCOXA (ORCPT + 99 others); Mon, 3 Apr 2023 10:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233158AbjDCOW7 (ORCPT ); Mon, 3 Apr 2023 10:22:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38C32CAF0; Mon, 3 Apr 2023 07:22:42 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 86BEC21DCA; Mon, 3 Apr 2023 14:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680531761; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R46s3dzmAWjax7iXZKikFYCLr1xSbo6uFhX0zzjg4pU=; b=XViU3+ETjmX+Zv1i3Q4VVTn7Ny+KHI+pcGRnoPPT3r61aXIzJBxPYzNkNl9++TJ9aBjV6M pj5xzmCEcljzJ3VrWr7zg8WDaJErfGUilAp+755lKhp6uAWpsjuSCcyiyy9snmSveJO8Pa dYp4hCNxKq+rm1Sy8iI/zHvhEXqBk/Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680531761; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R46s3dzmAWjax7iXZKikFYCLr1xSbo6uFhX0zzjg4pU=; b=U1FjLpLfehFJEz9putWhis2w9XqHu0U3h3oaiL98jCSHliu31HtoSv01Qgpvds/nc1S0hp frS9z8ZPoJjwAoCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 773A813416; Mon, 3 Apr 2023 14:22:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nFUjHTHhKmRzFQAAMHmgww (envelope-from ); Mon, 03 Apr 2023 14:22:41 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id EF44AA0723; Mon, 3 Apr 2023 16:22:40 +0200 (CEST) Date: Mon, 3 Apr 2023 16:22:40 +0200 From: Jan Kara To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ntfs3@lists.linux.dev, ocfs2-devel@oss.oracle.com, devel@lists.orangefs.org, reiserfs-devel@vger.kernel.org, Evgeniy Dushistov Subject: Re: RFC: Filesystem metadata in HIGHMEM Message-ID: <20230403142240.ftkywr3vn3r73yva@quack3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL 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-nfs@vger.kernel.org On Tue 14-03-23 14:51:03, Matthew Wilcox wrote: > TLDR: I think we should rip out support for fs metadata in highmem > > We want to support filesystems on devices with LBA size > PAGE_SIZE. > That's subtly different and slightly harder than fsblk size > PAGE_SIZE. > We can use large folios to read the blocks into, but reading/writing > the data in those folios is harder if it's in highmem. The kmap family > of functions can only map a single page at a time (and changing that > is hard). We could vmap, but that's slow and can't be used from atomic > context. Working a single page at a time can be tricky (eg consider an > ext2 directory entry that spans a page boundary). > > Many filesystems do not support having their metadata in highmem. > ext4 doesn't. xfs doesn't. f2fs doesn't. afs, ceph, ext2, hfs, > minix, nfs, nilfs2, ntfs, ntfs3, ocfs2, orangefs, qnx6, reiserfs, sysv > and ufs do. > > Originally, ext2 directories in the page cache were done by Al Viro > in 2001. At that time, the important use-case was machines with tens of > gigabytes of highmem and ~800MB of lowmem. Since then, the x86 systems > have gone to 64-bit and the only real uses for highmem are cheap systems > with ~8GB of memory total and 2-4GB of lowmem. These systems really > don't need to keep directories in highmem; using highmem for file & > anon memory is enough to keep the system in balance. > > So let's just rip out the ability to keep directories (and other fs > metadata) in highmem. Many filesystems already don't support this, > and it makes supporting LBA size > PAGE_SIZE hard. > > I'll turn this into an LSFMM topic if we don't reach resolution on the > mailing list, but I'm optimistic that everybody will just agree with > me ;-) FWIW I won't object for the local filesystems I know about ;). But you mention some networking filesystems above like NFS, AFS, orangefs - how are they related to the LBA size problem you mention and what exactly you want to get rid of there? FWIW I can imagine some 32-bit system (possibly diskless) that uses NFS and that would benefit in caching stuff in highmem... Honza -- Jan Kara SUSE Labs, CR