pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Long <justinlong@strategicnetwork.org>
To: pgsql-performance@postgresql.org
Subject: Optimization
Date: Mon, 28 Jul 2003 12:18:55 -0400
Message-ID: <000f01c35523$f13dee90$ecd36044@tarzan> (raw)

Greetings,

I am trying to understand the various factors used by Postgres to optimize. I presently have a dual-866 Dell server with 1GB of memory. I've done the following:

set /proc/sys/kernel/shmmax to 512000000
shared_buffers = 32000
sort_mem = 32000
max_connections=64
fsync=false

Can someone tell me what effective_cache_size should be set to? what kind of formula to use for this? (I got the other figures from phpbuilder.com, and modified for 512k memory). 

The databases I'm using have about 200,000+ news headlines with full-text indexes (which range upwards of a few million records). They are updated about every 5 to 10 minutes, which means I also have to run a vacuum about once every 2 to 3 hours at least. As I get more updates obviously the efficiency goes down. I'm trying to make the most of this system but don't fully understand PG's optimization stuff.

Thanks in advance,
Justin Long

view thread (11+ messages)  latest in thread

Message-ID: <000f01c35523$f13dee90$ecd36044@tarzan>
Permalink:  ../000f01c35523$f13dee90$ecd36044@tarzan/
Also on:    postgresql.org/message-id/000f01c35523$f13dee90$ecd36044@tarzan

 · 

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: justinlong@strategicnetwork.org
  Subject: Re: Optimization
  In-Reply-To: <000f01c35523$f13dee90$ecd36044@tarzan>

* 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