Обсуждение: Re: [PATCHES] [PERFORM] Direct I/O issues

Поиск
Список
Период
Сортировка

Re: [PATCHES] [PERFORM] Direct I/O issues

От
Greg Smith
Дата:
On Fri, 24 Nov 2006, Bruce Momjian wrote:

> OK, I modified test_fsync.c by copying the defines from xlog.c, and
> fixed the O_DIRECT alignment and check write()/fsync().

I just tested your new test_fsync as included in the 8.2rc1, and it's 
working perfectly for me now on Linux.  All the O_SYNC writes using 
O_DIRECT are reporting realistic timings.  I'm happy that this code is 
working as it should and appreciate the quick response.  I still think the 
wal_sync_method documentation deserves an update noting that O_DIRECT is 
used when available with the sync write methods.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD