Raid 10 settings for optimal postgres performance?

From: Chris Barnes <compuguruchrisbarnes(at)hotmail(dot)com>
To: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Raid 10 settings for optimal postgres performance?
Date: 2010-03-03 16:22:39
Message-ID: BLU149-W120737FB4D917745198AEDD43A0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I have just configured our disks to raid10 from raid5.

The raid 10 is now 6 drives giving us 750G use by OS and postgres.

What is the preferred setup for postgres concerning cache settings on the controller and disks and the preferred block size allocated for the disks when postgres uses block size 8192?

df -h

/dev/sda3 750G 65G 647G 10% /
/dev/sda1 496M 17M 454M 4% /boot

show all;

server_version | 8.4.2

block_size | 8192

Controller settings

Read-cache mode - Enabled

Write-cache mode - Enabled (write-back)

Write-cache setting - Enabled (write-back) when protected by battery

Stripe-unit size : 256 KB

Disk setting

Write Cache : Disabled (write-through)

Postgresql.conf

fsync = on # turns forced synchronization on or off
#synchronous_commit = on # immediate fsync at commit
wal_sync_method = fsync # the default is the first option

Logical drive number 1
Logical drive name : RAID10
RAID level : 10
Status of logical drive : Okay
Size : 858000 MB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back) when protected by battery
Partitioned : Yes
Number of segments : 6
Stripe-unit size : 256 KB
Stripe order (Channel,Device) : 0,0 0,1 0,2 0,3 0,4 0,5
Defunct segments : No
Defunct stripes : No

Device #0
Device is a Hard drive
State : Online
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device : 0,0
Vendor : IBM-ESXS
Model : ST3300655SS
Firmware : BA26
World-wide name : 5000C5000A42EFAC
Size : 286102 MB
Write Cache : Disabled (write-through)
FRU : None
PFA

Sincerely,

Chris



_________________________________________________________________
Take your contacts everywhere
http://go.microsoft.com/?linkid=9712959

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brad Nicholson 2010-03-03 16:24:22 Work Mem Allocation Questions
Previous Message Herouth Maoz 2010-03-03 16:07:31 Re: stopping processes, preventing connections