Re: [HACKERS] fsync method checking

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема Re: [HACKERS] fsync method checking
Дата
Msg-id 20040318200359.GA8330@ping.be
обсуждение исходный текст
Ответ на Re: [HACKERS] fsync method checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-performance
On Thu, Mar 18, 2004 at 02:22:10PM -0500, Bruce Momjian wrote:
>
> OK, what better test do you suggest?  Right now, there has been no
> testing of these.

I suggest you start by doing atleast preallocating a 16 MB file
and do the tests on that, to atleast be somewhat simular to what
WAL does.

I have no idea what the access pattern is for normal WAL
operations or how many times it gets synched.  Does it only do
f(data)sync() at commit time, or for every block it writes?

I think if you write more data you'll see more differences
between O_(D)SYNC and f(data)sync().

I guess it can depend on if you have lots of small transactions,
or more big ones.

Atleast try to make something that covers different access
patterns.


Kurt


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

Предыдущее
От: Kurt Roeckx
Дата:
Сообщение: Re: [HACKERS] fsync method checking
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: two seperate queries run faster than queries ORed together