Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] tps for block device vs lvm device
@ 2008-08-08  1:04 unlisted
  2008-08-08 16:29 ` malahal
  0 siblings, 1 reply; 2+ messages in thread
From: unlisted @ 2008-08-08  1:04 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

Why would I see 50x the amount of transactions on the lvm volume vs the
actual underlying block device ?

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.00    0.00   11.41   57.07    0.00   31.51
Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda             211.33         0.00        56.12          0        113
sdb             268.47        63.05         0.00        128          0
dm-0          14365.52         0.00        56.11          0        113
dm-1              0.00         0.00         0.00          0          0
sdc               0.00         0.00         0.00          0          0
211 tps versus 14365 tps.  The box is idle and the following command was
running:

dd if=/dev/sdb of=/home/xxxxxxx/bigrandomfile.txt bs=4k count=10000000

Sam

[-- Attachment #2: Type: text/html, Size: 2321 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] tps for block device vs lvm device
  2008-08-08  1:04 [linux-lvm] tps for block device vs lvm device unlisted
@ 2008-08-08 16:29 ` malahal
  0 siblings, 0 replies; 2+ messages in thread
From: malahal @ 2008-08-08 16:29 UTC (permalink / raw)
  To: linux-lvm

I believe, that is due to bio vs request. LVM/DM block devices receive
and use bio requests where as sdX uses requests (which are coalesced
from these bio's using elevator algorithms). So the actual disk
transactions would be fewer.

--Malahal.

unlisted [unlisted@gmail.com] wrote:
>    Why would I see 50x the amount of transactions on the lvm volume vs the
>    actual underlying block device ?
> 
>    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>               0.00    0.00   11.41   57.07    0.00   31.51
>    Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
>    sda             211.33         0.00        56.12          0        113
>    sdb             268.47        63.05         0.00        128          0
>    dm-0          14365.52         0.00        56.11          0        113
>    dm-1              0.00         0.00         0.00          0          0
>    sdc               0.00         0.00         0.00          0          0
>    211 tps versus 14365 tps.  The box is idle and the following command was
>    running:
> 
>    dd if=/dev/sdb of=/home/xxxxxxx/bigrandomfile.txt bs=4k count=10000000
>    Sam

> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-08 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08  1:04 [linux-lvm] tps for block device vs lvm device unlisted
2008-08-08 16:29 ` malahal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox