Re: 8.4 open item: copy performance regression?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: 8.4 open item: copy performance regression?
Дата
Msg-id 4A3F384F.6080908@enterprisedb.com
обсуждение исходный текст
Ответ на Re: 8.4 open item: copy performance regression?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 8.4 open item: copy performance regression?  (Simon Riggs <simon@2ndQuadrant.com>)
Re: 8.4 open item: copy performance regression?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> I was going to say that since we flush the WAL every 16MB anyway (at 
>> every XLOG file switch), you shouldn't see any benefit with larger ring 
>> buffers, since to fill 16MB of data you're not going to write more than 
>> 16MB WAL.
> 
> I'm not convinced that WAL segment boundaries are particularly relevant
> to this.  The unit of flushing is an 8K page, not a segment.

We fsync() the old WAL segment every time we switch to a new WAL 
segment. That's what I meant by "flush".

If the walwriter is keeping up, it will fsync() the WAL more often, but 
16MB is the maximum distance between fsync()s.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Synch Rep: communication between backends and walsender
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: 8.4 open item: copy performance regression?