From: Ragnar KjÞrstad <postgres@ragnark.vestdata.no>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Matt <matt@ymogen.net>
Cc: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: LVM snapshots
Date: Mon, 17 Mar 2003 13:31:32 +0100
Message-ID: <20030317123132.GC24425@vestdata.no> (raw)
In-Reply-To: <21197.1047837058@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0303160348541.3020-100000@peter.localdomain>
<21197.1047837058@sss.pgh.pa.us>
On Sun, Mar 16, 2003 at 12:50:58PM -0500, Tom Lane wrote:
> BTW: aside from the question of the integrity of the snapshot backup,
> I'd be inclined to ask hard questions about the effects on database
> performance from using the disk-freezing feature in the first place.
> What is the LVM layer doing with the writes that occur while the
> frozen snapshot is maintained?? If they're not getting to disk at
> all, then "commits" that occur during the freeze aren't really commits
> (and one can be pardoned for wondering whether write ordering
> constraints will be honored when the floodgate is reopened). If they
> are getting to disk, this seems to imply data journaling is being used,
> which is probably a net loss for overall database performance. You
> might be willing to pay that cost to be able to use this backup
> technique --- but you should find out what that cost is ...
All sync writes will hang while the snapshot is beeing taken. Not sure
if async writes are buffered in memory or will hang too.
So, basicly your database will be inresponsive for the time it takes to
take a snapshot. The time will depend on the size of the device, the
size of the pysical extents (the LVM "blocks") and the raw disk
performance, but typically we're talking about periods shorter than a
second.
--
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, tgl@sss.pgh.pa.us, peter_e@gmx.net, matt@ymogen.net, murthy.kambhampaty@goeci.com
Subject: Re: LVM snapshots
In-Reply-To: <20030317123132.GC24425@vestdata.no>
References: <Pine.LNX.4.44.0303160348541.3020-100000@peter.localdomain> <21197.1047837058@sss.pgh.pa.us> <20030317123132.GC24425@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