Re: sync rep & fsync=off

Поиск
Список
Период
Сортировка
От Grzegorz Jaskiewicz
Тема Re: sync rep & fsync=off
Дата
Msg-id 4A296747-6296-45C3-AB64-3CA03378D061@pointblue.com.pl
обсуждение исходный текст
Ответ на sync rep & fsync=off  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: sync rep & fsync=off  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 18 Mar 2011, at 21:12, Robert Haas wrote:

> While investigating Simon's complaint about my patch of a few days
> ago, I discovered that synchronous replication appears to slow to a
> crawl if fsync is turned off on the standby.
>
> I'm not sure why this is happening or what the right behavior is in
> this case, but I think some kind of adjustment is needed because the
> current behavior is quite surprising.
We have few servers here running 8.3. And few weeks ago I had to populate one database with quite a number of entries.
I have script that does that, but it takes a while. I decided to turn fsck to off. Oddly enough, the server started to
crawlquite badly, load was very high.  
That was 8.3 on rhel 5.4.

My point is, it is sometimes bad combination of disks and controllers that does that. Not necessarily software. fsync
offdoesn't always mean that things are going to fly, it can cause it to expose hardware bottlenecks much quicker.  



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Indent authentication overloading
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: odd output of pg_basebackup