linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] More information on my LV with bad read performance..
Date: Fri Oct 26 02:06:01 2001	[thread overview]
Message-ID: <20011026010656.H23590@turbolinux.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0110260000350.23688-100000@ping.us.dell.com>

On Oct 26, 2001  00:03 -0500, Robert Macaulay wrote:
> I realized I didn't include a lvdisplay -v of my volume. Here it is.
> The disks are spread out over 4 scsi busses. 
> 
> --- Logical volume ---
> LV Name                /dev/vgOracle/foo
> VG Name                vgOracle
> LV Write Access        read/write
> LV Status              available
> LV #                   52
> # open                 0
> LV Size                9.04 GB
> Current LE             2314
> Allocated LE           2314
> Stripes                26
> Stripe size (KByte)    64
> Allocation             next free
> Read ahead sectors     120
> Block device           58:51

Well, there was a patch in 2.4.13 to the LVM code to change the readahead
code.  First off, it makes the default readahead 1024 sectors (512kB)
which may be the maximum SCSI request size (don't know the details
exactly).  It also sets a global read_ahead array, so this may impact
it also.  See above, you have a "read ahead" that is smaller than a
single stripe, so it isn't really doing you much good.

However, it is also possible that striping across 26 disks is kind of
pointless, especially for Oracle.  You are far better off to do some
intelligent allocation of the disks depending on known usage patterns
(e.g. put tables and their indexes on separate disks, put rollback
files on separate disks, put heavily used tables on their own disks,
put temporary tablespaces on their own disks).

With LVM, you can easily monitor which PVs/PEs are busiest, and even out
the I/O load by moving LVs/PEs with pvmove (although you CANNOT do this
while the database is active).

Make sure you keep backups of your LVM metadata (both vgcfgbackup, and
also save the text output of "pvdata -avP" and "lvdisplay -v").

Cheers, Andreas
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

  reply	other threads:[~2001-10-26  2:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-26  0:02 [linux-lvm] More information on my LV with bad read performance Robert Macaulay
2001-10-26  2:06 ` Andreas Dilger [this message]
2001-10-26  3:13   ` Heinz J . Mauelshagen
2001-10-26  8:26   ` Robert Macaulay
2001-10-26  8:38     ` Robert Macaulay
2001-10-26 12:28       ` Andreas Dilger

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=20011026010656.H23590@turbolinux.com \
    --to=adilger@turbolabs.com \
    --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;
as well as URLs for NNTP newsgroup(s).