Networking Forums

Networking Forums > Computer Networking > Linux Networking > 7 second pause when writing file using samba before it is read viaNFS

Reply
Thread Tools Display Modes

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

 
 
Scott
Guest
Posts: n/a

 
      05-05-2008, 11:33 PM
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
 
 
 
 
7
Guest
Posts: n/a

 
      05-05-2008, 11:42 PM
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
 
David Schwartz
Guest
Posts: n/a

 
      05-07-2008, 03:21 PM
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba file-writing logs Linux_tec Linux Networking 1 11-04-2006 08:34 PM
Samba file-writing logs Linux_tec Linux Networking 0 11-04-2006 08:20 PM
Writing a config file for ProFTPd =?ISO-8859-15?Q?Daniel_B=F6hmer?= Linux Networking 2 09-21-2005 02:10 PM
Problems writing to samba share Dennis Luemkemann Linux Networking 0 12-05-2004 01:30 PM
permission denied writing in samba shared directory on linux pepijn Linux Networking 1 10-13-2003 08:17 PM



1 2 3 4 5 6 7 8 9 10 11