pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar@frodo.hserus.net>
To: Hervé Piedvache <herve@elma.fr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Insert are going slower ...
Date: Wed, 14 Jul 2004 20:02:47 +0530
Message-ID: <40F5440F.7080202@frodo.hserus.net> (raw)
In-Reply-To: <200407141608.27116.herve@elma.fr>
References: <200407131850.52095.herve@elma.fr>
	<003901c4698a$2cfb5a50$0100000a@wp2000>
	<40F50742.1000007@frodo.hserus.net>
	<200407141608.27116.herve@elma.fr>

Hervé Piedvache wrote:
> In my case it's a PostgreSQL dedicated server ...
> 
> effective_cache_size = 5000000 
> 
> For me I give to the planner the information that the kernel is able to cache 
> 5000000 disk page in RAM

That is what? 38GB of RAM?
> 
> 
>>free
> 
>              total       used       free     shared    buffers     cached
> Mem:       7959120    7712164     246956          0      17372    7165704
> -/+ buffers/cache:     529088    7430032
> Swap:      2097136       9880    2087256
> 
> What should I put ?

7165704 / 8 = 895713

So counting variations, I would say 875000. That is a 8GB box, right? So 875000 
is about 7000MB. Which should be rather practical. Of course you can give it 
everything you can but that's upto you.

Can you get explain analze for inserts? I think some foreign key check etc. are 
taking long and hence it accumulates. But that is just a wild guess.

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?

HTH

  Shridhar



view thread (17+ messages)  latest in thread

Message-ID: <40F5440F.7080202@frodo.hserus.net>
Permalink:  ../40F5440F.7080202@frodo.hserus.net/
Also on:    postgresql.org/message-id/40F5440F.7080202@frodo.hserus.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: shridhar@frodo.hserus.net, herve@elma.fr
  Subject: Re: Insert are going slower ...
  In-Reply-To: <40F5440F.7080202@frodo.hserus.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