Re: Proposed LogWriter Scheme, WAS: Potential Large Performance

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Proposed LogWriter Scheme, WAS: Potential Large Performance
Дата
Msg-id 200210051149.g95BnqS12763@candle.pha.pa.us
обсуждение исходный текст
Ответ на Proposed LogWriter Scheme, WAS: Potential Large Performance Gain in WAL synching  ("Curtis Faith" <curtis@galtair.com>)
Ответы Re: Proposed LogWriter Scheme, WAS: Potential Large  (Hannu Krosing <hannu@tm.ee>)
Re: Proposed LogWriter Scheme, WAS: Potential Large PerformanceGain in WAL synching  ("Curtis Faith" <curtis@galtair.com>)
Список pgsql-hackers
Curtis Faith wrote:
> Back-end servers would not issue fsync calls. They would simply block
> waiting until the LogWriter had written their record to the disk, i.e.
> until the sync'd block # was greater than the block that contained the
> XLOG_XACT_COMMIT record. The LogWriter could wake up committed back-
> ends after its log write returns.
> 
> The log file would be opened O_DSYNC, O_APPEND every time. The LogWriter
> would issue writes of the optimal size when enough data was present or
> of smaller chunks if enough time had elapsed since the last write.

So every backend is to going to wait around until its fsync gets done by
the backend process?  How is that a win?  This is just another version
of our GUC parameters:#commit_delay = 0               # range 0-100000, in microseconds#commit_siblings = 5
#range 1-1000
 

which attempt to delay fsync if other backends are nearing commit.  
Pushing things out to another process isn't a win;  figuring out if
someone else is coming for commit is.  Remember, write() is fast, fsync
is slow.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: [SQL] [GENERAL] CURRENT_TIMESTAMP
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Proposed LogWriter Scheme, WAS: Potential Large Performance