WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Partition vs disk images

To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Partition vs disk images
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Tue, 29 Apr 2008 13:04:03 +0700
Delivery-date: Mon, 28 Apr 2008 23:04:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4816B490.9050601@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <738584f80804281813x180002f5oc4f32cfeebd248cb@xxxxxxxxxxxxxx> <1C8CF1EA1A5B5940B81B0710B2A4C93857F239C222@xxxxxxxxxxxxxxxxxxxxxxx> <4816B490.9050601@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (X11/20080227)
Rudi Ahlers wrote:
Joseph L. Casale wrote:
This is for use at home, so in reality it probably doesn't matter -- I just don't want to make any *really* stupid moves.

I would seriously recommend LVM, its so flexible
But is there really a performance difference between LVM & file based VM's?


Yes, but depending on how you use it, the effect might not be what you expect.

Example 1 :
- you have 16G mem : 4G for domU, 12 G for dom0
- 1 domU running, with 4G root filesystem
In this scenario, you'd most likely find file-based VM perform better since dom0 will cache domU's root fs.

Example 2 :
- you have 8G mem : 7G for for 7 domUs (1G each), 1G for dom0
- each domU comes with 4G root filesystem
In this scenario, the performance of file-based VM will be lower compared to LVM-based VM, due to dom0's filesystem operation overhead (including journaling).

There are other pros and cons for file vs LVM. Personally, I prefer LVM with each LV on dom0 maps to a partition on domU (hda1,sda1, etc) because :
- I can easily convert a domU into a physical machine if necessary
- I can easily mount domU's fs directly on dom0 (e.g for troubleshooting purposes)
- I can get per-LV I/O statistic from dom0 using tools like iostat
- I can use LVM snapshot to backup domU's fs without shutting it down

This setup also means that I can't create a VM using frontends like virt-manager (which maps file/LV/partition on dom0 to a disk on domU), but that doesn't matter since I prefer to create VMs manually using prebuilt-template anyway :D

Regards,

Fajar



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users