From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 16:38:02 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 B1396106564A for ; Sat, 10 Jul 2010 16:38:02 +0000 (UTC) (envelope-from rloefgren@forethought.net) Received: from mzpi4.forethought.net (mzpi4.forethought.net [216.241.36.13]) by mx1.freebsd.org (Postfix) with ESMTP id 924988FC12 for ; Sat, 10 Jul 2010 16:38:01 +0000 (UTC) Received: from 216-241-45-95.static.forethought.net ([216.241.45.95] helo=auden.jmla.com) by mz2.forethought.net with esmtpa (Exim 4.69) (envelope-from ) id 1OXd3w-0001u1-TZ for freebsd-questions@freebsd.org; Sat, 10 Jul 2010 10:38:01 -0600 Message-ID: <4C38A1E8.6030407@forethought.net> Date: Sat, 10 Jul 2010 10:38:00 -0600 From: Reed Loefgren User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100321 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C37DA39.4000706@gmail.com> In-Reply-To: <4C37DA39.4000706@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Disk very slow in FreeBSD 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: Sat, 10 Jul 2010 16:38:02 -0000 On 07/09/10 20:26, Depo Catcher wrote: > > 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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Do: sysctl -a | grep vfs.read_max and post the result. Or just set it to something bigger than (8?) and see what speeds you get. On my box: vfs.read_max: 32 FreeBSD is set up pretty conservatively out of the box. The learning curve is fun. hth