From: Frank Wiles <frank@wiles.org>
To: Vinicius Caldeira Carvalho <vinicius.carvalho@squadra.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: first postgrreSQL tunning
Date: Thu, 6 Jan 2005 09:52:19 -0600
Message-ID: <20050106095219.5a690860.frank@wiles.org> (raw)
In-Reply-To: <41DD3AF7.6000202@squadra.com.br>
References: <41DD3AF7.6000202@squadra.com.br>
On Thu, 06 Jan 2005 11:19:51 -0200
Vinicius Caldeira Carvalho <vinicius.carvalho@squadra.com.br> wrote:
> Hi there! I'm doing my first tunning on my postgreSQL, my server is
> for a small app, largest table shall never exceed 10k rows, and less
> than 1k transactions/day. So I don't think I should run out of
> resources. The machine is a Fedora Core 3.0 with 1gb ran and kernel
> 2.6. I'm thinking in having 50 connections limit, so besides
> semaphores should I do anything special on kernel parameters. The app
> is so small that during late night time almost no one will access so,
> I'm thinking in full vacuuming it every day at 1:00AM.
>
> Any tips are very very welcome :D
You'll want to tune shared_buffers and sort_mem. Possibly also
effective_cache_size. It really depends on your system.
Having tuned a ton of apps to work with PostgreSQL what I usually
do is write a small script that does the major resource intensive
queries on the database and time it. Tweak a PostgreSQL parameter
and re-run, wash, rinse, repeat until I get what I believe is the
best performance I can.
---------------------------------
Frank Wiles <frank@wiles.org>
http://www.wiles.org
---------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: frank@wiles.org, vinicius.carvalho@squadra.com.br
Subject: Re: first postgrreSQL tunning
In-Reply-To: <20050106095219.5a690860.frank@wiles.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox