Re: Postgresql in a Virtual Machine

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Lee Nguyen <leemobile(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgresql in a Virtual Machine
Date: 2013-11-26 14:19:44
Message-ID: 20131126141944.GO17272@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Zoltan,

* Boszormenyi Zoltan (zb(at)cybertec(dot)at) wrote:
> When the virtual disk is a disk file on the host machine, we've measured
> 20% or lower. The host used Fedora 19/x86_64 with IIRC a 3.10.x Linux kernel
> with EXT4 filesystem (this latter is sure, not IIRC). The effect was observed
> both under Qemu/KVM and Xen.

Interesting- that's far worse than I would have expected. Was this test
done with paravirtualized drivers? If not, I can certainly understand
the terrible performance.

Independently of that, I'll add my own 2c that DB people tend to be
pretty paranoid and the current round of VM technologies out there have
caused more than one person to lose data because fsync wasn't honored
all the way down to the disk. This is especially true of 'home-grown'
setups, imv, but I'm sure you could configure the commercial offerings
to lie to the guest OS too. Of course, there are similar concerns about
a SAN or even local RAID cards, but there's a lot more general
familiarity and history around those which reduces the risk there (or at
least, that's the thought).

Thanks,

Stephen

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Craig James 2013-11-26 14:26:10 Re: Postgresql in a Virtual Machine
Previous Message Boszormenyi Zoltan 2013-11-26 13:51:59 Re: Postgresql in a Virtual Machine