Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2010 10:38:00 -0600
From:      Reed Loefgren <rloefgren@forethought.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Disk very slow in FreeBSD
Message-ID:  <4C38A1E8.6030407@forethought.net>
In-Reply-To: <4C37DA39.4000706@gmail.com>
References:  <4C37DA39.4000706@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
> <http://forums.freebsd.org/showpost.php?p=76148&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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C38A1E8.6030407>