Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Ed Lee <edlee19@home.com>
Subject: Re: Samba Performance and Oplocks Problem
Date: Thu, 15 Feb 2001 17:45:35 GMT	[thread overview]
Message-ID: <3A8C15C0.21C50883@home.com> (raw)
In-Reply-To: 3A904506@MailAndNews.com

There are read and write buffer sizes that you can modify in the samba
configuration file.  The default value is something small, like 8192 bytes or
so.  You can increase this number to 65536 bytes, perhaps more.  The
documentation for samba indicates that having buffers larger than 65536 bytes
will not increase performance, but I have not tested it to see if the
documentation is correct.  Maybe increasing the read and write buffers sizes
will help.

For 10baseT cards, I found that using OpenSSH along with a Windows OpenSSH
client program, PSCP.EXE, was about 30% faster than using Samba with no
encryption for transferring files between an 800Mhz Athlon Windows 98 computer
and a 533Mhz 21164PC computer running Redhat 7.0.  The 10baseT cards were
Linksys Etherfast PCI cards on both machines, compatible with the "tulip" Linux
driver.  For 100baseT cards, I found that Samba using no encryption was about
twice as fast (around 2MB/s) at transferring files than using the OpenSSH client
program, which uses encryption.  My hypothesis is that there is less free
processor time waiting for disk input/output at 100baseT speeds in which to
perform the encryption with OpenSSH, limiting the speed of the file transfers.
The 100baseT cards were a Netgear FA311 on the Windows 98 machine and Netgear
FA310TX on the Alpha Redhat 7.0 machine.  The FA310TX is compatible with the
"tulip" Linux driver.  I bought the FA310TX online from an advertiser on
Pricewatch.com for about $25, including shipping.  So, perhaps, upgrading your
network cards to 100baseT will help, if the cards are not already at that speed.

-Ed L


Ulisses Eduardo wrote:

> Hi,
>
> i have an DEC 5305 Server (21164 400Mhz 256Mb) runing RedHat 6.2 with Kernel
> 2.2.17 and Samba 2.0.6.
>
> First of all, i was having an problem when 2 distinct clients tried to
> access
> the same file at the same time. One of the 2 clients was granted access to
> the
> file ant the other no. I used the option "oplocks=false" and this problem
> was
> solved.
>
> Now i have another problem: The samba server is almost 10 times slower than
> an
> NT at Pentium 200Mhz 64Mb .
>
> my smb.conf is the default one with only oplocks turned off.
>
> anyone has an idea how can i solve this problem ??
>
> Thank You Very Much,
> Ulisses Jensen



  reply	other threads:[~2001-02-15 17:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15  5:28 Samba Performance and Oplocks Problem Ulisses Eduardo
2001-02-15 17:45 ` Ed Lee [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-16  2:07 Ulisses Eduardo
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox