Re: Can anyone explain this pgbench results?

From: "Joost Kraaijeveld" <J(dot)Kraaijeveld(at)Askesis(dot)nl>
To: "Michael Fuhr" <mike(at)fuhr(dot)org>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Can anyone explain this pgbench results?
Date: 2006-03-07 13:08:40
Message-ID: A3D1526C98B7C1409A687E0943EAC410605FC7@obelix.askesis.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Michael,

Michael Fuhr wrote:
> If you run pgbench several times without intervening checkpoints,
> do your postmaster logs have any messages like "checkpoints are
> occurring too frequently"? It might be useful to increase
> checkpoint_warning up to the value of checkpoint_timeout and then
> see if you get any such messages during pgbench runs. If checkpoints
> are happening a lot more often than every checkpoint_timeout seconds
> then try increasing checkpoint_segments (assuming you have the disk
> space). After doing so, restart the database and run pgbench several
> times without intervening checkpoints and see if performance is
> more consistent.
I got the "checkpoints are occurring too frequently". Increasing the number of checkpoint_segments from the default 3 to 10 resulted in more tests without performance penalty (~ 5-6 tests). The perfomance penalty is also a little less. It takes several minutes for the background writer to catch up.

This will solve my problems at the customers site (they do not run sm many sales transaction per second), but not my own problem while converting the old database to a new databse :-(. Maybe I should invest in other hardware or re-arrange my RAID5 in a RAID10 (or 50???).

Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J(dot)Kraaijeveld(at)Askesis(dot)nl
web: www.askesis.nl

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Dutcher 2006-03-07 15:02:58 Re: Help understanding indexes, explain, and optimizing
Previous Message Joost Kraaijeveld 2006-03-07 10:34:18 Re: Can anyone explain this pgbench results?