From: | David Greaves <david(at)dgreaves(dot)com> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | Arshavir Grigorian <ag(at)m-cam(dot)com>, linux-raid(at)vger(dot)kernel(dot)org, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Postgres on RAID5 (possible sync blocking read type |
Date: | 2005-03-14 07:44:53 |
Message-ID: | 423540F5.8090609@dgreaves.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Greg Stark wrote:
>Arshavir Grigorian <ag(at)m-cam(dot)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.
>
Hi
I'm coming in from the raid list so I didn't get the full story.
May I ask what kernel?
I only ask because I upgraded to 2.6.11.2 and happened to be watching
xosview on my (probably) completely different setup (1Tb xfs/lvm2/raid5
served by nfs to a remote sustained read/write app), when I saw all read
activity cease for 2/3 seconds whilst the disk wrote, then disk read
resumed. This occured repeatedly during a read/edit/write of a 3Gb file.
Performance not critical here so on the "hmm, that's odd" todo list :)
David
From | Date | Subject | |
---|---|---|---|
Next Message | Miroslav Šulc | 2005-03-14 08:43:19 | Re: [PERFORM] How to read query plan |
Previous Message | Russell Smith | 2005-03-14 07:25:22 | Re: column name is "LIMIT" |