Very low disk performance on 5.x

Jonathan Noack noackjr at alumni.rice.edu
Mon May 2 15:28:57 PDT 2005


On 5/2/2005 4:56 PM, Steven Hartland wrote:
> ----- Original Message ----- From: "Poul-Henning Kamp" <phk at 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 at alumni.rice.edu | OpenPGP: 0x991D8195
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-performance/attachments/20050502/081873da/signature.bin


More information about the freebsd-performance mailing list