Re: Migration study, step 1: bulk write performanceoptimization

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Migration study, step 1: bulk write performanceoptimization
Дата
Msg-id 20060322125516.GB15742@pervasive.com
обсуждение исходный текст
Ответ на Re: Migration study, step 1: bulk write performanceoptimization  ("Mikael Carneholm" <Mikael.Carneholm@WirelessCar.com>)
Ответы Re: Migration study, step 1: bulk write performanceoptimization  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On Wed, Mar 22, 2006 at 10:04:49AM +0100, Mikael Carneholm wrote:
> It does ("LOG: checkpoints are occurring too frequently (2 seconds apart)")  However, I tried increasing
checkpoint_segmentsto 32 (512Mb) making it checkpoint every 15 second or so, but that gave a more uneven insert rate
thanwith checkpoint_segments=3. Maybe 64 segments (1024Mb) would be a better value? If I set checkpoint_segments to 64,
whatwould a reasonable bgwriter setup be? I still need to improve my understanding of the relations between
checkpoint_segments<-> shared_buffers <-> bgwriter...  :/ 

Probably the easiest way is to set checkpoint_segments to something like
128 or 256 (or possibly higher), and then make bg_writer more aggressive
by increasing bgwriter_*_maxpages dramatically (maybe start with 200).
You might want to up lru_percent as well, otherwise it will take a
minimum of 20 seconds to fully scan.

Basically, slowly start increasing settings until performance smooths
out.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: WAL logging of SELECT ... INTO command
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: WAL logging of SELECT ... INTO command