Re: tuning question

From: David Gardner <david(at)gardnerit(dot)net>
To: PostgreSQL List - Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: tuning question
Date: 2008-12-12 16:08:57
Message-ID: 49428C99.1090105@gardnerit.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Take a look at:
http://www.postgresql.org/docs/8.3/interactive/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY
and
http://www.postgresql.org/docs/8.3/interactive/kernel-resources.html#SYSVIPC

I am not sure if RedHat provides different default values than what
PostgreSQL normally comes with.
I would also run some typical test queries after changing some of these
values, especially work_mem to make sure your not impacting performance
too heavily.

I'm not sure what else is running on the system, or what type of usage
you are expecting, but 2GB of ram might turn out to be enough for
PostgreSQL.

Also take a look at this:
http://www.revsys.com/writings/postgresql-performance.html

I found it to be useful, although I believe some of the suggestions the
author makes are assuming that you have a large PostgreSQL installation.
He has an interesting note about random_page_cost which might be one of
the numbers you might want to change.

Mag Gam wrote:
> Hello All,
>
> Running 8.3.4. My situation is a little unique. I am running on a 1
> core with 2GB of memory on Redhat Linux 5.2. My entire installation of
> pgsql is about 8GB (compressed) from pgdump. I have 6 databases The
> data is keep growing since I plan to add more field to my database and
> it will increase dramatically.
>
> My goal is I don't want to use a lot of memory! My storage is faily
> fast, I can do about 250Mb/sec (sustained). I would like to leverage
> my I/O instead of memory, eventhough I will suffer performance
> problems. Also, is it possible to make the database data logs files
> (the binary files) large? I am thinking of making them the size of 1G
> each instead of very small files? My FS does better performance for
> larger files...
>
> Any ideas?
>
> TIA
>
>

--
David Gardner

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Brad Nicholson 2008-12-12 20:43:15 Re: tuning question
Previous Message Bruce Hyatt 2008-12-12 03:09:29 Re: Connecting via postgresql jdbc