linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] faster snapshot creation?
@ 2020-02-22 11:58 Eric Toombs
  2020-02-25  9:31 ` Gionatan Danti
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Eric Toombs @ 2020-02-22 11:58 UTC (permalink / raw)
  To: linux-lvm

Snapshot creation is already pretty fast:

> $ time sudo lvcreate --size 512M --snapshot --name snap /dev/testdbs/template 
>   Logical volume "snap" created.
> 0.03user 0.05system 0:00.46elapsed 18%CPU (0avgtext+0avgdata 28916maxresident)k
> 768inputs+9828outputs (0major+6315minor)pagefaults 0swaps

That's about half a second in real time. But I have a scenario that
would benefit from it being even faster. I'm doing many small unit tests
starting from a template filesystem. I do the snapshot, run the unit
test on the snapshot, then delete the snapshot afterwards using
lvremove. Each unit test, though, takes much less than a second to run
(often on the order of 10ms), so most of the time is being spent making
these snapshots.

So, is there a sort of "dumber" way of making these snapshots, maybe by
changing the allocation algorithm or something?

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

end of thread, other threads:[~2020-02-26 14:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 11:58 [linux-lvm] faster snapshot creation? Eric Toombs
2020-02-25  9:31 ` Gionatan Danti
2020-02-25  9:38 ` Zdenek Kabelac
2020-02-25 21:35   ` Eric Toombs
2020-02-26 10:01     ` Zdenek Kabelac
2020-02-26 14:03       ` Douglas Paul
2020-02-26  0:38 ` Stuart D. Gathman

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).