From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 02:57:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56468106564A for ; Sat, 10 Jul 2010 02:57:39 +0000 (UTC) (envelope-from depocatcher@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 188588FC19 for ; Sat, 10 Jul 2010 02:57:38 +0000 (UTC) Received: by iwn35 with SMTP id 35so3559913iwn.13 for ; Fri, 09 Jul 2010 19:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:content-type; bh=Whm04ibiOkBykiAHWjW3kE3BJRvPm7rzq2nkGP/mso8=; b=sitD15nbJjwI2fAWS49J/MVt+gnqJSaUKp2SaHD/k58v+Y6WYQ8xbpD3pe8zHHDXu0 Z5OuAeFUNl0HIBVa68bWJ3DcrTt1gwqTtvksRqkdUmPhIviM4TbYbWJJzckx0XW3bjZD AfssR+OYFGxCk6+1AvQKG1ffHRXr4NJqh3GO0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type; b=CN+3gVJeauwH0u/70pQRTU/7yCJTpVorXUATdJmgFtSrscOoVLj9EdLpEs+23yFtP8 GB3wbZGvpp8b8egukF2kUD096c+nemt+uuHv7Z0+Je8eBw9IpaXpamc6ftCZAGiOfl1w eMwFV0o4CFcg/hd8AY7Vc/TYZ0Hxh3SZl+BgI= Received: by 10.231.183.200 with SMTP id ch8mr9072907ibb.124.1278728760046; Fri, 09 Jul 2010 19:26:00 -0700 (PDT) Received: from [192.168.17.10] (c-98-240-166-249.hsd1.mn.comcast.net [98.240.166.249]) by mx.google.com with ESMTPS id 34sm7019201ibi.0.2010.07.09.19.25.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Jul 2010 19:25:58 -0700 (PDT) Message-ID: <4C37DA39.4000706@gmail.com> Date: Fri, 09 Jul 2010 21:26:01 -0500 From: Depo Catcher User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Freebsd questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Disk very slow in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: depocatcher@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2010 02:57:39 -0000 I've tried everything here: http://forums.freebsd.org/showthread.php?t=15747 and here: http://forums.freebsd.org/showthread.php?t=15722 Also followed this: http://forums.freebsd.org/showpost.p...8&postcount=38 I have a 2TB WD drives that I would like to use as one big data partition. I'm using UFS2. No raid, nothing fancy. I'm on FreeBSD 6.4 Release. Under windows I can easily read/write about at ~75MB/s without doing nothing but formatting it. My friend has the same drives in Linux, he says he can get ~50MB/s on his very low end system (crap cpu and only 256mb of ram). Under FreeBSD, my write is at best ~6MB/s and read is about ~9MB/s. The CPU, amount of ram, etc are all better than both the above boxes so don't think it's bound by anything externally like that. From what I read, the partitions aren't aligned correctly? What's going on here? For start to finish, how should I partition and format these so they don't suck? diskinfo: Code: [root@fire2 ~/drive]# diskinfo -v /dev/da3 /dev/da3 512 # sectorsize 2000396746752 # mediasize in bytes (1.8T) 3907024896 # mediasize in sectors 243201 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. dataconfig.cfg: Code: #http://forums.freebsd.org/showpost.php?p=76148&postcount=38 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 3906961408 1 4.2BSD 4096 32768 bsdlabel/newfs: Code: bsdlabel -R /dev/da3 datadrive.cfg newfs -S 4096 -b 32768 -f 4096 -O 2 -U -m 8 -o space -L u2 /dev/da3 fstab: Code: /dev/da3 /u3 ufs rw 2 2