Re: checkpoint segments - Mailing list pgsql-performance

From Josh Berkus
Subject Re: checkpoint segments
Date
Msg-id 200505160917.20367.josh@agliodbs.com
Whole thread Raw
In response to Re: checkpoint segments  (Alvaro Herrera <alvherre@surnet.cl>)
List pgsql-performance
Alvaro,

> > Yes, and yes.   Simply allocating more checkpoint segments (which can eat
> > a lot of disk space -- requirements are 16mb*(2 * segments +1) ) will
> > prevent this problem.
>
> Hmm?  I disagree -- it will only make things worse when the checkpoint
> does occur.

Unless you allocate enough logs that you don't need to checkpoint until the
load is over with.   In multiple data tests involving large quantities of
data loading, increasing the number of checkpoints and the checkpoint
interval has been an overall benefit to overall load speed.   It's possible
that the checkpoints which do occur are worse, but they're not enough worse
to counterbalance their infrequency.

I have not yet been able to do a full scalability series on bgwriter.

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: "Mindaugas Riauba"
Date:
Subject: Re: PostgreSQL strugling during high load
Next
From: "Joel Fradkin"
Date:
Subject: Re: Prefetch