[linux-lvm] LVM and *bad* performance (no striping)

Rik van Riel riel at conectiva.com.br
Mon Feb 26 21:41:37 UTC 2001


On 26 Feb 2001, Urs Thuermann wrote:

>     isnogud:/root# time dd if=/dev/sda5 of=/dev/null count=100000
>     100000+0 records in
>     real    0m6.720s

>     isnogud:/root# time dd if=/dev/vg0/test of=/dev/null count=100000
>     100000+0 records in
>     real    0m41.851s

> When making an ext2 filesystem on /dev/sda5 or /dev/vg0/test
> respectivley, the performance of cp'ing, grep'ing all files and rm'ing
> all files, seems to be comparable.  But why is the performance of
> reading the block device with dd so bad?

Maybe dd is reading in 512 byte blocks on /dev/sda5 and
4096 bytes on /dev/vg0/test ?

(I'm not sure if it is, but these blocksizes are the
default blocksize on each device and you only told dd
to "read 100000 blocks" ... this ratio also explains
the time difference of 8 times)

regards,

Rik
--
Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml

Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

		http://www.surriel.com/
http://www.conectiva.com/	http://distro.conectiva.com/




More information about the linux-lvm mailing list