[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Partition vs disk images


  • To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.