2012-06-25 07:43:10

by Johannes Schild

[permalink] [raw]
Subject: LAYOUTCOMMIT/LAYOUTRETURN

Hi Guys,

i have another question on pNFS. I looked at my Wireshark protocols, while i used the FILE-Layout, and i wondered why i have no LAYOUTCOMMIT/LAYOUTRETURN statements in my protocols.
I transfered one file to my storage server (NETAPP Simulator 8.1 C-Mode) and i only got a LAYOUTGET.

cat /proc/self/mountstats | grep LAYOUT says:
nfsv4: bm0=0xfafe8fff,bml=0x60fdfffe,acl=0x3,sessions,pnfs=LAYOUT_NFSV4_1_FILES
LAYOUTGET: 1 1 0 216 236 0 1 1
LAYOUTCOMMIT: 0 0 0 0 0 0 0 0
LAYOUTRETURN: 0 0 0 0 0 0 0 0


Is there any other way to verify that pnfs is used on client site?


Thanks in advance


Best Regards

Johannes



--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


2012-06-26 13:21:46

by Johannes Schild

[permalink] [raw]
Subject: Re: LAYOUTCOMMIT/LAYOUTRETURN

Thanks for your fast reply. I'll look deeper in it.


Best Regards

Johannes
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

2012-06-25 09:04:38

by Idan Kedar

[permalink] [raw]
Subject: Re: LAYOUTCOMMIT/LAYOUTRETURN

On Mon, Jun 25, 2012 at 10:43 AM, Johannes Schild <[email protected]> wrote:
> Hi Guys,
>
> i have another question on pNFS. I looked at my Wireshark protocols, while i used the FILE-Layout, and i wondered why i have no LAYOUTCOMMIT/LAYOUTRETURN statements in my protocols.
> I transfered one file to my storage server (NETAPP Simulator 8.1 C-Mode) and i only got a LAYOUTGET.
>
> cat /proc/self/mountstats | grep LAYOUT says:
> nfsv4: bm0=0xfafe8fff,bml=0x60fdfffe,acl=0x3,sessions,pnfs=LAYOUT_NFSV4_1_FILES
> ? ?LAYOUTGET: 1 1 0 216 236 0 1 1
> ?LAYOUTCOMMIT: 0 0 0 0 0 0 0 0
> ?LAYOUTRETURN: 0 0 0 0 0 0 0 0
>
>
> Is there any other way to verify that pnfs is used on client site?
>
>
> Thanks in advance
>
>
> Best Regards
>
> Johannes
>
>
>
> --
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html

about layoutcommit:
http://tools.ietf.org/rfcmarkup?doc=5661#section-13.7

about layoutreturn:
http://tools.ietf.org/rfcmarkup?doc=5661#section-12.5.5.1

--
Idan Kedar
Tonian

2012-06-25 13:46:57

by Trond Myklebust

[permalink] [raw]
Subject: Re: LAYOUTCOMMIT/LAYOUTRETURN

On Mon, 2012-06-25 at 09:43 +0200, Johannes Schild wrote:
> Hi Guys,
>
> i have another question on pNFS. I looked at my Wireshark protocols, while i used the FILE-Layout, and i wondered why i have no LAYOUTCOMMIT/LAYOUTRETURN statements in my protocols.
> I transfered one file to my storage server (NETAPP Simulator 8.1 C-Mode) and i only got a LAYOUTGET.
>
> cat /proc/self/mountstats | grep LAYOUT says:
> nfsv4: bm0=0xfafe8fff,bml=0x60fdfffe,acl=0x3,sessions,pnfs=LAYOUT_NFSV4_1_FILES
> LAYOUTGET: 1 1 0 216 236 0 1 1
> LAYOUTCOMMIT: 0 0 0 0 0 0 0 0
> LAYOUTRETURN: 0 0 0 0 0 0 0 0

A pNFS client should never send LAYOUTCOMMIT to a server that does FILE_SYNC writes.

The Linux pNFS client uses the 'forgetful client' model, so it will
never send LAYOUTRETURN on layout recalls either. The only case where we
send LAYOUTRETURN is when the file falls out of the inode cache.


> Is there any other way to verify that pnfs is used on client site?

The most direct way is to look for a TCP connection to the data server
using 'netstat -t'.

Cheers
Trond


2012-06-26 12:43:51

by Johannes Schild

[permalink] [raw]
Subject: Re: LAYOUTCOMMIT/LAYOUTRETURN

Hi,

thanks for your answers.

But how do i find out, whether the server is using FILE_SYNC?
Is there any other mode like "FILE_ASYNC"?

And if the server is using FILE_SYNC, how does it get LAYOUTCOMMIT?


Thanks in advance


Johannes


-------- Original-Nachricht --------
> Datum: Mon, 25 Jun 2012 09:46:40 -0400
> Von: Trond Myklebust <[email protected]>
> An: Johannes Schild <[email protected]>
> CC: [email protected]
> Betreff: Re: LAYOUTCOMMIT/LAYOUTRETURN

> On Mon, 2012-06-25 at 09:43 +0200, Johannes Schild wrote:
> > Hi Guys,
> >
> > i have another question on pNFS. I looked at my Wireshark protocols,
> while i used the FILE-Layout, and i wondered why i have no
> LAYOUTCOMMIT/LAYOUTRETURN statements in my protocols.
> > I transfered one file to my storage server (NETAPP Simulator 8.1 C-Mode)
> and i only got a LAYOUTGET.
> >
> > cat /proc/self/mountstats | grep LAYOUT says:
> > nfsv4:
> bm0=0xfafe8fff,bml=0x60fdfffe,acl=0x3,sessions,pnfs=LAYOUT_NFSV4_1_FILES
> > LAYOUTGET: 1 1 0 216 236 0 1 1
> > LAYOUTCOMMIT: 0 0 0 0 0 0 0 0
> > LAYOUTRETURN: 0 0 0 0 0 0 0 0
>
> A pNFS client should never send LAYOUTCOMMIT to a server that does
> FILE_SYNC writes.
>
> The Linux pNFS client uses the 'forgetful client' model, so it will
> never send LAYOUTRETURN on layout recalls either. The only case where we
> send LAYOUTRETURN is when the file falls out of the inode cache.
>
>
> > Is there any other way to verify that pnfs is used on client site?
>
> The most direct way is to look for a TCP connection to the data server
> using 'netstat -t'.
>
> Cheers
> Trond
>

--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

2012-06-26 12:54:38

by Myklebust, Trond

[permalink] [raw]
Subject: Re: LAYOUTCOMMIT/LAYOUTRETURN

T24gVHVlLCAyMDEyLTA2LTI2IGF0IDE0OjQzICswMjAwLCBKb2hhbm5lcyBTY2hpbGQgd3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