pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Clark <matt@ymogen.net>
To: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: 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 15:35:53 -0000
Message-ID: <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net> (raw)
In-Reply-To: <20030317152630.GB23149@vestdata.no>

> 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 */

Anyway, you definitely *don't* force LVM to copy 4MB of data the first time you touch just 1 bit on  a snapshotted volume!





view thread (35+ messages)  latest in thread

Message-ID: <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net>
Permalink:  ../OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net/
Also on:    postgresql.org/message-id/OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net

 · 

reply

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: matt@ymogen.net, postgres@ragnark.vestdata.no, tgl@sss.pgh.pa.us, peter_e@gmx.net, murthy.kambhampaty@goeci.com
  Subject: Re: LVM snapshots
  In-Reply-To: <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net>
  References: <20030317152630.GB23149@vestdata.no> <OAEAKHEHCMLBLIDGAFELOEDLDBAA.matt@ymogen.net>

* 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