linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: tkb <tkb9@roadrunner.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Performance of striping
Date: Mon, 19 May 2008 19:17:04 -0400	[thread overview]
Message-ID: <48320A70.8020709@roadrunner.com> (raw)
In-Reply-To: <20080519190126.GB2611@kiwi.hjbaader.home>

Hans-Joachim Baader wrote:
> Hi,
>
>
>   
>>>       

snip

>> Have you tried fiddling with read ahead ?
>> "blockdev --setra ..." on the striped LV.
>>     
>
> read ahead is currently 256 on all devices. Thanks for the hint.
> I will try some other values. Any Idea what is recommended?
>   

I originally found this script to test read ahead settings on some email 
list - I forget where or who.

#!/bin/bash

RAW_DEVS="/dev/sdb /dev/sdc /dev/sdd /dev/sde"
MD_DEVS=/dev/md17
LV_DEVS=/dev/mapper/vg17-home

LV_RAS="128 256 1024 4096 8192"
MD_RAS="128 256 1024 4096 8192"
RAW_RAS="128 256 1024 4096 8192"

log=/tmp/ra_test.log
rm -f $log

function show_ra()
{
for i in $RAW_DEVS $MD_DEVS $LV_DEVS
do echo -n "$i `blockdev --getra $i`  ::  " | tee $log
echo ""  | tee -a $log
done
}

function set_ra()
{
RA=$1
shift
for dev in $@
do
  blockdev --setra $RA $dev
done
}

function show_performance()
{
COUNT=4000000
/usr/bin/time dd if=$LV_DEVS of=/dev/null count=$COUNT 2>&1 | tee -a $log
echo "<><><>" | tee -a $log
}

for RAW_RA in $RAW_RAS
do
set_ra $RAW_RA $RAW_DEVS
for MD_RA in $MD_RAS
  do
  set_ra $MD_RA $MD_DEVS
  for LV_RA in $LV_RAS
    do
    set_ra $LV_RA $LV_DEVS
    show_ra
    show_performance
    done
  done
done

      reply	other threads:[~2008-05-19 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-17  9:11 [linux-lvm] Performance of striping Hans-Joachim Baader
2008-05-19 12:42 ` Heinz Mauelshagen
2008-05-19 19:01   ` Hans-Joachim Baader
2008-05-19 23:17     ` tkb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48320A70.8020709@roadrunner.com \
    --to=tkb9@roadrunner.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).