Re: Patch to improve reliability of postgresql on linux nfs

Поиск
Список
Период
Сортировка
Искать
От
Thom Brown
Тема
Re: Patch to improve reliability of postgresql on linux nfs
Дата
Msg-id
CAA-aLv7-fWZuWYEch1ScZFFnktvRgfEjbAy4BFpw=uwN85Z=zA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Patch to improve reliability of postgresql on linux nfs George Barnett <gbarnett@atlassian.com>
Re: Patch to improve reliability of postgresql on linux nfs Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch to improve reliability of postgresql on linux nfs Noah Misch <noah@leadboat.com>
Re: Patch to improve reliability of postgresql on linux nfs "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Patch to improve reliability of postgresql on linux nfs Bruce Momjian <bruce@momjian.us>
Re: Patch to improve reliability of postgresql on linux nfs Bernd Helmle <mailings@oopsware.de>
Re: Patch to improve reliability of postgresql on linux nfs George Barnett <gbarnett@atlassian.com>
Re: Patch to improve reliability of postgresql on linux nfs Florian Pflug <fgp@phlo.org>
Re: Patch to improve reliability of postgresql on linux nfs George Barnett <gbarnett@atlassian.com>
Re: Patch to improve reliability of postgresql on linux nfs Peter Eisentraut <peter_e@gmx.net>
Re: Patch to improve reliability of postgresql on linux nfs Florian Pflug <fgp@phlo.org>
Re: Patch to improve reliability of postgresql on linux nfs "ktm@rice.edu" <ktm@rice.edu>
Re: Patch to improve reliability of postgresql on linux nfs Florian Pflug <fgp@phlo.org>
Re: Patch to improve reliability of postgresql on linux nfs Robert Haas <robertmhaas@gmail.com>
Re: Patch to improve reliability of postgresql on linux nfs Peter Eisentraut <peter_e@gmx.net>
Re: Patch to improve reliability of postgresql on linux nfs Josh Berkus <josh@agliodbs.com>
Re: Patch to improve reliability of postgresql on linux nfs Thom Brown <thom@linux.com>
On 9 September 2011 01:04, George Barnett  wrote:
> After looking through the code I found that when postgres calls write() it doesn't retry.  In order to address the issue with the PANIC in the WAL writer I set the sync method to o_sync which solved the issue in that part of the code, however I was still seeing failures in other areas of the code (such as the FileWrite function).  Following this, I spoke to an NFS guru who pointed out that writes under linux are not guaranteed to complete unless you open up O_SYNC or similar on the file handle.

Have you run the test with varying wal_sync_method values?  On Linux
the default is fdatasync because historically Linux hasn't supported
O_DSYNC (a wal_sync_method value of open_datasync).  But I believe as
of Kernel 2.6.33 it does support it.  Have you tried modifying this
parameter in your tests?  Are you even using Linux? (you haven't
specified)

-- 
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

В списке pgsql-hackers по дате отправления
От: Heikki Linnakangas
Дата:
Сообщение: Re: Large C files
От: Peter Eisentraut
Дата:
FAQ