From: dw+linux-lvm@hmmz.org
To: linux-lvm@redhat.com
Subject: [linux-lvm] Thin snapshot caching behaviour
Date: Tue, 3 Jun 2014 15:22:09 +0000 [thread overview]
Message-ID: <20140603152209.GA13815@k2> (raw)
Hi there,
While playing with LVM thin provisioning, I've noticed that snapshots
seem to have different caching semantics compared to their original thin
LV.
I've hunted everywhere for documentation that describes this difference,
or even an indication of on what layer it occurs, but I can find none.
Perhaps someone here could shed some light?
Thin volume behaves like a regular drive:
# echo 1 > /proc/sys/vm/drop_caches
# dd if=/dev/vg0/tv0 of=/dev/null bs=64k count=1000
65536000 bytes (66 MB) copied, 0.946389 s, 69.2 MB/s
# dd if=/dev/vg0/tv0 of=/dev/null bs=64k count=1000
65536000 bytes (66 MB) copied, 0.00810655 s, 8.1 GB/s
Create activated snapshot:
# lvcreate -kn -s -n tv0s /dev/vg0/tv0
Logical volume "tv0s" created
# dd if=/dev/vg0/tv0s of=/dev/null bs=64k count=1000
65536000 bytes (66 MB) copied, 1.00061 s, 65.5 MB/s
Second dd shows no/very little speedup:
# time dd if=/dev/vg0/tv0s of=/dev/null bs=64k count=1000
65536000 bytes (66 MB) copied, 0.921402 s, 71.1 MB/s
Thanks,
David
next reply other threads:[~2014-06-03 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 15:22 dw+linux-lvm [this message]
2014-06-04 0:19 ` [linux-lvm] Thin snapshot caching behaviour Lars Ellenberg
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=20140603152209.GA13815@k2 \
--to=dw+linux-lvm@hmmz.org \
--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).