Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Snapshots (overheads and 2.6 kernel status)
@ 2004-11-29 15:08 C R Ritson
  2004-11-29 15:16 ` Steve McIntyre
  0 siblings, 1 reply; 2+ messages in thread
From: C R Ritson @ 2004-11-29 15:08 UTC (permalink / raw)
  To: linux-lvm

Does anybody know how much overhead is involved in keeping a snapshot of
an active volume (for 24 hours)? I am currently running LVM1 (waiting
for snapshots in LVM2/device mapper) and am making a snapshot of my user
volumes overnight. These are left available for 24 hours in the hope
that users who damage a file will be able to get "yesterday's copy" from
the snapshot without us needing to restore from tape. There is obviously
some overhead involved, but does anyone know how much?

I guess that the worst case situation is when a file is updated for the
first time that day (an example might be a recompilation, particularly
if the underlying disk is nearly full, so that the blocks released by
removing the object files are quickly reused). In this case, the
original data blocks must be placed into the snapshot cache and the new
data blocks written to disk. Two writes for the price of one.

Perennial question - having had a look at the dm-devel and the lvm2
archives, I cannot find any comments about the status of snapshots in
the 2.6 kernel. Can anyone enlighten me?

Chris Ritson (Computing Officer and School Safety Officer)

Rm 618, Claremont Bridge,       EMAIL: C.R.Ritson@ncl.ac.uk
School of Computing Science,    PHONE: +44 191 222 8175
University of Newcastle,        FAX  : +44 191 222 8232
Newcastle on Tyne, UK NE1 7RU.  http://www.cs.ncl.ac.uk/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Snapshots (overheads and 2.6 kernel status)
  2004-11-29 15:08 [linux-lvm] Snapshots (overheads and 2.6 kernel status) C R Ritson
@ 2004-11-29 15:16 ` Steve McIntyre
  0 siblings, 0 replies; 2+ messages in thread
From: Steve McIntyre @ 2004-11-29 15:16 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Nov 29, 2004 at 03:08:50PM -0000, C R Ritson wrote:
>Does anybody know how much overhead is involved in keeping a snapshot of
>an active volume (for 24 hours)? I am currently running LVM1 (waiting
>for snapshots in LVM2/device mapper) and am making a snapshot of my user
>volumes overnight. These are left available for 24 hours in the hope
>that users who damage a file will be able to get "yesterday's copy" from
>the snapshot without us needing to restore from tape. There is obviously
>some overhead involved, but does anyone know how much?

It can be quite significant, depending on your workload. I'm using
snapshots in a similar way, and I saw performance drop by a factor of
2 (or more) on our main NFS server. It's very useful to have the
snapshot, so we live with it.

-- 
Steve McIntyre, Plasmon                       smcintyre@software.plasmon.com
 
"C++ ate my sanity" -- Jon Rabone

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-29 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-29 15:08 [linux-lvm] Snapshots (overheads and 2.6 kernel status) C R Ritson
2004-11-29 15:16 ` Steve McIntyre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox