From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: Matt Clark <matt@ymogen.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: LVM snapshots
Date: Mon, 17 Mar 2003 16:39:31 +0100
Message-ID: <20030317153931.GD23149@vestdata.no> (raw)
In-Reply-To: <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net>
References: <20030317152630.GB23149@vestdata.no>
<OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net>
On Mon, Mar 17, 2003 at 03:35:53PM -0000, Matt Clark wrote:
> > LVM-blocksizes are relatively large, 4 MB pr default, and for large
> > volumes it's common to use even bigger blocks (say 128 MB). For a 2TB
> > volume and 128 MB blocks the datastructure should take 32KB memory.
>
> 4MB is the size of a physical extent, not a block. Snapshots use 'chunks' not whole extents, and I don't know what (if any)
> relationship there is between chunks and blocks.
>
> #define LVM_SNAPSHOT_MAX_CHUNK 1024 /* 1024 KB */
> #define LVM_SNAPSHOT_DEF_CHUNK 64 /* 64 KB */
> #define LVM_SNAPSHOT_MIN_CHUNK (PAGE_SIZE/1024) /* 4 or 8 KB */
Ah, that explains it.
Sorry for adding to the confusion.
> Anyway, you definitely *don't* force LVM to copy 4MB of data the first time you touch just 1 bit on a snapshotted volume!
Probably not.
--
Ragnar Kjørstad
Zet.no
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgres@ragnark.vestdata.no, matt@ymogen.net, tgl@sss.pgh.pa.us, peter_e@gmx.net, murthy.kambhampaty@goeci.com
Subject: Re: LVM snapshots
In-Reply-To: <20030317153931.GD23149@vestdata.no>
References: <20030317152630.GB23149@vestdata.no> <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net> <20030317153931.GD23149@vestdata.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox