Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2100970ybh; Fri, 17 Jul 2020 09:18:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsGa5b64QOMW3G/1dTcSbkhZJJrV80SKbPxQe3Ri3O/gGCpaEpTL7cZGXRTPGpXVyTG5IK X-Received: by 2002:a05:6402:542:: with SMTP id i2mr10261118edx.318.1595002733346; Fri, 17 Jul 2020 09:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595002733; cv=none; d=google.com; s=arc-20160816; b=dvxg6UO4OPt1CdYtCGovN5Vr8QJsvCvf0kx158cd2q0/LMS1VrI1EtUFY+TBjqV6xy GJAtKCq5Ep5zEASX3jXgaWYmZlHPQmQ9qahO4nwk7esG3NirNDyTYiidZQYc2fUxCs3l oNm5DLf/XeQnb+5ZRtgSO/J7vRrgprfohlntFHpEeDbUg0D7hWxd91Y9H6mIeOENz21N 5h0QbL4EM7o31eEEuvxlJ3ryElUBGmQ4vxSL+Q7zf9I99ISafaOAFqlO8QXUkp2D0Fv5 qr3lQW3BobsXeNrAKBjphdAKPFuAbWaEPCcszICajV/MPdn60z7mYZN+HYs4dbC4JR3+ XdGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=tYhnQxHtVXZsch71emoSMhHHLHfImF5QSXERd/ZhMhw=; b=BNu8a8hDLn9Lmz0JfGgv53IuVnklQoS145KKLMWOwQJeBY1U7ZQTsjg9SnSzyesR5w fiPGV6R8/w46pBr7GczD4+aLgZFQyJ75YFznBm9h3NBh10zr3IvIjFiMxcm4w/7yIZdA YJ4LP67RXZp7JEvQ64ujgXc0GkaDyJN+HJ9NKRMV1S8Edvu0wkBSGMpjxdBR2Jn3YU6n V9C/deh41Hy/yUD/SS3MRbmL2A1/VTLq5+U4nSKK+RyLyQ6kR8cNIEifkudYL+CveB2s DCSw8xTT6WQ50F4wPEbW+ZrjibbAJL2CQ4Cq7o9QO4vb3Gyxz5K1h2ovSyqECVIdo0xQ KuxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=vljbNF6p; 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 f20si5401597edx.189.2020.07.17.09.18.17; Fri, 17 Jul 2020 09:18:53 -0700 (PDT) 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=@fieldses.org header.s=default header.b=vljbNF6p; 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 S1726696AbgGQQSP (ORCPT + 99 others); Fri, 17 Jul 2020 12:18:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgGQQSO (ORCPT ); Fri, 17 Jul 2020 12:18:14 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3403C0619D2 for ; Fri, 17 Jul 2020 09:18:14 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id E59719C61; Fri, 17 Jul 2020 12:18:13 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org E59719C61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1595002693; bh=tYhnQxHtVXZsch71emoSMhHHLHfImF5QSXERd/ZhMhw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vljbNF6piztK/mcyr+p3iJjrcNxN04UBI+3KDuZfhaQEZtHJXcBYtHMrJesVuszWu l7gmDsSyxecuHg66EWTpTUqqPeYbvpx/Jjzafk53+Fnr29G+yC4wdIRak/04TY4nJu Jj8oR2rot3jE2BNSydor+w9Qn+dlnfdcyR4EUguo= Date: Fri, 17 Jul 2020 12:18:13 -0400 From: "J. Bruce Fields" To: David Howells Cc: Dave Wysochanski , linux-nfs@vger.kernel.org, linux-cachefs@redhat.com, Anna Schumaker , Trond Myklebust Subject: Re: [Linux-cachefs] [RFC PATCH v1 0/13] Convert NFS client to new fscache-iter API Message-ID: <20200717161813.GB21567@fieldses.org> References: <20200717142541.GA21567@fieldses.org> <1594825849-24991-1-git-send-email-dwysocha@redhat.com> <3607831.1594999165@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3607831.1594999165@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Jul 17, 2020 at 04:19:25PM +0100, David Howells wrote: > J. Bruce Fields wrote: > > > Say I had a hypothetical, err, friend, who hadn't been following that > > FS-Cache work--could you summarize the advantages it bring us? > > https://lore.kernel.org/linux-nfs/159465784033.1376674.18106463693989811037.stgit@warthog.procyon.org.uk/T/#t > > - Makes the caching code a lot simpler (~2400 LoC removed, ~1000 LoDoc[*] > removed at the moment from fscache, cachefiles and afs). > > - Stops using bmap to work out what data is cached. This isn't reliable with > modern extend-based filesystems. A bitmap of cached granules is saved in > an xattr instead. > > - Uses async DIO (kiocbs) to do I/O to/from the cache rather than using > buffered writes (kernel_write) and pagecache snooping for read (don't ask). > > - A lot faster and less CPU intensive as there's no page-to-page copying. > > - A lot less VM pressure as it doesn't have duplicate pages in the backing > fs that aren't really accounted right. > > - Uses tmpfiles+link to better handle invalidation. It will at some point > hopefully employ linkat(AT_LINK_REPLACE) to effect cut-over on disk rather > than unlink,link. Thanks!--b. > David > > [*] The upstream docs got ReSTified, so the doc patches I have are now useless > and need reworking:-(.