Skip to contentSkip to conversation

Mount wsize and sync options

DISCUSSION Amir Hermelin 2 participants 4 messages May 19, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,
I run an nfs server (RH9, kernel 2.4.20), and have experienced a = behavior
with the wsize mount option that I have no explanation for. It appears = that
when I use the sync option, the wsize is ignored (in default v3 UDP = mount)
and is always 4k.

Maybe someone in the group can explain them to me or refer me to the = 'rules'
for using wsize and sync.

Thanks,
Amir.

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

P=E5 on , 19/05/2004 klokka 06:35, skreiv Amir Hermelin:

Quoted 3 lines

Hi,
I run an nfs server (RH9, kernel 2.4.20), and have experienced a behavior with the wsize mount option that I have no explanation for. It appears th=

at

Quoted 1 line

when I use the sync option, the wsize is ignored (in default v3 UDP mount=

)

Quoted 1 line

and is always 4k.

It is not ignored, it is just capped at PAGE_SIZE. 2k or 1k will therefore work fine...

Cheers,
Trond

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw

Yes, It does accept 1 or 2k. What's the reason for limiting synced = writes
to page size?

-----Original Message-----
From: Trond Myklebust [mailto:[email protected]] On Behalf Of Trond Myklebust
Sent: Wednesday, May 19, 2004 6:11 PM
To: Amir Hermelin
Cc: [email protected]
Subject: Re: [NFS] Mount wsize and sync options

P=E5 on , 19/05/2004 klokka 06:35, skreiv Amir Hermelin:

Quoted 5 lines

Hi,
I run an nfs server (RH9, kernel 2.4.20), and have experienced a=20 behavior with the wsize mount option that I have no explanation for.=20 It appears that when I use the sync option, the wsize is ignored (in=20 default v3 UDP mount) and is always 4k.

It is not ignored, it is just capped at PAGE_SIZE. 2k or 1k will = therefore
work fine...

Cheers,
Trond

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

P=E5 on , 19/05/2004 klokka 16:20, skreiv Amir Hermelin:

Quoted 1 line

Yes, It does accept 1 or 2k. What's the reason for limiting synced write=

s

Quoted 1 line

to page size?

It is because the VFS only writes one page at a time.

Now you could cluster those pages into one large RPC request (and this is how O_SYNC normally works), but it turns out that some applications do actually depend on the pages being synced to disk in the particular order that they were written. The clustering technique unfortunately has races that can ruin those ordering guarantees.

Cheers,
Trond

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs