7 second pause when writing file using samba before it is read viaNFS

This is a discussion on 7 second pause when writing file using samba before it is read viaNFS within the Linux Networking forums, part of the Linux Forums category; I use a server as a go-between between my Windows Vista desktop machine and some of my linux development ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 6 Days Ago
Scott
 
Posts: n/a
Default 7 second pause when writing file using samba before it is read viaNFS

I use a server as a go-between between my Windows Vista desktop
machine and some of my linux development machines. The file server
has both a samba server for talking to the windows boxes, and an NFS
server for talking to the Linux boxes. Commonly I'll edit source using
the windows machine, and then try to compile it on the development
machines.

There is an annoying pause of about 7 seconds when I write a file
using samba before it can be read using NFS. This happens reliably
every time I write to a file. The Linux box that is trying to read the
file blocks for these 7 seconds.

I'm not sure whether the problem is with the windows box, the server,
or the linux client. Any ideas?

Thanks,
Scott
Reply With Quote
  #2 (permalink)  
Old 6 Days Ago
7
 
Posts: n/a
Default Re: 7 second pause when writing file using samba before it is read via NFS

Scott wrote:

> I use a server as a go-between between my Windows Vista desktop
> machine and some of my linux development machines. The file server
> has both a samba server for talking to the windows boxes, and an NFS
> server for talking to the Linux boxes. Commonly I'll edit source using
> the windows machine, and then try to compile it on the development
> machines.
>
> There is an annoying pause of about 7 seconds when I write a file
> using samba before it can be read using NFS. This happens reliably
> every time I write to a file. The Linux box that is trying to read the
> file blocks for these 7 seconds.
>
> I'm not sure whether the problem is with the windows box, the server,
> or the linux client. Any ideas?
>
> Thanks,
> Scott



I'm afraid micoshaft developers have been ordered to fsck with Samba
and like good little bum boys, they have obeyed micoshaft managements
instead of taking them to court over it for anti-competitive monopoly
practices.

You might be able to google and find the flag that needs to be set
so that equal priority is given between windummy guests and samba
guests. This flag is deliberately set so as not to give samba connections
high priority over windummy clients.

Just to be sure, you should be able to verify it by logging into
another samba server (a Linux one) and checking your
file transfer speeds. Linux to Linux samba has astronomical speed.

Reply With Quote
  #3 (permalink)  
Old 5 Days Ago
David Schwartz
 
Posts: n/a
Default Re: 7 second pause when writing file using samba before it is readvia NFS

On May 5, 4:33 pm, Scott <smba...@gmail.com> wrote:

> There is an annoying pause of about 7 seconds when I write a file
> using samba before it can be read using NFS. This happens reliably
> every time I write to a file. The Linux box that is trying to read
> the file blocks for these 7 seconds.


I think the machine using Samba knows that it is the only user of the
file and grabs an oplock to allow it to manipulate the file remotely
without having to synch back to the server. When the NFS client
accesses the file, the oplock has to be revoked, the other client's
buffer flushed, and so on.

One solution may be the "veto oplock files" option in the 'smb.conf'
file. This should convince the Samba client to make its writes
immediately, without a lock, instead of buffering them.

DS
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0