From: Vangelis Koukis <vkoukis@grnet.gr>
To: Stuart D Gathman <stuart@bmsi.com>
Cc: synnefo-devel@googlegroups.com, linux-lvm@redhat.com
Subject: Re: [linux-lvm] Sparse LVs, --virtualsize equal to --size
Date: Fri, 25 Jan 2013 10:39:38 +0200 [thread overview]
Message-ID: <20130125083938.GD22422@daedalus.cslab.ece.ntua.gr> (raw)
In-Reply-To: <51017F0C.20100@bmsi.com>
[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]
On Thu, Jan 24, 2013 at 01:35:56pm -0500, Stuart D Gathman wrote:
> Long ago, Nostradamus foresaw that on 01/24/2013 01:08 PM, Alasdair G
> Kergon would write:
> > If you've got the capacity to test, create one that's quite a bit
> > larger and see how much space it actually uses up when full, then use
> > that size in future. There's a header, and then the blocks are written
> > sequentially with an index block inserted ahead of each group of
> > data blocks.
> >
> > Or try out thin LVs available in recent LVM releases/kernels for
> > an alternative 'sparse' approach.
> He doesn't actually want sparse, he wants "instant zero" via copy on
> write. This is useful for virtual machines by preventing information
> leaks between customers. Currently, you can create a "template" LV,
> and have a snapshot for each VM. Since you (almost) never write to the
> template, you don't run into the performance issue. He proposed a new
> type of LV that is a normal LV plus a small bitmap (1 bit per chunk)
> that tracks which chunks have been written to. When a chunk is written
> to, the remainder of that chunk is set to zero. Reads from unwritten
> chunks always return zeroes.
>
Spot on!
"Guaranteed initialized to zero" is what I'm looking for.
So the LVM snapshot mechanism would work, but it may be a bit of an
overkill.
I'd rather not do it in a trial-and-error fashion, trying different
values of S just a bit larger than V, until it works. How large is the
overhead per chunk? Ideally, we could quantify the overhead as a
fraction of the chunk size, and use it as a safe margin for estimating
the needed physical size.
Thanks again,
Vangelis.
--
Vangelis Koukis
vkoukis@grnet.gr
OpenPGP public key ID:
pub 1024D/1D038E97 2003-07-13 Vangelis Koukis <vkoukis@cslab.ece.ntua.gr>
Key fingerprint = C5CD E02E 2C78 7C10 8A00 53D8 FBFC 3799 1D03 8E97
Only those who will risk going too far
can possibly find out how far one can go.
-- T.S. Eliot
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2013-01-25 8:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 15:53 [linux-lvm] Sparse LVs, --virtualsize equal to --size Vangelis Koukis
2013-01-24 18:08 ` Alasdair G Kergon
2013-01-24 18:35 ` Stuart D Gathman
2013-01-24 23:42 ` Alasdair G Kergon
2013-01-25 8:44 ` Vangelis Koukis
2013-01-25 12:29 ` Alasdair G Kergon
2013-01-25 16:19 ` Vangelis Koukis
2013-01-28 13:50 ` Marian Csontos
2013-01-29 8:24 ` Vangelis Koukis
2013-01-31 16:22 ` Lars Ellenberg
2013-02-06 16:05 ` Vangelis Koukis
2013-01-25 8:39 ` Vangelis Koukis [this message]
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=20130125083938.GD22422@daedalus.cslab.ece.ntua.gr \
--to=vkoukis@grnet.gr \
--cc=linux-lvm@redhat.com \
--cc=stuart@bmsi.com \
--cc=synnefo-devel@googlegroups.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).