Re: Potential Large Performance Gain in WAL synching

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Potential Large Performance Gain in WAL synching
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961EAF@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Potential Large Performance Gain in WAL synching  ("Curtis Faith" <curtis@galtair.com>)
Ответы Re: Potential Large Performance Gain in WAL synching  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > ... most file systems can't process fsync's
> > simultaneous with other writes, so those writes block because the file
> > system grabs its own internal locks.
>
> Oh?  That would be a serious problem, but I've never heard that asserted
> before.  Please provide some evidence.
>
> On a filesystem that does have that kind of problem, can't you avoid it
> just by using O_DSYNC on the WAL files?

To make this competitive, the WAL writes would need to be improved to
do more than one block (up to 256k or 512k per write) with one write call
(if that much is to be written for this tx to be able to commit).
This should actually not be too difficult since the WAL buffer is already
contiguous memory.

If that is done, then I bet O_DSYNC will beat any other config we currently
have.

With this, a separate disk for WAL and large transactions you shoud be able
to see your disks hit the max IO figures they are capable of :-)

Andreas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Potential Large Performance Gain in WAL synching
Следующее
От: Alvaro Herrera
Дата:
Сообщение: ALTER TABLE ... ADD COLUMN