Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-18-2013, 05:07 AM   #1
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question Fixing slow samba shares

Hi all ,

In my office we are having 4 Debian squeeze machines , in these machine we set up samba shares , but accessing these shares from windows machines was far too slow. I googled to find out the solution as

Open up /etc/samba/smb.conf

Add the following to the [global] part of the config:


Add the following to the [share]:

delete readonly = yes
oplocks = yes

now can any one explain the terms:- IPTOS_LOWDELAY , oplocks etc ?
Old 01-19-2013, 06:51 AM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,485

Rep: Reputation: Disabled
These settings are all explained in the Samba documentation, available on

TCP_NODELAY shouldn't be necessary, as it's been the default since Samba 2.0.4. It actually causes Samba to send multiple, smaller packets to minimize the time it has to spend waiting for TCP acknowledgements from the client.

SO_KEEPALIVE causes Samba to do periodic keepalive checks to verify that clients with open connections are still reachable, and then purge connections to non-reachable clients. This should not directly affect performance, but may free some resources in environments with a large number of clients.

SO_RCVBUF and SO_SNDBUF sets the size of the receive and send buffers respectively. A larger buffer may result in somewhat higher performance, but most Samba tuning documents refer to this increase as "marginal".

IPTOS_LOWDELAY has to do with the "Type of Service" field in IP packets. Specifying IPTOS_LOWDELAY means the OS, if it supports IP ToS, will move these packets to the front of the queue, ahead of any packets not marked with "LOWDELAY". Since TOS is an actual field in the IP header, routers supporting IP TOS will do the same.

delete_readonly simply allows deletion of read-only files from directories where the user has write permissions.

oplocs means that "Opportunistic Locking" is supported on a given share. This feature allows clients to do aggressive local caching, which in some (perhaps most) scenarios can yield significant performance gains, and in others have the exact opposite effect.

If a client opens a file for exclusive access, oplocks are very helpful. If a file is opened non-exclusively, oplocks may cause a significant delay if the same file is later opened (again, non-excusively) by another client, as the first client must then be made to flush its cache.

Oplocks should never be allowed on shared database files, so make sure to use the veto oplock files option if you allow oplocks on shares containing such files.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very slow browsing samba shares neddis Linux - Software 4 06-15-2007 09:29 PM
Samba shares slow access newbie-dan Linux - Software 1 02-04-2006 03:16 PM
Browsing Samba shares - slow :( MikeScott Linux - Software 5 06-08-2005 07:41 AM
Browsing shares in samba slow? kleptophobiac Linux - Software 7 08-07-2004 09:57 AM
accessing samba shares is slow! kudos Linux - Software 2 11-26-2003 02:48 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration