- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- NFS - asynchronously even with "sync" option?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2008 02:06 AM
тАО06-27-2008 02:06 AM
NFS - asynchronously even with "sync" option?
Is "wdelay" option related to this behaviour?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 02:28 AM
тАО06-29-2008 02:28 AM
Re: NFS - asynchronously even with "sync" option?
With the "async" option, when client A writes to the NFS server, the server can reply "write completed" to client A before the write is actually committed to disk. With the "sync" option, the server can reply "write completed" only after the data is actually written to disk.
The "wdelay" option has no effect when the "async" option is set.
When the "sync" option is set, the "wdelay" option allows the server to wait a bit before committing the write operation to the disk. If another related write operation happens immediately after the first, the server can combine the two disk write operations to improve performance. But if the two NFS requests are likely to be completely unrelated to each other, the "wdelay" option can actually reduce performance.
You can use the "no_wdelay" option to switch the wdelay feature off. Sounds like your application might need this.
See "man exports" and "man nfs" for a description of all the NFS options.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 05:46 AM
тАО06-29-2008 05:46 AM
Re: NFS - asynchronously even with "sync" option?
>When the "sync" option is set, the "wdelay" >option allows the server to wait a bit >before committing the write operation to >the disk
but do you think that sync+wdelay may cause to client A to receive acknoledge even before file writing is finished?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 06:53 AM
тАО06-29-2008 06:53 AM
Re: NFS - asynchronously even with "sync" option?
I tried both default and with "no_wdealy" nfs server - the ame weird thing.
My test script is
clientA> while true;do cp /tmp/kkk /nfs-mounted-dir/`date +%h%m%s%N`; ls -1 nfs-mounted-dir/Ju*|wc -l ;ssh clientB 'ls -1 /nfs-mounted-dir/Ju*|wc ';done
I see that in both cases there is small delay before clientB sees new files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 07:52 AM
тАО06-29-2008 07:52 AM
Re: NFS - asynchronously even with "sync" option?
├В┬┐What about the server itself? This may be realted to client caching.
A system administrator can try using the "noac" mount option to achieve attribute cache coherency among multiple clients. Almost every client operation checks file attribute information. Usually the client keeps this information cached for a period of time to reduce network and server load.
When "noac" is in effect, a client's file attribute cache is disabled, so each operation that needs to check a file's attributes is forced to go back to the server. This permits a client to see changes to a file very quickly, at the cost of many extra network operations.
Be careful not to confuse "noac" with "no data caching." The "noac" mount option will keep file attributes up-to-date with the server, but there are still races that may result in data incoherency between client and server. If you need absolute cache coherency among clients, applications can use file locking, where a client purges file data when a file is locked, and flushes changes back to the server before unlocking a file; or applications can open their files with the O_DIRECT flag to disable data caching entirely.
http://nfs.sourceforge.net/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 10:43 PM
тАО06-29-2008 10:43 PM
Re: NFS - asynchronously even with "sync" option?
Still keeping the desk here at NDS warm.
I've seen similar behavior in my lab and it would appear that due to buffer cache on busy systems there is a delay in files becoming visible.
The severity of the delay depends on how much I/O is happening on the NFS server.
I've seen it with busy RH 4 systems, several updates.
It would appear to be a feature, not a bug and there doesn't seem to be much to do about it other than setting up a load balancing NFS cluster which might be overkill and requires shared storage to work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2008 11:53 PM
тАО06-29-2008 11:53 PM
Re: NFS - asynchronously even with "sync" option?
2Steven - nice to speak with you!
but not, my NFS server isn't under high load.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2008 03:56 AM
тАО06-30-2008 03:56 AM
Re: NFS - asynchronously even with "sync" option?
uname -a
cat /etc/redhat-release
yum time?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2008 04:43 AM
тАО06-30-2008 04:43 AM
Re: NFS - asynchronously even with "sync" option?
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Linux test 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
"yum time" - what do you mean?