linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Alex Owen" <r.alex.owen@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Should I expect snapshot origin LV's to be 10x slower?
Date: Thu, 10 May 2007 14:54:39 +0100	[thread overview]
Message-ID: <55c223960705100654m36b559cckada97fccb09a42ac@mail.gmail.com> (raw)

Hello,
I have just been making some snapshot performance benchmarks on a
Debian Etch system.
Kernel:  2.6.18-4-686 (2.6.18.dfsg.1-12etch1)
dmsetup: 1.02.08-1
lvm2: 2.02.06-4

I have been using commands of the form:
  time dd if=/dev/zero of=/dev/volgroup/test bs=1M count=100
to get speeds for copying to a LVM device both WITH and WITHOUT a
single snapshot.

It seems that writes take >=10 times longer the first time a newly
snapshot origin device is written to.

I was expecting somthing like a 2x or 3x performance loss as 1
physical read and 2 physical writes must occur for a single logical
write. I was NOT expecting there to be a 10x overhead. As I move to
larger devices (bs=1M count=1000) the 10x figure rises to nearer 20x.
This is also true on mounted origin LV's.

Has anyone else benchmarked this? Is this normal?

Thanks for any feedback
Alex Owen

             reply	other threads:[~2007-05-10 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10 13:54 Alex Owen [this message]
2007-05-10 14:33 ` [linux-lvm] Should I expect snapshot origin LV's to be 10x slower? Greg Freemyer
2007-05-10 18:36   ` Ming Zhang
2007-05-15 19:32     ` Kottaridis, Chris
  -- strict thread matches above, loose matches on Subject: below --
2007-06-01 19:37 Kevin Jamieson

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=55c223960705100654m36b559cckada97fccb09a42ac@mail.gmail.com \
    --to=r.alex.owen@gmail.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).