Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5370272pxb; Mon, 15 Feb 2021 18:12:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAm53kARWZDVYbMUuJpSLP4TSXMpRCv8B8YJ+DeOediSDFzYGhLi/yWPUOHKizYcyaPY/t X-Received: by 2002:a17:906:3801:: with SMTP id v1mr18667503ejc.353.1613441555824; Mon, 15 Feb 2021 18:12:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613441555; cv=none; d=google.com; s=arc-20160816; b=cZ3M0QhLVnno8xtyB0Ks1fRzRYVIvTI6zweql5VUwCIlOJ19oWmHB48G/wVwmGmoMp RGO+btm6XsDAzBUIYHZmojSX4cuMYOeziAFT1YI+TLgKlFGzy0BqUUwVpwDplh42YgWW 1w7Hoj5Qr8PHvj3sM22A1eLaQqCW4yUnrqxqtLQd5y0Gr2ZZ0a8p8cnA6tCwFLlFIRfk STpltTT5Pof0qnotg3kccnFZGiWijUTCHbd6orY4MEhv5S6f/lo+pj3HdqnnMZ3pJ8F/ U8bTaQxRinlQB8KwZEqqSke6Dcl6uAE0zp+9yoU1Q0E99TZ7mDTpWSagTmy3/H+bfPA4 GO5A== 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=s6M77qqPUyP6vrb0lQFb/awPS8W4Khs2jpQ6ixqkTJU=; b=JxOupO3tPaa6WgkuDcOezSe10rnHZXI1ZYmStGECYpsdQLOMF70O4ozNItjgzKAPAv S26v37BTObjHnuA/BYa7avlX8MoFZ3lwkF9qjjoyTRk0lOagVB7Fp9Hf1SJw1OLC5zgg WieQGRHKgzAFJJopN7YUqWZHozfPFdGAbBRAoTltTyPfhW03XiWCtiR6YjC3THvz+aNy y+AHxujxoxhY4CQFh0d9Vxbd3NN95Ib9L0kcuwfmmrymqYN+ZO2h3KY5T7U1ziXyGQ5M AG0Ywx1NlfBoKOfsOnXG2rM4M/WtlKVasm7nRW0IqdKbLQeIzr2csF4LifyuYIVlFwOk cYow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=u1urISE6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si7582632ejr.30.2021.02.15.18.12.03; Mon, 15 Feb 2021 18:12:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=u1urISE6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbhBPCMB (ORCPT + 99 others); Mon, 15 Feb 2021 21:12:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbhBPCMA (ORCPT ); Mon, 15 Feb 2021 21:12:00 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73693C061574; Mon, 15 Feb 2021 18:11:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=s6M77qqPUyP6vrb0lQFb/awPS8W4Khs2jpQ6ixqkTJU=; b=u1urISE6rLh5rcNq2O6tANgHCo Gu04LHkFcKO2Z4OIXabD32OeS/AgjxvHE6dvNfhMsXBDDjHOoJZwAIamvqRKXi1Pitg4dZIJz06Lt 83KURXnWXanrmcals7PoXVLIQoZR64IcKD67/HRLxouSjXNGDiOWGrcRbcXQDcrGlKoDlORQOKa5e htETGkCxXa104EyamUhm6yw9mYpOd+rjK42OnOJr77DFHwJaMrNnp6k0bKPaWoN3lK2jpiogsmZm5 ImbmqPEOd56K3jktMNKIvRh5O0Mmv8keAlevLfepeixppXXeXWpQQ0SyZjfnV2NdIGfPKLQdVLFUZ lZUay/Zw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lBpod-00GL6i-EP; Tue, 16 Feb 2021 02:10:18 +0000 Date: Tue, 16 Feb 2021 02:10:15 +0000 From: Matthew Wilcox To: Steve French Cc: Jeff Layton , David Howells , Trond Myklebust , Anna Schumaker , Steve French , Dominique Martinet , CIFS , ceph-devel@vger.kernel.org, linux-cachefs@redhat.com, Alexander Viro , linux-mm , linux-afs@lists.infradead.org, v9fs-developer@lists.sourceforge.net, Christoph Hellwig , linux-fsdevel , linux-nfs , Linus Torvalds , David Wysochanski , LKML , William Kucharski Subject: Re: [PATCH 00/33] Network fs helper library & fscache kiocb API [ver #3] Message-ID: <20210216021015.GH2858050@casper.infradead.org> References: <161340385320.1303470.2392622971006879777.stgit@warthog.procyon.org.uk> <9e49f96cd80eaf9c8ed267a7fbbcb4c6467ee790.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Feb 15, 2021 at 06:40:27PM -0600, Steve French wrote: > It could be good if netfs simplifies the problem experienced by > network filesystems on Linux with readahead on large sequential reads > - where we don't get as much parallelism due to only having one > readahead request at a time (thus in many cases there is 'dead time' > on either the network or the file server while waiting for the next > readpages request to be issued). This can be a significant > performance problem for current readpages when network latency is long > (or e.g. in cases when network encryption is enabled, and hardware > offload not available so time consuming on the server or client to > encrypt the packet). > > Do you see netfs much faster than currentreadpages for ceph? > > Have you been able to get much benefit from throttling readahead with > ceph from the current netfs approach for clamping i/o? The switch from readpages to readahead does help in a couple of corner cases. For example, if you have two processes reading the same file at the same time, one will now block on the other (due to the page lock) rather than submitting a mess of overlapping and partial reads. We're not there yet on having multiple outstanding reads. Bill and I had a chat recently about how to make the readahead code detect that it is in a "long fat pipe" situation (as opposed to just dealing with a slow device), and submit extra readahead requests to make best use of the bandwidth and minimise blocking of the application. That's not something for the netfs code to do though; we can get into that situation with highly parallel SSDs.