From owner-freebsd-questions@FreeBSD.ORG Mon Feb 25 16:30:03 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A02316A402 for ; Mon, 25 Feb 2008 16:30:03 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 02D4213C459 for ; Mon, 25 Feb 2008 16:30:02 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id D67F0EBC08; Mon, 25 Feb 2008 11:30:01 -0500 (EST) Date: Mon, 25 Feb 2008 11:30:01 -0500 From: Bill Moran To: Nenad Mihajlovic Message-Id: <20080225113001.5035f4ec.wmoran@potentialtech.com> In-Reply-To: <20080225165935.ko4deb28u8wkkkwk@venturis.hu> References: <20080225165935.ko4deb28u8wkkkwk@venturis.hu> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: FreeBSD SAMBA file server performance - strange behaviour X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2008 16:30:03 -0000 In response to Nenad Mihajlovic : > Hi all, > > Recently I have received the reuest from the colleague to create the > homebrewn NAS for his small office, so I started checking the possible > options, and having good, long and stable relationship with FreeBSD > I've settled again for it. > Machine is not something special, Pentium D with 1G RAM and single > SATA150 disk, 3Com 1G server card in the PCI slot, connected to the > desktop though 1Gbps unmanaged switch. > If needed I'll provide the full config and setup information. > > After installing the bare FreeBSD 7.0RC3 and Samba 3.x.xx - whichewer > was included in the packages - I wanted to have the job done quickly, > the machine appeared on the network and everyone seemed to be happy > and live happily everafter. > Until dear friend of mine started using the machine to do the actual > work - basic editing of the wedding videos. > > When trying to upload the single file to file server, he was getting > the varying speed of 5-13 MBps, from his machine to file server - > which is unacceptably low for any kind of transfer speed. > > Interestingly enough, when he tried to copy _TWO_ files to file > server, the transfer speed vould jump to the 25-27 MB/sec and keep > permanent, without much fluctuation. > > After I tried to copy the files from one directory to another, iostat > has shown me the speed in excess of 29 MB/sec while copying the files > between two directories on the same server, so the disk access should > not be the problem. > > On the other hand, i experienced that when i try PING on the File > server's IP address from the fileserver, i get performance increase in > the transfer speed - the bigger the traffic i generate, the better the > results, which max out at 25-27 MB/sec with flood ping. > > Has anyone else experienced any similar behaviour? This is a pretty wild guess, but can you verify that the ethernet settings are correct? If the interface is set to autoneg, can you verify that both ends (the FreeBSD machine and the switch itself) have negotiated the same speed/duplex? Wouldn't be the first time I saw a switch negotiate a different speed/ duplex than the NIC on the other end. -- Bill Moran http://www.potentialtech.com