From owner-freebsd-questions@FreeBSD.ORG Sun Jun 4 17:43:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 73B1A16A4F8 for ; Sun, 4 Jun 2006 17:43:17 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from cayster.site5.com (cayster.multisite.site5.com [216.118.97.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC82643D48 for ; Sun, 4 Jun 2006 17:43:16 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from ppp110-20.lns1.hba1.internode.on.net ([150.101.110.20] helo=[192.168.0.4]) by cayster.site5.com with esmtpa (Exim 4.52) id 1Fmwd8-00075y-Bx; Sun, 04 Jun 2006 13:43:14 -0400 Message-ID: <44831BAD.3080904@webanoide.org> Date: Mon, 05 Jun 2006 03:43:09 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: Pavel Duda References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: This message has been scanned by ClamAV. X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cayster.site5.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - webanoide.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD and newer HDD problems ? 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: Sun, 04 Jun 2006 17:43:17 -0000 Pavel Duda wrote: > Hello, > I've recently bought new big HDD (WDC RE, 320GB) and it looks like > FreeBSD has some troubles with it when trying to transfer files over > network. > > If I try to perform some "synthetic" test like 'dd if=/dev/zero > of=/wdc320/testfile' then I get some decent speeds about 40MB/s. When I > try to copy some big files from my older disk (IBM 40GB) I still have > write about 25-27MB/s. > > Problem comes when I try to copy something to disk over network (tried > samba, ftp) disk write speed is very low - about 5-6MB/s at max. > When testing this issue I've start 'systat -vmstat 1' and noticed that > my new disk is very busy (60-100%) and speed (MB/s) jumps up and down. > If I write files with 'dd' or transfer them from disk 2 disk then write > speed and disk load is almost constant (about 60%). When transfering > files over network to old HDD then disk load is low (40-50%) and speed > is constant (8-9MB/s). > > To be sure that disk it is not some kind of disk problem I've installed > Debian 3.1r2 with same version of samba and I get 9-11MB/s transfer > speeds (in both directions) !! > > Also it doesn't matter if I use transfer data over gigabit card or > 100mbit card. Results are similar. FreeBSD is in avarage very very slow > (3MB) while Debian works fine (10MB). Because my server is primarily > used for transfer files (Samba + PDC) it is crucial for me to have > highest transfer speeds possible and I'd like to stick with FreeBSD :-/. > > Does someone has any idea what could be wrong or how could I determine > what causes this problem ? > Hi, This effect is normal since you're transferring files over relatively slow network. The speed through 100Mb/s Ethernet will be around 5 or 6MB/s and probably you can't go any faster due to your hardware limitations (switch, cables, processor, controllers and especially their drivers). Currently there are a few active threads related to similar issues (controllers and their drivers). You might be interested in following them: http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123577.html http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123588.html http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123673.html Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B