Gentoo Archives: gentoo-user

From: Randy Barlow <randy@×××××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM on VM or not? - WAS Re: Best filesystem for virtualized gentoo mail server - WAS: vmWare HowTo / best practices
Date: Sun, 21 Apr 2013 16:39:17
Message-Id: 1366562338.2526.12.camel@localhost
In Reply to: Re: [gentoo-user] LVM on VM or not? - WAS Re: Best filesystem for virtualized gentoo mail server - WAS: vmWare HowTo / best practices by Randy Barlow
1 On Sun, 2013-04-21 at 12:32 -0400, Randy Barlow wrote:
2 > LVM gives a lot of
3 > flexibility in managing virtual machines, so I'd highly recommend it.
4
5 I should mention one specific advantage to using LVM over file-based
6 images: I believe you will find that LVM performs better. This is due to
7 avoiding the duplicated filesystem overhead that would occur in the
8 file-based image approach. If the guest wants to fsync(), for example,
9 both filesystems need to be involved (the guest's, and the host's). With
10 LVM, you still have the host processing the LVM bits of that process,
11 but at least the host's filesystem doesn't need to be involved.
12
13 Of course, giving the guest it's own raw block device (a disk, or a
14 partition) would also have this advantage, so here I'm mostly just
15 comparing LVM to the "easy" file-backed disk image approach.
16
17 --
18 Randy Barlow

Replies