Unix Technical Forum

PostgreSQL in virtual machine

This is a discussion on PostgreSQL in virtual machine within the Pgsql Performance forums, part of the PostgreSQL category; --> Hi, I'm running a Zope web application that obtains most of its data from a PostgreSQL 8.1 database in ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:22 AM
Andreas Tille
 
Posts: n/a
Default PostgreSQL in virtual machine

Hi,

I'm running a Zope web application that obtains most of its data
from a PostgreSQL 8.1 database in a virtual machine. I'm able to
adjust the memory of this machine according to reasonable values
and can choose between one or two (emulated) processors. The
question is: How can I find an optimal relation between the
virtual hardware parameters and PostgreSQL performance. I guess
it makes no sense to blindly increase virtual memory without
adjusting PostgreSQL configuration. Are there any experiences
about reasonable performance increasing strategies? Are there any
special things to regard in a VM?

Kind regards

Andreas.

--
http://fam-tille.de

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 10:22 AM
Harald Armin Massa
 
Posts: n/a
Default Re: PostgreSQL in virtual machine

Andreas,

I am responsible for some active PostgreSQL databases within virtual
machines and on "plain metal"; all using Windows.

There are spurious strange performance issues on those PostreSQL
databases within the virtual machines. I can not pin them down (yet),
and am not really able to blame them on vmware; but just want to
recommend to be very very carefull about PostgreSQL in vmware and
please communcate your findings.

> from a PostgreSQL 8.1 database in a virtual machine. I'm able to
> adjust the memory of this machine according to reasonable values
> and can choose between one or two (emulated) processors. The
> question is: How can I find an optimal relation between the
> virtual hardware parameters and PostgreSQL performance. I guess


You did not specify the OS in your VM. I can report my experiences
with W2k3 inside the VM:

contrary to usual recommendations, smaller shared_buffers yielded
better results.
Growing effective_cache_size yielded the best results for me.


Harald



--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
fx 01212-5-13695179
-
Python: the only language with more web frameworks than keywords.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 10:23 AM
Cosimo Streppone
 
Posts: n/a
Default Re: PostgreSQL in virtual machine

Andreas Tille wrote:

> Are there any experiences
> about reasonable performance increasing strategies? Are there any
> special things to regard in a VM?


Not directly about Postgresql, but I'm seeing evidence that upgrading
from vmware 2.5.3 to 3.0.1 seems to have solved disk access
performance issues (measured with simple dd runs).

With vmware 2.5.3 + RedHat Enterprise 4.0 I measured a sequential
read performance on 1-2 Gb files of less than 10 Mbytes/sec on a
IBM FastT600 SAN volume partition.

After the upgrade to 3.0 I had feedback from sysadmins that issue
was solved, but I didn't have the opportunity to repeat the read
tests yet.

--
Cosimo


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com