Re: Slow Inserts on large tables
От | Iulian Dragan |
---|---|
Тема | Re: Slow Inserts on large tables |
Дата | |
Msg-id | 552000.39549.qm@web52909.mail.re2.yahoo.com обсуждение исходный текст |
Ответ на | Re: Slow Inserts on large tables ("Peter Childs" <peterachilds@gmail.com>) |
Список | pgsql-performance |
Peter, (please take this with a pinch of salt as I am no expert) Here is a possible scenario: Each of your checkpoints takes 90 seconds or more (you told it so with the checkpoint_completion_target). If your insert fills 3 checkpoint segments (48 megs ) in less than 90 seconds then a new checkpoint request is issued. And maybe a third one, and so on. I imagine that this can flood the disk cache with write requests at some point although I can't explain how. Have a look at the log, see the interval between the checkpoint requests and try to make this (a lot) larger than the checkpoint duration. Start by increasing your checkpoint_segments (to, say, 16). If this doesn't work, maybe the timeout is too short, or the 90 seconds target to generous. Regards, Iulian --- On Fri, 10/3/08, Peter Childs <peterachilds@gmail.com> wrote: From: Peter Childs <peterachilds@gmail.com> |
В списке pgsql-performance по дате отправления: