pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Hervé Piedvache <footcow@noos.fr>
To: pgsql-performance@postgresql.org
Cc: Hervé Piedvache <herve@elma.fr>
Subject: Re: Insert are going slower ...
Date: Wed, 14 Jul 2004 09:28:29 -0700
Message-ID: <200407140928.29498.josh@agliodbs.com> (raw)
In-Reply-To: <200407140142.11720.footcow@noos.fr>
References: <200407131850.52095.herve@elma.fr>
	<200407131010.30790.josh@agliodbs.com>
	<200407140142.11720.footcow@noos.fr>

Herve'

I forgot to ask about your hardware.   How much RAM, and what's your disk 
setup?  CPU?

> sort_mem =   512000

Huh?   Sort_mem is in K.   The above says that you've allocated 512MB sort 
mem.  Is this process the *only* thing going on on the machine?

> vacuum_mem = 409600

Again, 409.6MB vacuum mem?   That's an odd number, and quite high.  

> max_fsm_pages = 50000000

50million?   That's quite high.   Certianly enough to have an effect on your 
memory usage.   How did you calculate this number?

> checkpoint_segments = 3

You should probably increase this if you have the disk space.  For massive 
insert operations, I've found it useful to have as much as 128 segments 
(although this means about 1.5GB disk space)

> effective_cache_size = 5000000

If you actually have that much RAM, I'd love to play on your box.  Please?

> Off the top of my head, you have allocated roughly 48K shard buffers which
> seems bit on higher side. Can you check with something like 10K-15K?

Shridhar, that depends on how much RAM he has.   On 4GB dedicated machines, 
I've set Shared_Buffers as high as 750MB.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (17+ messages)  latest in thread

Message-ID: <200407140928.29498.josh@agliodbs.com>
Permalink:  ../200407140928.29498.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200407140928.29498.josh@agliodbs.com

 · 

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: josh@agliodbs.com, footcow@noos.fr, herve@elma.fr
  Subject: Re: Insert are going slower ...
  In-Reply-To: <200407140928.29498.josh@agliodbs.com>

* 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