Re: [nfsv4] Possible change to Flex Files layout

Rick Macklem <rmacklem@uoguelph.ca> Thu, 10 March 2016 03:46 UTC

Return-Path: <rmacklem@uoguelph.ca>
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 7B0FF12D803 for <nfsv4@ietfa.amsl.com>; Wed, 9 Mar 2016 19:46:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.222
X-Spam-Level:
X-Spam-Status: No, score=-4.222 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v5SyuvleX2XW for <nfsv4@ietfa.amsl.com>; Wed, 9 Mar 2016 19:46:22 -0800 (PST)
Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 0A04912D67A for <nfsv4@ietf.org>; Wed, 9 Mar 2016 19:46:21 -0800 (PST)
IronPort-PHdr: 9a23:vhxwFhH15HmWwQX125dAGp1GYnF86YWxBRYc798ds5kLTJ75oMqwAkXT6L1XgUPTWs2DsrQf27WQ4/+rBzFIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niKbipNaNPk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGDeV4X0QGkAHkR5FCRXe8FmuQo32tCf/p8Jy3SCbOYv9SrViChq46KI+ch7ji28iPjU69GzSwphqiatQoxasojRixIHJbYWNNLx1d/WOLpshWWNdU5MJBGR6CYSmYt5KVrJZMA==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2B8AgCN7eBW/61jaINehA1tBrpRDoFtIYVuAoF7FAEBAQEBAQEBYyeCLYIUAQEBAwEjVgULAgEIGBEZAgICVQIEE4gcCA6wDI8lAQEBAQEBAQEBAQEBAQEBAQEBAQ8EBIYYgXuCR4QiAhMZJIJGgToFjiaJEoMTglKJcodrhS6FfoheAh4BQ4QCHi4BiBcBBhkdfgEBAQ
X-IronPort-AV: E=Sophos;i="5.24,314,1454994000"; d="diff'?scan'208";a="271830456"
Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-annu.net.uoguelph.ca with ESMTP; 09 Mar 2016 22:46:20 -0500
Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 49F3715F574; Wed, 9 Mar 2016 22:46:20 -0500 (EST)
Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xkBG-kzxNKlz; Wed, 9 Mar 2016 22:46:19 -0500 (EST)
Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 3D22515F577; Wed, 9 Mar 2016 22:46:19 -0500 (EST)
X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca
Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vcoK_Bsuf5o2; Wed, 9 Mar 2016 22:46:19 -0500 (EST)
Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 02ADD15F574; Wed, 9 Mar 2016 22:46:19 -0500 (EST)
Date: Wed, 09 Mar 2016 22:46:18 -0500
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <trondmy@gmail.com>
Message-ID: <2092494483.11935609.1457581578961.JavaMail.zimbra@uoguelph.ca>
In-Reply-To: <CAABAsM7hN_FSC7VUCvjOpCoJvii0PK7LvJjFy1u_dRiDtzxNZQ@mail.gmail.com>
References: <1244659329.10251491.1457494754382.JavaMail.zimbra@uoguelph.ca> <CAABAsM7hN_FSC7VUCvjOpCoJvii0PK7LvJjFy1u_dRiDtzxNZQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_Part_11935607_490057670.1457581578959"
X-Originating-IP: [172.17.95.11]
X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF44 (Win)/8.0.9_GA_6191)
Thread-Topic: Possible change to Flex Files layout
Thread-Index: iWN+LAnwiJhDAtgFJN+QkdC/qDoC0g==
Archived-At: <http://mailarchive.ietf.org/arch/msg/nfsv4/yX9ZAwLCI-VJ8NRQi_hxeMzwUD8>
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] Possible change to Flex Files layout
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 10 Mar 2016 03:46:24 -0000

Trond Myklebust wrote:
> Hi Rick,
> 
> On Tue, Mar 8, 2016 at 10:39 PM, Rick Macklem <rmacklem@uoguelph.ca> wrote:
> > Hi,
> >
> > I am building an NFSv4.1 pNFS for FreeBSD using Flex Files and
> > I've run into a case where it would be nice to make a small
> > addition to the layout.
> >
> > I have a case where the files are replicated over K of the N
> > servers in the cluster. Which K of the N is on a per file basis.
> > (I am using GlusterFS as a backend and this is its replication
> >  strategy, if I understand it correctly.)
> >
> > When there are replicas, the files are basically mirrored, but
> > writes only need to be done to one of the replicas/mirrors.
> > (Again, if I understand what GlusterFS does.)
> >
> > -- So, what do others think of adding a boolean for the layout
> >    that says "only one mirror needs to be written VS all mirrors
> >    need to be written".
> >
> > I can live without this, but I think I would find it useful and
> > I don't see a problem with adding it.
> >
> > Thanks for your consideration of this, rick
> 
> I don't see any major problems with this request. We have the
> ffl_flags field in the layout, and so adding a flag for this would be
> trivial, and could be done without breaking existing clients. Those
> existing implementations would presumably be inefficient, since they
> would ignore the flag, and continue to write to all mirrors, but they
> would not break.
> 
> One question I have, though, is how this would affect the
> ffds_efficiency? The current expectation for that field is that it
> applies only to the mirrored read case, where you want to select one
> of many mirrors. Wouldn't we also want to extend that scope of that
> field so that it can apply to writes?
Although I don't have a strong opinion, I just stated it would be used
for writes the same as reads for this case in the diff. (At least that
was what I tried to say;-)

I also stated that the storage device had to make sure that all mirrors
were updated before replying successfully to the write (but they don't
have to have the data committed to stable storage until the associated
Commit). Does this sound reasonable?

> Either way I think we'd need a proposal for how we might modify the
> description in
> https://tools.ietf.org/html/draft-ietf-nfsv4-flex-files-06#section-8.1
> 
I've attached a diff of the .txt version as a first stab at the change.

Thanks for your comments, rick

> Cheers
>   Trond
>