From: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
---|---|
To: | Alexander Farber <alexander(dot)farber(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Would my postgresql 8.4.12 profit from doubling RAM? |
Date: | 2012-08-30 11:52:24 |
Message-ID: | 503F53F8.4070207@ringerc.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 08/30/2012 07:42 PM, Alexander Farber wrote:
> Hello,
>
> I run CentOS 6.3 server with 16 GB RAM and:
> postgresql-8.4.12-1.el6_2.x86_64
> pgbouncer-1.3.4-1.rhel6.x86_64
>
> The modified params in postgresql.conf are:
> max_connections = 100
> shared_buffers = 4096MB
>
> and the pgbouncer runs with:
> pool_mode = session
> server_reset_query = DISCARD ALL;
>
> The main app is a card game with 30-500
> simultaneous users for which I save some
> playing stats into the db +
> PHP scripts to display those stats again.
>
> I have an option to double the RAM for EUR 180,-
> but wonder if it will improve any performance and
> also what to do on the PostgreSQL side once
> I've doubled the RAM (like double shared_buffers?
> but how do I find out if it's needed, maybe they're empty?)
>
> Below is a typical top output, the pref.pl is my game daemon
What you really want to look at is the iowait%, which you aren't
showing, and at vmstat output to see what kind of disk read rates you're
doing.
Looking at `free -m` can be informative too; if your server has more
than a few hundred MB of free memory there's unlikely to be much to gain
by adding more RAM 'cos it can't find anything useful to do with what it
already has. In practice this is rare.
From | Date | Subject | |
---|---|---|---|
Next Message | F. BROUARD / SQLpro | 2012-08-30 12:09:28 | Re: String comparision in PostgreSQL |
Previous Message | Khangelani Gama | 2012-08-30 11:51:36 | Re: Need help on autovacuum in postgres 9.1.2 |