Re: O_DIRECT, or madvise and/or posix_fadvise

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: O_DIRECT, or madvise and/or posix_fadvise
Дата
Msg-id 20070112103548.GB6589@svana.org
обсуждение исходный текст
Ответ на O_DIRECT, or madvise and/or posix_fadvise  (markwkm@gmail.com)
Ответы Re: O_DIRECT, or madvise and/or posix_fadvise  (markwkm@gmail.com)
Список pgsql-hackers
On Thu, Jan 11, 2007 at 02:35:13PM -0800, markwkm@gmail.com wrote:
> I caught this thread about O_DIRECT on kerneltrap.org:
>  http://kerneltrap.org/node/7563
>
> It sounds like there is much to be gained here in terms of reducing
> the number of user/kernel space copies in the operating system.  I got
> the impression that posix_fadvise in the Linux kernel isn't as good as
> it could be.  I noticed in xlog.c that the use of posix_fadvise is
> disabled.  Maybe it's time to do some more experimenting and working
> with the Linux kernel developers.  Or perhaps there is another OS that
> would be better to experiment with?

Postgres doesn't use O_DIRECT and probably never will. The system is
esigned to use the system cache, not bypass it.

What recent discussions have highlighted is the need to more accurately
control the flow of data to disk. Apparently currently kernel try to
hold data back much longer than is useful.

Not that I'm volunterring to deal with this.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [PATCHES] wal_checksum = on (default) | off
Следующее
От: Mario Weilguni
Дата:
Сообщение: to_char not IMMUTABLE?