pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-performance@postgresql.org
Subject: Re: optimalization
Date: Mon, 28 Feb 2011 19:32:46 +0100
Message-ID: <20110228183246.GA8491@tux> (raw)
In-Reply-To: <AANLkTi=4CfFBhwJM5iU4VbUFEHB3g5r5SRkL+GuS8Zc_@mail.gmail.com>
References: <AANLkTi=4CfFBhwJM5iU4VbUFEHB3g5r5SRkL+GuS8Zc_@mail.gmail.com>

croolyc <croolists@gmail.com> wrote:

> Hi!
> can you help me with performance optimization
> on my machine I have 8 databases with ca. 1-2GB

Performace optimization depends on the workload...
Is that a dedicated server, only for PostgreSQL? I assume it.


> memory: 8GB (4*2GB ecc ram)

Okay, as a first try, set shared_buffers to 2 GByte, and increase
work_mem up to, maybe, 20 MByte.


You can (and should) set log_min_duration_statement, maybe to 1000
(1000ms), and observe the log. Read our docu about EXPLAIN, and analyse
long-running queries with EXPLAIN (ANALYSE).

And again, performance tuning depends on the real workload on the
server, it's hard to give you a recipe for all use-cases.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



view thread (2+ messages)

Message-ID: <20110228183246.GA8491@tux>
Permalink:  ../20110228183246.GA8491@tux/
Also on:    postgresql.org/message-id/20110228183246.GA8491@tux

 · 

reply

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: akretschmer@spamfence.net
  Subject: Re: optimalization
  In-Reply-To: <20110228183246.GA8491@tux>

* 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