Linux LVM users
 help / color / mirror / Atom feed
From: Ron Arts <raarts@netland.nl>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] performance comparison soft-hardware RAID + LVM: bad
Date: Wed Oct 16 11:04:10 2002	[thread overview]
Message-ID: <3DAD8837.8070803@netland.nl> (raw)
In-Reply-To: 3DAD24A0.814E4028@silicide.dk

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

Jon Bendtsen wrote:
> Ron Arts wrote:
> 

[snip]

(I received your report, thanks)


>  
> 
>>Results are below. Anyone care to comment? Especially LVM performance
>>disappointed here.
> 
> 
> I cant clearly see what is LVM setup and what isnt. Remember that LVM 
> doesnt allocate blocks sequeltial, but by default the first one free.
> So, when you create 3 lv's, and then you mkfs them, then you allocate
> at least the first block. Then when you fill the rest of the
> filesystem...
> you allocate the next blocks. Results are one block in the beginning,
> a wide gap, and then the rest of the blocks.
> 

Sorry, I don't understand. Why the gap?
Omn the other hand, the underlying devices are RAID-1 in software, the
allocation shouldn't matter should it?

> 
> 
>>LVM machine setup:
>>
>>2 18Gb disks. I created 3 partitions on both disks, 128Mb, 512Mb and 17Gb
>>Equal partitions were combined into RAID-1 devices (md driver).
>>First md device mounted on /boot, second for swapfile, and third
>>as basis for LVM
>>
>>Out of the volume group four LV were created and mounted as follows:
>>
>>[root@nbs-126 root]# df
>>Filesystem           1K-blocks      Used Available Use% Mounted on
>>/dev/vg0/root          4225092   1293064   2717400  33% /
>>/dev/md0                124323     11517    106387  10% /boot
>>/dev/vg0/home          4225092     32828   3977636   1% /home
>>none                    514996         0    514996   0% /dev/shm
>>/dev/vg0/var           4225092     51720   3958744   2% /var
>>/dev/vg0/mysql        16513960     32828  15642272   1% /var/lib/mysql
>>
>>Is there a reason for the performance degradation I saw with LVM?
> 
> 
> I've done 3 (or 0.5 + 0.5 + 1) benchmarks. The first 2 times i didnt do
> it well enough. I dont believe you have done it well enough, you clearly
> dont have enough numbers. I found that using tiobench i had to variate
> the number of threads (concurrent read/write) and the blocksize, before
> i
> got the best performance. And it variates alot. (See my .pdf, which i
> will
> mail to you). I've got lots of numbers. I used gnuplot to create graphs,

Okay, but lots of numbers still don't explain why in this particular case
performance was so slow. If I understand why, I can begin to make
optimizations.

To give some background:
I do this because I need such a setup for a particular application
(MySQL high volume logging server). If I understand the issues involved
I can make more informed choices implementing the application.
Should it log using multiple threads or one? Will readers from the
datbase hinder the writing process a lot? What is the best way
to add disks using LVM, without taking a large performance hit?

This server must be up 24x7. I found something called scsirastools
that can deal with hotswapping SCSI disks under software RAID.

I thought I'd first try some benchmarks with bonnie to get a feel
for the issues involved, and seeing the performance (and CPU) hit
for my LVM setup (and having never used LVM before) I decided
to ask you guys about this.


And thanks for your report, at least it confirmed what I
had seen: software raid is faster then hardware.

Regards,
Ron Arts


-- 
Netland Internet Services
bedrijfsmatige internetoplossingen

http://www.netland.nl   Kruislaan 419              1098 VA Amsterdam
info: 020-5628282       servicedesk: 020-5628280   fax: 020-5628281

Does old mail ever arrive?

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3291 bytes --]

  reply	other threads:[~2002-10-16 11:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15 17:39 [linux-lvm] performance comparison soft-hardware RAID + LVM: bad Ron Arts
2002-10-16  3:28 ` Heinz J . Mauelshagen
2002-10-17 10:51   ` [linux-lvm] performance comparison soft-hardware RAID + LVM: bad (LONG) Ron Arts
2002-10-16  3:57 ` [linux-lvm] performance comparison soft-hardware RAID + LVM: bad Jon Bendtsen
2002-10-16 11:04   ` Ron Arts [this message]
2002-10-17  4:19     ` [linux-lvm] performance comparison soft-hardware RAID + LVM:bad Jon Bendtsen
     [not found] <20021016085753.20974.47952.Mailman@hermes.sistina.com>
2002-10-16 22:47 ` [linux-lvm] performance comparison soft-hardware RAID + LVM: bad Arie Bant@mail.com

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=3DAD8837.8070803@netland.nl \
    --to=raarts@netland.nl \
    --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