Linux LVM users
 help / color / mirror / Atom feed
From: "Eric M. Hopper" <hopper@omnifarious.org>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Parallel IO on striped logic volume?
Date: Wed, 5 Sep 2001 12:41:58 -0500	[thread overview]
Message-ID: <20010905124158.A23242@omnifarious.org> (raw)
In-Reply-To: <Pine.SOL.3.95.1010905110932.12169A-100000@pecos.ncsa.uiuc.edu>; from xiliu@ncsa.uiuc.edu on Wed, Sep 05, 2001 at 12:29:50PM -0500

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

On Wed, Sep 05, 2001 at 12:29:50PM -0500, Xiaoxiang Liu wrote:
> I have a performance problem about parallel IO on striped logic volume.
> 
> I build a striped LV on 4 scsi disks. If I do sequential IO on one disk
> with buffer size 4k, the bandwidth is 9MB/s. Then I do sequential IO on
> LV with buffer size 16k. Theoretically I can get almost 4*9=36MB/s because
> LVM stripe 4k IO on every disk but I only get 18MB/s. I don't know where
> I lost so much performance or it is the overhead of LVM? I do believe LVM 
> do parallel IO because if I increase buffer size to 1024k, I can get 
> 51MB/s which is close to 4*14 MB/s and 14MB/s is the maximum
> bandwidth of a single disk.
> 
> My question is why I can't see nearly linear scaling of the bandwidth 
> when the buffer size is small? Does striping LVM do real parallel IO
> similar to software RAID0?

	Here's a random guess...

	You have to schedule the reads on each of the 4 disks, then wait
for the reads to complete on each of the 4 disks.  Due to details of
disk positioning, the latency to actually get to the data you're asking
for is different on each of the 4 disks.  Each time you do this read,
you end up with the maximum latency any of the disks will give you.

	The bigger your buffer size, the greater the ratio of data read
to latency.  That ratio will be magnified by the maximum latency
characteristics of reading from multiple devices simultaneously.

Just a guess,
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (hopper@omnifarious.org  http://www.omnifarious.org/~hopper) --

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

      reply	other threads:[~2001-09-05 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E15eZdD-0008IY-00@hermes.sistina.com>
2001-09-05 17:29 ` [linux-lvm] Parallel IO on striped logic volume? Xiaoxiang Liu
2001-09-05 17:41   ` Eric M. Hopper [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=20010905124158.A23242@omnifarious.org \
    --to=hopper@omnifarious.org \
    --cc=linux-lvm@sistina.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