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
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html