From owner-freebsd-questions Sun May 9 10:44:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 25B1B15C21 for ; Sun, 9 May 1999 10:44:20 -0700 (PDT) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id ; Sun, 9 May 1999 13:44:20 -0400 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105878@site2s1> From: Christopher Michaels To: 'Alfred Perlstein' , "Sergey Ayukov (mailing lists)" Cc: freebsd-questions@FreeBSD.ORG Subject: RE: Samba performance? Date: Sun, 9 May 1999 13:45:46 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Alfred Perlstein [SMTP:bright@rush.net] > Sent: Sunday, May 09, 1999 1:41 PM > To: Sergey Ayukov (mailing lists) > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: Samba performance? > > On Sun, 9 May 1999, Sergey Ayukov (mailing lists) wrote: > > > On Sun, 9 May 1999, Alfred Perlstein wrote: > > > > > > > > Anybody has performance numbers for Samba on FreeBSD? I am > getting only > > > > > > about 300KB/sec on write (10MBit/s Ethernet; 21041 cards on both > ends). > > > > > > > > > > have you tried any of the suggested options such as "read > prediction" > > > > > and raw write/read? they are documented in the manpages... > > > > > > > > I did not try them. The default for "write raw" is yes; "read > prediction" > > > > is obsolete and does not work in Samba 2.0. I did not build Samba, > took it > > > > from precompiled packages. smb.conf is straight from my previous > Linux > > > > installation except one option to lpr which caused me much grief > when I > > > > was wondering why damn thing does not want to print. > > > > > > > > > what's the best you get between 2 windows hosts on your ethernet? > > > > > > > > Over 900KB/sec. FTP from the Samba server reaches 1MB/sec. (KB and > MB are > > > > 1000 and 1000000 bytes here, for simplicity). > > > > > > Tuning samba is a bit tricky, there are some socket options you may > want > > > to turn on, read more docs and experiment, you may also want to > compile > > > it yourself looking at all the options available. > > > > Weird. It should work out of the box. > > > > > Was performance this bad under Linux as well? > > > > Of course not (that is why I am asking). I don't recall exact numbers, > but > > I was certainly getting well over 500KB/sec. And read performance is > > reasonable (about 900KB/sec). On local writes I get about 2.3MB/sec > which > > looks close to hard drive performance. > > please, if possible post your machine's hardware configuration, there > are several tuning tips people never do that may be hindering performance > if you can give me this information I may be able to help more... > > cpu, disk type, ram, etc... > > if you are using IDE disks, i recommed you try to change the "flags" > parameter to 0xa0ffa0ff and see if that helps, this will enable DMA > on your hardrives. > > -Alfred > My turn to chime in here. I have similar problems with my samba setup. I have a 100BaseT network, and can get consistent 5000kb/sec through FTP (I assume this is a disk limitation). Any transactions that use samba are significantly slower, usually 5x to 10x slower. So obviously this is a samba tuning issue. I'll be darned if I can find anything that helps me though. I have checked out the 2 performance text files in /usr/local/share/docs/samba/ to no avail. (yes I have DMA mode turned on) So if there is a solution to this, I'd be interested to hear it to. -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message