From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,bfb991ace8baacd9 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-02-15 09:45:36 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.mntp1.il.home.com.POSTED!not-for-mail Message-ID: <3A8C15C0.21C50883@home.com> From: Ed Lee X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Subject: Re: Samba Performance and Oplocks Problem References: <3A904506@MailAndNews.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 15 Feb 2001 17:45:35 GMT NNTP-Posting-Host: 24.8.230.134 X-Complaints-To: abuse@home.net X-Trace: news1.mntp1.il.home.com 982259135 24.8.230.134 (Thu, 15 Feb 2001 09:45:35 PST) NNTP-Posting-Date: Thu, 15 Feb 2001 09:45:35 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.os.linux.alpha:2275 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