pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alfred Perlstein <bright@wintelcom.net>
To: Thomas Heller <th.heller@comtron.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Lack of Performance
Date: Tue, 21 Nov 2000 15:28:49 -0800
Message-ID: <20001121152848.A18037@fw.wintelcom.net> (raw)
In-Reply-To: <005d01c0540d$f5c46210$b7217fd4@kjkafjuprmkaec>
References: <005d01c0540d$f5c46210$b7217fd4@kjkafjuprmkaec>

* Thomas Heller <th.heller@comtron.net> [001121 14:59] wrote:
> Hi all!
> 
> I wonder if there is any possibilty to boost the performance of my
> postgresql machine. I used to have it running on a dual p3-450 + 512mb ram
> (with apache/php on the same machine). Recently I moved it to a new machine,
> p3-800 + 512mb ram, and moved the apache to another machine.
> 
> Now the performance is somewhat BAD. The load of the machine is arround
> 10.00 and the postmaster processes are taking all of the machines cpu power.
> I don't have correct stats to my hand but the web server is currently
> handling something about 220.000 page impressions per day (220.000 page
> calls which open a php -> db connection running at least 1 query).
> 
> I didn't went to deep into query optimization yet cause I didn't read enough
> about that now. So I tried adjusting the command line options ....
> 
> What are the best values to use for sort_mem and shmem_buffers?
> 
> I'm currently starting the service with
> 
> -B 256
> -i
> -N 48
> -o '-F -S 512'
> 
> This seems NOT to be the right value but I don't know it what way I can
> experiment with them?
> 
> If somebody has some tips handy i'd like to hear them.

I have a gig of ram and use:

-B 32768
-o "-F -S 65534"

maybe if you halve those values...

you may also need to vacuum the database.

What OS are you running?

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."



view thread (7+ messages)  latest in thread

Message-ID: <20001121152848.A18037@fw.wintelcom.net>
Permalink:  ../20001121152848.A18037@fw.wintelcom.net/
Also on:    postgresql.org/message-id/20001121152848.A18037@fw.wintelcom.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bright@wintelcom.net, th.heller@comtron.net
  Subject: Re: Lack of Performance
  In-Reply-To: <20001121152848.A18037@fw.wintelcom.net>
  References: <005d01c0540d$f5c46210$b7217fd4@kjkafjuprmkaec> <20001121152848.A18037@fw.wintelcom.net>

* 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