Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9D47C4360F for ; Wed, 3 Apr 2019 00:28:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9806D2084A for ; Wed, 3 Apr 2019 00:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725912AbfDCA2W (ORCPT ); Tue, 2 Apr 2019 20:28:22 -0400 Received: from fieldses.org ([173.255.197.46]:57322 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfDCA2W (ORCPT ); Tue, 2 Apr 2019 20:28:22 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 4C89C1C1E; Tue, 2 Apr 2019 20:28:22 -0400 (EDT) Date: Tue, 2 Apr 2019 20:28:22 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "bradley.kuszmaul@oracle.com" , "linux-nfs@vger.kernel.org" Subject: Re: directory delegations Message-ID: <20190403002822.GA7667@fieldses.org> References: <2065755c-f888-9c62-f6e5-f143d42c51ee@oracle.com> <20190402161116.GA2828@fieldses.org> <2f1f6582-3672-1361-4392-80cb1e62e19c@oracle.com> <20190402194148.GA5269@fieldses.org> <58230e155813e866cb057e6543ab7e61f51fedf6.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58230e155813e866cb057e6543ab7e61f51fedf6.camel@hammerspace.com> 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 Tue, Apr 02, 2019 at 09:51:42PM +0000, Trond Myklebust wrote: > On Tue, 2019-04-02 at 15:41 -0400, J. Bruce Fields wrote: > > On Tue, Apr 02, 2019 at 01:26:19PM -0400, Bradley C. Kuszmaul wrote: > > > My simple model of metadata operations is to untar something like > > > the linux sources. > > > > > > Each file incurs a LOOKUP, CREATE, SETATTR, and WRITE, each of > > > which > > > is fairly high latency (even the WRITE ends up being done > > > essentially synchronously because tar closes the file after its > > > write(2) call.) > > > > An ordinary file write delegation can help with some of that. > > > > > I guess directory delegations might save the cost of LOOKUP. > > > > > > Is there any hope for getting write delegations? > > > > > > What other steps might be possible? > > > > Trond, wasn't there a draft describing your idea that a server should > > be > > able to grant a write delegation on create and delay the sync? I > > can't > > find it right now. > > > Do you mean this one? > https://tools.ietf.org/html/draft-haynes-nfsv4-delstid-00 Maybe it's too subtle for me. What's the part that allows delaying sync on create? --b.