Re: Postgres on RAID5

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Postgres on RAID5
Дата
Msg-id 87hdje7sjm.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Postgres on RAID5  (Arshavir Grigorian <ag@m-cam.com>)
Ответы Re: Postgres on RAID5  (Alex Turner <armtuk@gmail.com>)
Re: Postgres on RAID5 (possible sync blocking read type  (David Greaves <david@dgreaves.com>)
Список pgsql-performance
Arshavir Grigorian <ag@m-cam.com> writes:

> Hi,
>
> I have a RAID5 array (mdadm) with 14 disks + 1 spare. This partition has an
> Ext3 filesystem which is used by Postgres.

People are going to suggest moving to RAID1+0. I'm unconvinced that RAID5
across 14 drivers shouldn't be able to keep up with RAID1 across 7 drives
though. It would be interesting to see empirical data.

One thing that does scare me is the Postgres transaction log and the ext3
journal both sharing these disks with the data. Ideally both of these things
should get (mirrored) disks of their own separate from the data files.

But 2-3s pauses seem disturbing. I wonder whether ext3 is issuing a cache
flush on every fsync to get the journal pushed out. This is a new linux
feature that's necessary with ide but shouldn't be necessary with scsi.

It would be interesting to know whether postgres performs differently with
fsync=off. This would even be a reasonable mode to run under for initial
database loads. It shouldn't make much of a difference with hardware like this
though. And you should be aware that running under this mode in production
would put your data at risk.

--
greg

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

Предыдущее
От: "ALÝ ÇELÝK"
Дата:
Сообщение: more execution time
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] How to read query plan