All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM Overhead
@ 2007-09-22 18:25 Joseph L. Casale
  2007-09-24 15:05 ` Chris Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Joseph L. Casale @ 2007-09-22 18:25 UTC (permalink / raw)
  To: 'linux-lvm@redhat.com'

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

Hi,
I am wanting to use LVM behind an iet iscsi target and I am wondering how much overhead if any does LVM add? Would the performance degrade any, currently I am exporting full unpartitioned discs and am happy with the performance. From what I am reading now, I would likely partition the physical discs and use that in LVM then export a volume.

I am new to LVM but see some advantages long term to using it!

Thanks!
jlc



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

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

* Re: [linux-lvm] LVM Overhead
  2007-09-22 18:25 [linux-lvm] LVM Overhead Joseph L. Casale
@ 2007-09-24 15:05 ` Chris Cox
  2007-09-24 15:15   ` Tomasz Chmielewski
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Cox @ 2007-09-24 15:05 UTC (permalink / raw)
  To: LVM general discussion and development

Joseph L. Casale wrote:
> Hi,
> I am wanting to use LVM behind an iet iscsi target and I am wondering
> how much overhead if any does LVM add? Would the performance degrade
> any, currently I am exporting full unpartitioned discs and am happy with
> the performance. From what I am reading now, I would likely partition
> the physical discs and use that in LVM then export a volume.

Overhead is negligible.  I haven't seen any impact at all.

> 
>  
> 
> I am new to LVM but see some advantages long term to using it!

Definitely.

> 
>  
> 
> Thanks!
> jlc
> 


-- 
Chris Cox
Sr. Unix Sys Admin

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

* Re: [linux-lvm] LVM Overhead
  2007-09-24 15:05 ` Chris Cox
@ 2007-09-24 15:15   ` Tomasz Chmielewski
  2007-09-24 16:34     ` Chris Cox
  2007-09-24 18:04     ` Joseph L. Casale
  0 siblings, 2 replies; 10+ messages in thread
From: Tomasz Chmielewski @ 2007-09-24 15:15 UTC (permalink / raw)
  To: LVM general discussion and development

Chris Cox schrieb:
> Joseph L. Casale wrote:
>> Hi,
>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>> how much overhead if any does LVM add? Would the performance degrade
>> any, currently I am exporting full unpartitioned discs and am happy with
>> the performance. From what I am reading now, I would likely partition
>> the physical discs and use that in LVM then export a volume.
> 
> Overhead is negligible.  I haven't seen any impact at all.

Quite the contrary - unless the default settings are not changed.


By default, the readahead values for LVM volumes is quite low / for 
iSCSI, I always have to change it to get acceptable performance (one 
might want to replace the $HOSTNAME with the name of the PV, or define a 
separate list; "setra" values might need some experimenting, too):


LVMS=$(/bin/ls /dev/$HOSTNAME/)

for LVM in $LVMS
     do
         blockdev --setra 16384 /dev/$HOSTNAME/$LVM
     done


-- 
Tomasz Chmielewski
http://blog.wpkg.org

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

* Re: [linux-lvm] LVM Overhead
  2007-09-24 15:15   ` Tomasz Chmielewski
@ 2007-09-24 16:34     ` Chris Cox
  2007-09-24 16:39       ` Chris Cox
  2007-09-24 18:04     ` Joseph L. Casale
  1 sibling, 1 reply; 10+ messages in thread
From: Chris Cox @ 2007-09-24 16:34 UTC (permalink / raw)
  To: LVM general discussion and development

Tomasz Chmielewski wrote:
> Chris Cox schrieb:
>> Joseph L. Casale wrote:
>>> Hi,
>>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>>> how much overhead if any does LVM add? Would the performance degrade
>>> any, currently I am exporting full unpartitioned discs and am happy with
>>> the performance. From what I am reading now, I would likely partition
>>> the physical discs and use that in LVM then export a volume.
>>
>> Overhead is negligible.  I haven't seen any impact at all.
> 
> Quite the contrary - unless the default settings are not changed.
> 
> 
> By default, the readahead values for LVM volumes is quite low / for
> iSCSI, I always have to change it to get acceptable performance (one
> might want to replace the $HOSTNAME with the name of the PV, or define a
> separate list; "setra" values might need some experimenting, too):
> 
> 
> LVMS=$(/bin/ls /dev/$HOSTNAME/)
> 
> for LVM in $LVMS
>     do
>         blockdev --setra 16384 /dev/$HOSTNAME/$LVM
>     done
> 
> 

Hmmm, perhaps for iSCSI.  But using fibre SAN, I saturate my
2Gbps link (almost 200MB/sec).


-- 
Chris Cox
Sr. Unix Sys Admin

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

* Re: [linux-lvm] LVM Overhead
  2007-09-24 16:34     ` Chris Cox
@ 2007-09-24 16:39       ` Chris Cox
  2007-09-24 17:52         ` Tomasz Chmielewski
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Cox @ 2007-09-24 16:39 UTC (permalink / raw)
  To: LVM general discussion and development

Chris Cox wrote:
> Tomasz Chmielewski wrote:
>> Chris Cox schrieb:
>>> Joseph L. Casale wrote:
>>>> Hi,
>>>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>>>> how much overhead if any does LVM add? Would the performance degrade
>>>> any, currently I am exporting full unpartitioned discs and am happy with
>>>> the performance. From what I am reading now, I would likely partition
>>>> the physical discs and use that in LVM then export a volume.
>>> Overhead is negligible.  I haven't seen any impact at all.
>> Quite the contrary - unless the default settings are not changed.
>>
>>
>> By default, the readahead values for LVM volumes is quite low / for
>> iSCSI, I always have to change it to get acceptable performance (one
>> might want to replace the $HOSTNAME with the name of the PV, or define a
>> separate list; "setra" values might need some experimenting, too):
>>
>>
>> LVMS=$(/bin/ls /dev/$HOSTNAME/)
>>
>> for LVM in $LVMS
>>     do
>>         blockdev --setra 16384 /dev/$HOSTNAME/$LVM
>>     done
>>
>>
> 
> Hmmm, perhaps for iSCSI.  But using fibre SAN, I saturate my
> 2Gbps link (almost 200MB/sec).
> 
> 

I check my local drives, they all use the default 1024....
Is setting the read ahead that big of a deal with just LVM?
I would think if it's an issue, it's an issue everywhere.


-- 
Chris Cox
Sr. Unix Sys Admin

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

* Re: [linux-lvm] LVM Overhead
  2007-09-24 16:39       ` Chris Cox
@ 2007-09-24 17:52         ` Tomasz Chmielewski
  2007-09-25 15:13           ` Chris Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Tomasz Chmielewski @ 2007-09-24 17:52 UTC (permalink / raw)
  To: LVM general discussion and development

Chris Cox schrieb:

(...)

>>> LVMS=$(/bin/ls /dev/$HOSTNAME/)
>>>
>>> for LVM in $LVMS
>>>     do
>>>         blockdev --setra 16384 /dev/$HOSTNAME/$LVM
>>>     done
>>>
>>>
>> Hmmm, perhaps for iSCSI.  But using fibre SAN, I saturate my
>> 2Gbps link (almost 200MB/sec).
>>
>>
> 
> I check my local drives, they all use the default 1024....
> Is setting the read ahead that big of a deal with just LVM?
> I would think if it's an issue, it's an issue everywhere.

For me, the default was 256.

I use that big readahead after a bit of benchmarking; perhaps it's very 
specific to my setup.


-- 
Tomasz Chmielewski
http://wpkg.org

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

* RE: [linux-lvm] LVM Overhead
  2007-09-24 15:15   ` Tomasz Chmielewski
  2007-09-24 16:34     ` Chris Cox
@ 2007-09-24 18:04     ` Joseph L. Casale
  2007-09-26 16:10       ` Chris Cox
  1 sibling, 1 reply; 10+ messages in thread
From: Joseph L. Casale @ 2007-09-24 18:04 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Thanks guys!
You'll have to bear with me here, but how and where do I run the commands you noted here to set this value?

Thanks!
jlc

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On Behalf Of Tomasz Chmielewski
Sent: Monday, September 24, 2007 9:16 AM
To: LVM general discussion and development
Subject: Re: [linux-lvm] LVM Overhead

Chris Cox schrieb:
> Joseph L. Casale wrote:
>> Hi,
>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>> how much overhead if any does LVM add? Would the performance degrade
>> any, currently I am exporting full unpartitioned discs and am happy with
>> the performance. From what I am reading now, I would likely partition
>> the physical discs and use that in LVM then export a volume.
>
> Overhead is negligible.  I haven't seen any impact at all.

Quite the contrary - unless the default settings are not changed.


By default, the readahead values for LVM volumes is quite low / for
iSCSI, I always have to change it to get acceptable performance (one
might want to replace the $HOSTNAME with the name of the PV, or define a
separate list; "setra" values might need some experimenting, too):


LVMS=$(/bin/ls /dev/$HOSTNAME/)

for LVM in $LVMS
     do
         blockdev --setra 16384 /dev/$HOSTNAME/$LVM
     done


--
Tomasz Chmielewski
http://blog.wpkg.org

_______________________________________________
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] 10+ messages in thread

* Re: [linux-lvm] LVM Overhead
  2007-09-24 17:52         ` Tomasz Chmielewski
@ 2007-09-25 15:13           ` Chris Cox
  0 siblings, 0 replies; 10+ messages in thread
From: Chris Cox @ 2007-09-25 15:13 UTC (permalink / raw)
  To: LVM general discussion and development

Tomasz Chmielewski wrote:
> Chris Cox schrieb:
...
>> I check my local drives, they all use the default 1024....
>> Is setting the read ahead that big of a deal with just LVM?
>> I would think if it's an issue, it's an issue everywhere.
> 
> For me, the default was 256.
> 
> I use that big readahead after a bit of benchmarking; perhaps it's very
> specific to my setup.
> 
> 

Oh... I didn't say it wouldn't benefit, I just know in my case
it's not a HUGE win... but it is significant, significant enough
for me to want to experiment with the values and doing some
benchmarking.

256?  Whoa... that seems really low.


-- 
Chris Cox
Sr. Unix Sys Admin

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

* Re: [linux-lvm] LVM Overhead
  2007-09-24 18:04     ` Joseph L. Casale
@ 2007-09-26 16:10       ` Chris Cox
  2007-09-26 16:59         ` Joseph L. Casale
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Cox @ 2007-09-26 16:10 UTC (permalink / raw)
  To: LVM general discussion and development

Joseph L. Casale wrote:
> Thanks guys!
> You'll have to bear with me here, but how and where do I run the commands you noted here to set this value?

I'd probably create an init script and have it executed for a given
runlevel after the mounts are done.

Some distros have a mechanism to add "user" things to end of
the init process, but if not, just grab an init script and
mod it to do the blockdev commands you need (you could make
it smart so that it does some sort of checking for valid
names, etc.)

> 
> Thanks!
> jlc
> 
> -----Original Message-----
> From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On Behalf Of Tomasz Chmielewski
> Sent: Monday, September 24, 2007 9:16 AM
> To: LVM general discussion and development
> Subject: Re: [linux-lvm] LVM Overhead
> 
> Chris Cox schrieb:
>> Joseph L. Casale wrote:
>>> Hi,
>>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>>> how much overhead if any does LVM add? Would the performance degrade
>>> any, currently I am exporting full unpartitioned discs and am happy with
>>> the performance. From what I am reading now, I would likely partition
>>> the physical discs and use that in LVM then export a volume.
>> Overhead is negligible.  I haven't seen any impact at all.
> 
> Quite the contrary - unless the default settings are not changed.
> 
> 
> By default, the readahead values for LVM volumes is quite low / for
> iSCSI, I always have to change it to get acceptable performance (one
> might want to replace the $HOSTNAME with the name of the PV, or define a
> separate list; "setra" values might need some experimenting, too):
> 
> 
> LVMS=$(/bin/ls /dev/$HOSTNAME/)
> 
> for LVM in $LVMS
>      do
>          blockdev --setra 16384 /dev/$HOSTNAME/$LVM
>      done
> 
> 
> --
> Tomasz Chmielewski
> http://blog.wpkg.org
> 
> _______________________________________________
> 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/
> 
> 
> 
> 
> 
> _______________________________________________
> 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] 10+ messages in thread

* RE: [linux-lvm] LVM Overhead
  2007-09-26 16:10       ` Chris Cox
@ 2007-09-26 16:59         ` Joseph L. Casale
  0 siblings, 0 replies; 10+ messages in thread
From: Joseph L. Casale @ 2007-09-26 16:59 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Thank you Chris!
jlc

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On Behalf Of Chris Cox
Sent: Wednesday, September 26, 2007 10:11 AM
To: LVM general discussion and development
Subject: Re: [linux-lvm] LVM Overhead

Joseph L. Casale wrote:
> Thanks guys!
> You'll have to bear with me here, but how and where do I run the commands you noted here to set this value?

I'd probably create an init script and have it executed for a given
runlevel after the mounts are done.

Some distros have a mechanism to add "user" things to end of
the init process, but if not, just grab an init script and
mod it to do the blockdev commands you need (you could make
it smart so that it does some sort of checking for valid
names, etc.)

>
> Thanks!
> jlc
>
> -----Original Message-----
> From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] On Behalf Of Tomasz Chmielewski
> Sent: Monday, September 24, 2007 9:16 AM
> To: LVM general discussion and development
> Subject: Re: [linux-lvm] LVM Overhead
>
> Chris Cox schrieb:
>> Joseph L. Casale wrote:
>>> Hi,
>>> I am wanting to use LVM behind an iet iscsi target and I am wondering
>>> how much overhead if any does LVM add? Would the performance degrade
>>> any, currently I am exporting full unpartitioned discs and am happy with
>>> the performance. From what I am reading now, I would likely partition
>>> the physical discs and use that in LVM then export a volume.
>> Overhead is negligible.  I haven't seen any impact at all.
>
> Quite the contrary - unless the default settings are not changed.
>
>
> By default, the readahead values for LVM volumes is quite low / for
> iSCSI, I always have to change it to get acceptable performance (one
> might want to replace the $HOSTNAME with the name of the PV, or define a
> separate list; "setra" values might need some experimenting, too):
>
>
> LVMS=$(/bin/ls /dev/$HOSTNAME/)
>
> for LVM in $LVMS
>      do
>          blockdev --setra 16384 /dev/$HOSTNAME/$LVM
>      done
>
>
> --
> Tomasz Chmielewski
> http://blog.wpkg.org
>
> _______________________________________________
> 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/
>
>
>
>
>
> _______________________________________________
> 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/
>

_______________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2007-09-26 17:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-22 18:25 [linux-lvm] LVM Overhead Joseph L. Casale
2007-09-24 15:05 ` Chris Cox
2007-09-24 15:15   ` Tomasz Chmielewski
2007-09-24 16:34     ` Chris Cox
2007-09-24 16:39       ` Chris Cox
2007-09-24 17:52         ` Tomasz Chmielewski
2007-09-25 15:13           ` Chris Cox
2007-09-24 18:04     ` Joseph L. Casale
2007-09-26 16:10       ` Chris Cox
2007-09-26 16:59         ` Joseph L. Casale

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.