Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 May 2005 17:16:44 -0500
From:      Jonathan Noack <noackjr@alumni.rice.edu>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: Very low disk performance on 5.x
Message-ID:  <4276A6CC.3000108@alumni.rice.edu>
In-Reply-To: <00fe01c54f61$df220d60$b3db87d4@multiplay.co.uk>
References:  <19879.1115061648@critter.freebsd.dk> <00fe01c54f61$df220d60$b3db87d4@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDA032C7B1FAEFCCE124B0366
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 5/2/2005 4:56 PM, Steven Hartland wrote:
> ----- Original Message ----- From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
>> On -current and 5.4 you don't have to make partitions if you
>> intend to use the entire disk (and provided you don't want
>> to boot from it).  You can simply:
>>
>> newfs /dev/da0
>> mount /dev/da0 /where_ever
> 
> /dev/da0: 1526216.3MB (3125691008 sectors) block size 16384, fragment 
> size 2048
>  using 8306 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
> mount /dev/da0 /mnt
> 
> dd if=/dev/zero of=/mnt/testfile bs=64k count=100000
> 100000+0 records in
> 100000+0 records out
> 6553600000 bytes transferred in 44.424588 secs (147521908 bytes/sec)
> 
> /usr/bin/time -h dd of=/dev/null if=/mnt/testfile bs=64k 
> count=100000      100000+0 records in
> 100000+0 records out
> 6553600000 bytes transferred in 48.150473 secs (136106658 bytes/sec)
>        48.27s real             0.01s user              12.33s sys
> 
> /usr/bin/time -h cat /mnt/testfile > /dev/null
>        48.12s real             0.26s user              14.92s sys
> 
> Raw read:
> /usr/bin/time -h dd of=/dev/null if=/dev/da0 bs=64k 
> count=100000            100000+0 records in
> 100000+0 records out
> 6553600000 bytes transferred in 32.028544 secs (204617482 bytes/sec)
>        32.02s real             0.02s user              2.73s sys

Look at the difference in sys times for raw vs. filesystem reads.  With 
raw we're at 2.73s while reading from the filesystem requires 12.33s! 
 From my position of complete ignorance that seems like a lot...

-- 
Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195

--------------enigDA032C7B1FAEFCCE124B0366
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFCdqbQUFz01pkdgZURAs7XAJ4oZksFCPBuH65I30UylE+HZhCJHgCeOXpw
E6YXzImxHepv1kqpyHPwDz8=
=XBU1
-----END PGP SIGNATURE-----

--------------enigDA032C7B1FAEFCCE124B0366--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4276A6CC.3000108>