Re: Insert are going slower ...

From: Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net>
To: Hervé Piedvache <herve(at)elma(dot)fr>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Insert are going slower ...
Date: 2004-07-14 14:32:47
Message-ID: 40F5440F.7080202@frodo.hserus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2004-07-14 16:28:29 Re: Insert are going slower ...
Previous Message Hervé Piedvache 2004-07-14 14:08:27 Re: Insert are going slower ...