Re: [nfsv4] New version of sparse draft(draft-hildebrand-nfsv4-read-sparse-01.txt)

Benny Halevy <bhalevy@panasas.com> Mon, 04 October 2010 14:54 UTC

Return-Path: <bhalevy.lists@gmail.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CBB893A6F3B for <nfsv4@core3.amsl.com>; Mon, 4 Oct 2010 07:54:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SafvmjARRmRt for <nfsv4@core3.amsl.com>; Mon, 4 Oct 2010 07:54:33 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id C339C3A6E95 for <nfsv4@ietf.org>; Mon, 4 Oct 2010 07:54:33 -0700 (PDT)
Received: by qyk5 with SMTP id 5so1503805qyk.10 for <nfsv4@ietf.org>; Mon, 04 Oct 2010 07:55:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=/GbKi9arT5yvNSVMxxGpqHYbrXoUgP55eEYP/t2R71c=; b=pesadrVkUi6sVEky2gtJ5QOOdAoVzwgX6EKYU+rrknLl1l9dmNtJ7SOLlcUFxvDf7f mjLVfuNKUGE+g5K/trzvkZ5NXDBYsaqnkFle3kxfl24aVy1k4xGjYxYBjU3MNFc0ZOou fTGAH4F+is3Gaew/6kW0LP30hK6xZvNEww5X8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=nOAnyHA+I5BLu72aDYYFDM+B4RRBsHFdhYWJm/usi4kMlCt6NNBtRmhZ6YTZvVPg1r cAAA6JJ5O3cF4JQ89I63cjJ9/2g9Sou0lNUQNB5QCgMeWtcceDAUUgLg1sAGX0U0Slaq UGBhGS4Oc8MynELRtutV4hVjcbbTdH+KGrGPM=
MIME-Version: 1.0
Received: by 10.224.28.71 with SMTP id l7mr7016197qac.58.1286204128634; Mon, 04 Oct 2010 07:55:28 -0700 (PDT)
Sender: bhalevy.lists@gmail.com
Received: by 10.229.251.136 with HTTP; Mon, 4 Oct 2010 07:55:22 -0700 (PDT)
In-Reply-To: <5CD1CFC3-51A4-4DBC-9E7F-EFF1990A0330@netapp.com>
References: <1166093344.184.1286118643092.JavaMail.root@thunderbeast.private.linuxbox.com> <1962942208.186.1286119228985.JavaMail.root@thunderbeast.private.linuxbox.com> <43EEF8704A569749804F545E3306FCE30921519A@SACMVEXC3-PRD.hq.netapp.com> <5CD1CFC3-51A4-4DBC-9E7F-EFF1990A0330@netapp.com>
Date: Mon, 04 Oct 2010 10:55:22 -0400
X-Google-Sender-Auth: uA70TTq_YPlfNRFCxMwMuFDTlA8
Message-ID: <AANLkTi=48A2eny3BW4FGMG1jw4RoLGJnGfmHY2TQT+=a@mail.gmail.com>
From: Benny Halevy <bhalevy@panasas.com>
To: Thomas Haynes <thomas@netapp.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] New version of sparse draft(draft-hildebrand-nfsv4-read-sparse-01.txt)
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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: Mon, 04 Oct 2010 14:54:34 -0000

On Sun, Oct 3, 2010 at 10:54 PM, Thomas Haynes <thomas@netapp.com> wrote:
> The harder case is for a non-clustered pNFS community, i.e., one
> where the MDS and DSes need a control protocol to talk. Let's
> assume that is the case here.
>
> A hole is created when a WRITE happens at a DS that is not
> contiguous with the previous (if any) WRITE.
>
> If a DS is supposed to return the range until the next non-zero
> data, then it will need to contact every other DS or perhaps
> the MDS.
>
> If the MDS is supposed to honor a GET_SPARSE_BLOCK_MAP
> type of request from the client, then either each DS would have
> to send hole entries to the MDS or the MDS would have to
> probe each one.
>
> What if instead of a DS returning information about other DSes,
> it simply returns information about what it knows? I.e., my next
> data is at address X.

I think that this is much cleaner from the protocol perspective.
The DS is essentially serving NFSv4.1 so its READ result applies
to the current filehandle which represents the slice stored
on it, not the logical file striped across multiple DSs.

Benny

>
> Consider a file with a width of 32k. The first write it gets is at 1M
> and then it gets 5 other contiguous writes. The next data is at
> 2M and it gets 4 other contiguous writes. The DS can't assume
> that any other DS has zeros in the first 1M. Worst case, all other
> N-1 DSes do have data there.
>
> In that scenario, N-1 DSes will return 32k on the first read and
> 1 DS will return a hole for it only until 1M. The client will then
> only send N-1 READs until it it gets to the 1M mark.
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>