From owner-freebsd-questions Sun May 9 11:19:19 1999 Delivered-To: freebsd-questions@freebsd.org Received: from crydee.sai.msu.ru (crydee.sai.msu.ru [195.208.220.203]) by hub.freebsd.org (Postfix) with ESMTP id 4B3E315AD0 for ; Sun, 9 May 1999 11:19:10 -0700 (PDT) (envelope-from asv1@crydee.sai.msu.ru) Received: from localhost (asv1@localhost) by crydee.sai.msu.ru (8.9.2/8.9.2) with ESMTP id VAA00546; Sun, 9 May 1999 21:21:29 +0400 (MSD) (envelope-from asv1@crydee.sai.msu.ru) Date: Sun, 9 May 1999 21:21:29 +0400 (MSD) From: "Sergey Ayukov (mailing lists)" To: Alfred Perlstein Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Samba performance? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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... Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.1-RELEASE #4: Sat May 1 22:46:50 MSD 1999 root@crydee.sai.msu.ru:/usr/src/sys/compile/CRYDEE Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 180409766 Hz CPU: Pentium/P54C (180.41-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 41943040 (40960K bytes) avail memory = 38334464 (37436K bytes) Preloaded elf kernel "kernel" at 0xf0280000. Probing for devices on PCI bus 0: chip0: rev 0x03 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x00 on pci0.7.1 de0: rev 0x11 int a irq 11 on pci0.8.0 de0: 21041 [10Mb/s] pass 1.1 de0: address 00:80:48:e8:de:e3 de1: rev 0x41 int a irq 10 on pci0.9.0 de1: 21143 [10-100Mb/s] pass 4.1 de1: address 00:80:48:cd:7b:e4 de2: rev 0x30 int a irq 9 on pci0.10.0 de2: 21143 [10-100Mb/s] pass 3.0 de2: address 00:80:48:cd:0a:7e Probing for devices on the ISA bus: sc0 on isa sc0: VGA color <16 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 9671MB (19807200 sectors), 19650 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (wd2): wd2: 6204MB (12706470 sectors), 13446 cyls, 15 heads, 63 S/T, 512 B/S wdc1: unit 1 (wd3): wd3: 4884MB (10003392 sectors), 9924 cyls, 16 heads, 63 S/T, 512 B/S ppc0 at 0x378 irq 7 on isa ppc0: W83877F chipset (EPP/PS2/NIBBLE) in COMPATIBLE mode ppb0: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus0: ppbus0: HP ENHANCED PCL5,PJL nlpt0: on ppbus 0 nlpt0: Interrupt-driven port ppi0: on ppbus 0 plip0: on ppbus 0 vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa npx0 on motherboard npx0: INT 16 interface de0: enabling 10baseT port Intel Pentium detected, installing workaround for F00F bug changing root device to wd0s1a de1: enabling 10baseT port de2: enabling 10baseT port de1: enabling 100baseTX port de2: enabling 100baseTX port Transfers go through de0. > 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. Oh. I wonder why it is not the default? I have enabled it, but there's no visible performance improvement with Samba. --------------------------------------------------------------------------- Dr. Sergey Ayukov Sternberg Astronomical Institute http://www.ayukov.com Moscow, Russia http://crydee.sai.msu.ru/index-asv.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message