Re: data on devel code perf dip

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: data on devel code perf dip
Дата
Msg-id
20050812013112.GA9504@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
Re: data on devel code perf dip Andrew - Supernews <andrew+nonews@supernews.com>
Re: data on devel code perf dip Bruce Momjian <pgman@candle.pha.pa.us>
On Thu, Aug 11, 2005 at 09:02:03PM -0400, Tom Lane wrote:

> I am sure I will get some pushback if I propose reverting the O_DIRECT
> patch, so could you try to get some more-specific evidence?  Like pull
> the CVS tree from just before and just after this patch and compare
> performance?

Quoth the open(2) manpage:
      O_DIRECT             Try to minimize cache effects of the I/O to  and  from  this             file.   In  general this will degrade performance, but it is             useful in special situations, such as when  applications  do             their  own  caching.  File I/O is done directly to/from user             space buffers.  The I/O is synchronous, i.e., at the comple-             tion of the read(2) or write(2) system call, data is guaran-             teed to have been transferred.

In light of this, may I ask whether it makes sense to compare the
performance of two runs with similar shared_buffer settings?  With
O_DIRECT, I understand from this manpage that the OS is going to do
little or no page caching, so shared_buffers should be increased to
account for this fact.

Am I missing something?

-- 
Alvaro Herrera ()
"Hay que recordar que la existencia en el cosmos, y particularmente la
elaboración de civilizaciones dentre de él no son, por desgracia,
nada idílicas" (Ijon Tichy)

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
FAQ