From owner-freebsd-questions Wed Mar 5 0: 6:49 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8407F37B401 for ; Wed, 5 Mar 2003 00:06:47 -0800 (PST) Received: from mail.duth.gr (mail.duth.gr [192.108.114.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDC5643F3F for ; Wed, 5 Mar 2003 00:06:45 -0800 (PST) (envelope-from bigbrother@bonbon.net) Received: from bigb3server.bbcluster.gr (b9-19.xan.duth.gr [193.92.211.19]) by mail.duth.gr (8.12.6/8.12.6) with ESMTP id h2586gVs083431 (version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 5 Mar 2003 10:06:43 +0200 (EET) (envelope-from bigbrother@bonbon.net) Received: from macedon (macedon.vlsi.gr [192.168.3.226]) by bigb3server.bbcluster.gr (8.12.6/8.12.6) with ESMTP id h2586SZQ022372 for ; Wed, 5 Mar 2003 10:06:37 +0200 (EET) (envelope-from bigbrother@bonbon.net) From: "Bigbrother" To: Subject: Re: SAMBA performance and FreeBSD Date: Wed, 5 Mar 2003 10:09:49 +0200 Organization: Bigbrother Clustered Network Message-ID: <003d01c2e2ee$9a8e0e10$e203a8c0@macedon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I forgot to say: >uname -a FreeBSD matrix.vlsi.gr 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #1: Tue Mar 4 12:09:06 EET 2003 matrix@matrix.vlsi.gr:/usr/obj/usr/src/sys/matrix i386 ------------- > ifconfig wb0: flags=8843 mtu 1500 inet 192.168.3.200 netmask 0xffffff00 broadcast 192.168.3.255 ether 00:80:48:b5:b9:6d media: Ethernet autoselect (100baseTX ) status: active wb1: flags=8802 mtu 1500 ether 00:80:48:b5:92:2f media: Ethernet autoselect (100baseTX ) status: active --------------- >dmesg CPU: Pentium 4 (2394.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff,ACC,> real memory = 536854528 (524272K bytes) atapci0: port 0xb400-0xb40f,0xb800-0xb803,0xd000-0xd 007,0xd400-0xd403,0xd800-0xd807 irq 11 at device 2.5 on pci0 ad0: 78167MB [158816/16/63] at ata0-master PIO4 ad1: 78167MB [158816/16/63] at ata0-slave PIO4 ad2: 78167MB [158816/16/63] at ata1-master PIO4 --------------- > more /boot/loader.conf hw.ata.ata_dma=0 hw.ata.atapi_dma=0 [* I have disabled the DMA, because otherwise the boot process is halted and trying to reset the hard disc, because of a strange timeout] ---------- I used to experiment with two network cards simultaneous connected to the same switch and using netgraph, but when I was using the local 100Mbits net, the load of the server went > 6 [because in netgraph, one card is working on promiscuous mode...]. So I am using only wb0, with an average load of the machine of 0.12 Finally if I put the value net.inet.tcp.delayed_ack=0 Then comparing with the previous situation the speed is much worst. That is the value net.inet.tcp.delayed_ack=1 is much better (on my local 100Mbits net). This was measured for both small and large files (7MB, and 700MB). All the tests are done using Windows XP. On my smb.conf I only have TCP_NODELAY in socket options. P.s. I disabled the NFS server [because this is an nfs server as well for other machines] and the samba read/write speed on my 100Mbits network has increased to 3 Mbytes/sec (no load on the machine). This is still lower than the 7Mbytes/sec on the local 100Mbits network that I have using FTP. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message