From: Gabriel Barazer <gabriel@oxeva.fr>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: AW: Re: [linux-lvm] very slow fw performance when snapshots active
Date: Thu, 18 Oct 2007 17:18:43 +0200 [thread overview]
Message-ID: <47177953.4020008@oxeva.fr> (raw)
In-Reply-To: <1A2D7011B6705B449F66B36B232097C07A7597@x1.ads.i-dmedia.com>
On 10/18/2007 4:01:40 PM +0200, "Zurell, Falko"
<Falko.Zurell@idmedia.com> wrote:
> Ok, i understand the point with the swap file of vi. But why is this
> with snapshots activated that much slower than without?
> Why can the file be saved in seconds without cow instead of about 2
> minutes with cow. Needing twice the time for saving would be reasonable.
I think this is because the re-writing operation on a standard block
device is done using a comparison between the data to write, and the
data already written (which is nearly all the time read from the OS file
cache in your test case, instead of the block device itself, because the
file written was entirely read just before) whereas the LVM snapshot
target redirect any write to the COW space without this comparison step.
Maybe there is a possible optimization of the snapshot dm target which
could compare block before deciding to write them on the COW space.
Obvisouly, such optimization process add a slight overhead an can
possibly have a negative impact on the performance.
Gabriel
next prev parent reply other threads:[~2007-10-18 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 14:01 AW: Re: [linux-lvm] very slow fw performance when snapshots active Zurell, Falko
2007-10-18 15:18 ` Gabriel Barazer [this message]
2007-10-18 16:01 ` malahal
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=47177953.4020008@oxeva.fr \
--to=gabriel@oxeva.fr \
--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).