Re: LVM performance vs direct dm-thin

Demi Marie Obenour <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <YfcN6KHxLe3/krTX@itl-email>
On Sun, Jan 30, 2022 at 04:39:30PM -0500, Stuart D. Gathman wrote:
> On Sun, 2022-01-30 at 11:45 -0500, Demi Marie Obenour wrote:
> > On Sun, Jan 30, 2022 at 11:52:52AM +0100, Zdenek Kabelac wrote:
> > > 
> > 
> > > Since you mentioned ZFS - you might want focus on using 'ZFS-only'
> > > solution.
> > > Combining  ZFS or Btrfs with lvm2 is always going to be a painful
> > > way as
> > > those filesystems have their own volume management.
> > 
> > Absolutely!  That said, I do wonder what your thoughts on using loop
> > devices for VM storage are.  I know they are slower than thin
> > volumes,
> > but they are also much easier to manage, since they are just ordinary
> > disk files.  Any filesystem with reflink can provide the needed
> > copy-on-write support.
> 
> I use loop devices for test cases - especially with simulated IO
> errors.  Devs really appreciate having an easy reproducer for
> database/filesystem bugs (which often involve handling of IO errors). 
> But not for production VMs.
> 
> I use LVM as flexible partitions (i.e. only classic LVs, no thin pool).
> Classic LVs perform like partitions, literally using the same driver
> (device mapper) with a small number of extents, and are if anything
> more recoverable than partition tables.  We used to put LVM on bare
> drives (like AIX did) - who needs a partition table?  But on Wintel,
> you need a partition table for EFI and so that alien operating systems
> know there is something already on a disk.
> 
> Your VM usage is different from ours - you seem to need to clone and
> activate a VM quickly (like a vps provider might need to do).  We
> generally have to buy more RAM to add a new VM :-), so performance of
> creating a new LV is the least of our worries.

To put it mildly, yes :).  Ideally we could get VM boot time down to
100ms or lower.

-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmH3DegACgkQsoi1X/+c
IsF9sBAAxxnvXpXgGY2CyBx6+/CpEXxfE8usC8a1zRlt8dYd+CUpAqAAMADCN4HV
0zTjGd0rTluIXE6EdvHilaS8yAEcb3ztTcYAcRn9BBDQVu+wPolkipy6FuB1ER3J
6qmHWBZuu8pJJ1VfdITSLvrUbqZqe5DYAlk0CC0OBaBoszs9OxIRbdPkUaw+EkgO
1vxBobEwHOHK2Gr4UavQwEo8nyaVuu/d3c5EBMzHidHASbsmk7dcdMZpYmHMgzcz
S4DmdjlGeH2O5MWRy0zdYvw2Xe+Fzz+6V9fRnne37bl8kOU5Pje6v+wHcgh32YG+
I2CYi+4GxYTqAwoyc1zCkOlVfnG76Nop2jzR6K3ZoxCgX+jnO0z0/Td/TLOA1DHp
Y9JN5CYMCFn9wtgqTRjLuqqoIbSMnwW8xx8NJ6DR4ZR3zqYxp3KzUk6zO1VGIX3D
pAXZSGxnWYeN864paB50yThiagQolXAfDSdCCss/6n6FWlGX5g0qMbbNzjWJ/EjC
dkOQn0RYzB2Ak/h3tEnHO/FhjedDqF5S5aMv3JVzbTb7rOlwcpQWCvwSoJn1UVo/
Y1U9qSW9srPkPv1JNiUr5Jts4MSbWGXi71iKKMRQY2oyhlRiKpgXyQQPSSTyI/gW
BHbeMii1r9wu+3THsAMe+5bVlZQmewSIa85FEu+dWLFVKyZYVOw=
=qpHS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.