Re: [nfsv4] WGLC for delstid draft

David Noveck <davenoveck@gmail.com> Sun, 02 July 2023 13:22 UTC

Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9842C151994 for <nfsv4@ietfa.amsl.com>; Sun, 2 Jul 2023 06:22:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zSYdD5o83Y4K for <nfsv4@ietfa.amsl.com>; Sun, 2 Jul 2023 06:22:52 -0700 (PDT)
Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EED63C151081 for <nfsv4@ietf.org>; Sun, 2 Jul 2023 06:22:51 -0700 (PDT)
Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-634ba7158ecso26160296d6.1 for <nfsv4@ietf.org>; Sun, 02 Jul 2023 06:22:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688304171; x=1690896171; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ypop5kidbsEgN0TsPMhWStTaENeYWEm/PcvBJfMHDYg=; b=ET7+Uf3Ddaa6e3mM/bG8N2VL5TTreTZV+L9GNtEXdy4Xwm435PDcpSFEXN+NIgHQ3s DFdwumBdnNiljovW3I+JOH497sswefJW9Teye3epvbNYgvbLhcFvWM+AH18pPKZlfSPg upAGdH+A4XB7B/OwhZhierDlMqV1VhR9HoWEMKCAC/jRJT85hmWj4exB13pJ2cHplJf3 UPG4wlScG/rw3PUIJM5Ztktw7P7iYnv3j50yLad3JIy0njh47ZgRe55vtAl9VhH+hg6D iBelI8uxAur7YdvenIFCl8OzTc8ayPyCwb6wtjEA/EOIym7wxw47HKcR6+GtJct5zXUH PPGA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688304171; x=1690896171; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ypop5kidbsEgN0TsPMhWStTaENeYWEm/PcvBJfMHDYg=; b=VX4sp80r+7nCGebU05ky1GZUbj4pHU11wAyGWdcYJa2EmdLSOJpl78lWn5SRFpZrUT R90dUtO1MKIlm8jucKmsJ3Zo/Vs007suOA/c5yVT3ygSpatXF17sBJzWROWVKXiRJX+w 0KUka5xehpXHvlzpjjPB8t19iULIib6ffhccEt9p83o82sGsCm3Wke+9dLaR+sHnB5Hp Ip1EuKzc2+tlJx4TlalckKcr60dUWujvoM0Mi/HPX4cQmB7b6ghhwCmrVhM8e/2IUY19 Z/7YHG1OqB2nI77cqQTUvccF1PONoW6XuGUXCv+NwMSsrenNhyz1M9jQ7EYlob4G3R0v VHiQ==
X-Gm-Message-State: ABy/qLYb7zdw7mILV7Vch4bVxqA9k3DV4bDMDPoDmuT+iy1JGxCtFWeJ XXUGL0Amxxqit++GUEdWIH9jKrZ0YUUK7TsVhKMCL0lPZ88=
X-Google-Smtp-Source: APBJJlEA21GGMEL9bPoxllNqHLiFuA0rsDzxPhY3Mq95/0vz1o1NnhZ1riyKu5TzSuE8qifHVOGg4Ihi3o1/iF20Ofc=
X-Received: by 2002:a05:6214:c4a:b0:635:e303:ed6d with SMTP id r10-20020a0562140c4a00b00635e303ed6dmr8489268qvj.52.1688304170759; Sun, 02 Jul 2023 06:22:50 -0700 (PDT)
MIME-Version: 1.0
References: <CADaq8jc_3ND-KTDce1N9j_PeAW+vBwkSgJ7gSWxTg=H=ryqgqw@mail.gmail.com> <CAM5tNy7R9rMJt39-N4J_mcoBvfiU2nxrh2wwbDVXX7zjrKg5HQ@mail.gmail.com> <CADaq8jdy7b=evApy4oBGx5ha8xXQDrHf3V1Ekup3D5OcaNAjiA@mail.gmail.com> <CAM5tNy53ZeYKHxuCR+qxmPHaEy2Stp7=fh8i_273QoBn9kfntA@mail.gmail.com> <CAABAsM4VWXq7cLiRZW4JJQC4SSqL-xqoMxf=NRboyhZ=t7VWtw@mail.gmail.com> <CAM5tNy71dQw+YyyOfBq5d7MBYhq=GPnQjHzbkO0KMrdJD0k=Zg@mail.gmail.com> <F966AF3D-47CF-456B-B92F-DA253EA41053@hammerspace.com> <CAM5tNy7Yz3iETdgFKSv+4phC8aubwys_i-K4QWH3nxp8hJVBeg@mail.gmail.com> <CBD5EE42-F32B-420D-8098-A5F54C219965@cert.org>
In-Reply-To: <CBD5EE42-F32B-420D-8098-A5F54C219965@cert.org>
From: David Noveck <davenoveck@gmail.com>
Date: Sun, 02 Jul 2023 09:22:39 -0400
Message-ID: <CADaq8jd6-w-YVYz749p04sr4DLWgR2cXRZUOrt=GhgvsaUED1g@mail.gmail.com>
To: NFSv4 <nfsv4@ietf.org>
Cc: Rick Macklem <rick.macklem@gmail.com>, Thomas Haynes <loghyr@hammerspace.com>, Trond Myklebust <trondmy@gmail.com>, Zaheduzzaman Sarker <zahed.sarker.ietf@gmail.com>, Chris Inacio <inacio@cert.org>
Content-Type: multipart/alternative; boundary="0000000000005ef90d05ff80f27d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/7PD5XDtC3JEiHEuk1_QFmwdUQ0c>
Subject: Re: [nfsv4] WGLC for delstid draft
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Jul 2023 13:22:53 -0000

On Sat, Jul 1, 2023, 10:36 PM Chris Inacio <inacio@cert.org> wrote:

> Top posting on purpose here - this doesn’t need to carry into any more of
> this thread.
>
> This is a great conversation and the feedback needed to advance the
> document, but my opinion, (as a chair,) is that we need another spin of the
> draft before this is ready to leave the WG.
>

I agree.  That new spin would have to address issues raised during WGLC,
including stuff in my review and Chuck's requests for implementation
information.

I think the details will be discussed in Tom's response to the WGLC issues,
which have been delayed until he feels better.  It makes sense if that
happens on the NFSv4 list.

 Looking forward to the conversation about this.
>
> I also would like to see this on the NFSv4 list - not just with chairs and
> a select few.
>

Up until now the discussion was about clarifying Rick's specific comment so
he and the document authors were necessarily part of "the select few"

Is there any reason not to continue this conversation on list?
>

No.


> ----
> Chris Inacio
> inacio@cert.org
>
>
>
> On Jul 1, 2023, at 6:41 PM, Rick Macklem <rick.macklem@gmail.com> wrote:
>
> On Sat, Jul 1, 2023 at 1:38 PM Thomas Haynes <loghyr@hammerspace.com>
> wrote:
>
>
>
>
> On Jul 1, 2023, at 1:32 PM, Rick Macklem <rick.macklem@gmail.com> wrote:
>
> On Sat, Jul 1, 2023 at 1:16 PM Trond Myklebust <trondmy@gmail.com> wrote:
>
>
>
>
> On Sat, Jul 1, 2023 at 4:01 PM Rick Macklem <rick.macklem@gmail.com>
> wrote:
>
>
> On Sat, Jul 1, 2023 at 12:37 PM David Noveck <davenoveck@gmail.com> wrote:
>
>
> As this is a  new flag rather than a new operation, I think the proper
> error would be NFS4ERR_INVAL. That applies to v4.0 and v4.1 servers as well
> as v4.2 servers that choose not to implement the feature.
>
> Ok. I misinterpreted "protocol element is a known part of the variant"
> (I assumed "variant" included the extension) of RFC8178 Sec. 4.3.
>
> I do see Sec. 4.4.3 notes that a NFS4ERR_INVAL reply indicates the
> server has no knowledge of the flag bit.
>
> Thanks for the clarification, rick
> ps; If the draft included a implementation experience section that showed
>     significant reductions in RPC/Operation counts, I might be interested
>     in implementing it.
>
>
>
> For small file workloads, it has basically allowed us to reduce the
> open(O_CREATE|O_WRONLY) + write() + close() operation down to 1 synchronous
> calls to our metadata server, 1 (synchronous) write to the pNFS data
> server, and 1 deferred/asynchronous call to the metadata server.
>
> open() -> creates the file and retrieves the attributes + layout as a
> single COMPOUND
> write() -> does a synchronous write operation to the pNFS data server.
> close() is a no-op, since we only hold a delegation, and that can be
> released asynchronously either upon a delegation recall from the server, or
> when the client decides to garbage collect it.
>
> With the standard OPEN operation, we have to throw in a synchronous CLOSE,
> since the latter holds stateful locks, and is not recallable.
>
> IOW: for that kind of workload it reduces the total number of operations
> on the wire by 25% (by eliminating either the CLOSE or the DELEGRETURN). It
> reduces the number of synchronous operations by 33% when the server can
> hand out a delegation (which it usually can for an O_CREATE workload).
>
> Although late in the game, it would nice if this were captured in the
> draft.
>
> I might actually be inspired to implement it, rick
>
>
> So you want small section on real world applications of this?
>
> I think a short implementation experience section would be good.
> (There is mention of IETF's running code mantra right on the
> ietf.org home page.)
>
> If you can encode Trond's above case in the draft, I think that
> justifies the extension quite nicely. (At least it convinces me that
> implementing it is worth the effort.)
>
> rick
>
>
>
>
>
>
>
> On Sat, Jul 1, 2023, 2:54 PM Rick Macklem <rick.macklem@gmail.com> wrote:
>
>
> Assuming all a server needs to do is reply NFS4ERR_NOTSUPP
> (which appears to be what RFC8178 says)
> when the OPEN4_SHARE_ACCESS_WANT_OPEN_XOR_DELEGATION
> flag is specified, then I have no problem
> with it (and no intent on ever implementing it).
>
> I feel that this makes an already complex operation (OPEN)
> even more complex and convoluted, but so long as
> implementation is always optional, so be it.
>
> rick
>
> On Sat, Jul 1, 2023 at 4:13 AM David Noveck <davenoveck@gmail.com> wrote:
>
>
> I recall you  raised some concerns about the fact that Tom and Trond's
> draft by allowing open to return a delegation stateid and not an open
> stateid might not be a valid extension since you could read some text
> rfc8881 as contradicted by the creation of this extension.
>
> In my view, this text does not foreclose this extension or require that
> the new extension be marked as updating rfc8881. It was never intended that
> extensions to v4.2 had to avoid invalidating statements made about v4.1.
>
> Nevertheless, we need to get consensus so I  have to ask whether you still
> think there is something wrong with this extension and some major
> adjustment is needed before submission.
>
>
>