pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy <frum@ar-sd.net>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: Server misconfiguration???
Date: Mon, 10 Oct 2005 12:42:43 +0300
Message-ID: <00dc01c5cd7e$f6f127a0$0b00a8c0@forge> (raw)
References: <006f01c5cd76$2b166490$0b00a8c0@forge>
	<434A2C8B.3040803@familyhealth.com.au>

Yes you're right it really bosst a little.
I want to improve the system performance. Are there any more tipps?

On this server runs only a webserver with php application which uses postgre 
Db. Should I give more memory to postgre? From what I noticed this is the 
most memory "needing" service from this system.


Andy.

----- Original Message ----- 
From: "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
To: "Andy" <frum@ar-sd.net>
Cc: <pgsql-performance@postgresql.org>
Sent: Monday, October 10, 2005 11:55 AM
Subject: Re: [PERFORM] Server misconfiguration???


>A lot of them are too large.  Try:
>
> Andy wrote:
>> Hi to all,
>>  I have the following configuration:
>> Dual Xeon 2.8 Ghz, 1G RAM and postgre 8.0.3 installed.
>>  Modified configuration parameters:
>>  max_connections = 100
>>  shared_buffers = 64000  # 500MB = 500 x 1024 x 1024 / (8 x 1024) (8KB)
>
> shared_buffers = 10000
>
>> work_mem = 51200  # 50MB = 50 x 1024 KB
>
> work_mem = 4096
>
>> maintenance_work_mem = 102400 # 50MB = 100 x 1024 KB
>>  checkpoint_segments = 10
>>  effective_cache_size = 25600 # 200MB = 50 x 1024 / 8
>>  client_min_messages = notice log_min_messages = notice
>> log_min_duration_statement = 2000
>>  I get the feeling the server is somehow missconfigured or it does not 
>> work at full parameter. If I look at memory allocation, it never goes 
>> over 250MB whatever I do with the database. The kernel shmmax is set to 
>> 600MB. Database Size is around 550MB.
>
> That's because you have work_mem set massively high.  Remember that's PER 
> SORT.  If you have 10 queries running each doing 3 sorts that's 30x the 
> work_mem right there.
>
> Chris
>
>
> 




view thread (8+ messages)  latest in thread

Message-ID: <00dc01c5cd7e$f6f127a0$0b00a8c0@forge>
Permalink:  ../00dc01c5cd7e$f6f127a0$0b00a8c0@forge/
Also on:    postgresql.org/message-id/00dc01c5cd7e$f6f127a0$0b00a8c0@forge

 · 

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: frum@ar-sd.net, chriskl@familyhealth.com.au
  Subject: Re: Server misconfiguration???
  In-Reply-To: <00dc01c5cd7e$f6f127a0$0b00a8c0@forge>

* 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