Re: Allowing WAL fsync to be done via O_SYNC
| От | Bruce Momjian |
|---|---|
| Тема | Re: Allowing WAL fsync to be done via O_SYNC |
| Дата | |
| Msg-id | 200103160257.VAA07079@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Allowing WAL fsync to be done via O_SYNC (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Allowing WAL fsync to be done via O_SYNC
|
| Список | pgsql-hackers |
I was wondering if the multiple writes performed to the XLOG could be grouped into one write(). Seems everyone agrees:fdatasync/O_DSYNC is better then plain fsync/O_SYNC and the O_* flags are better than fsync() if we are doing only one write before every fsync. It seems the only open question is now often we do multiple writes before fsync, and if that is ever faster than putting the O_* on the file for all writes. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: