Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S - Mailing list pgsql-performance

From Vivek Khera
Subject Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S
Date
Msg-id 8F6490E1-64E2-406B-A559-7DA8BA1EB197@khera.org
Whole thread Raw
In response to Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S  (Kenji Morishige <kenjim@juniper.net>)
Responses Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec
Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S
List pgsql-performance
On Mar 17, 2006, at 5:11 PM, Kenji Morishige wrote:

> In summary, my questions:
>
> 1. Would running PG on FreeBSD 5.x or 6.x or Linux improve
> performance?

FreeBSD 6.x will definitely get you improvements.  Many speedup
improvements have been made to both the generic disk layer and the
specific drivers.  However, the current best of breed RAID controller
is the LSI 320-x (I use 320-2X).   I have one box into which this
card will not fit (Thanks Sun, for making a box with only low-profile
slots!) so I use an Adaptec 2230SLP card in it.  Testing shows it is
about 80% speed of a LSI 320-2x on sequential workload (load DB, run
some queries, rebuild indexes, etc.)

If you do put on FreeBSD 6, I'd love to see the output of "diskinfo -
v -t" on your RAID volume(s).

>
> 2. Should I change SCSI controller config to use RAID 10 instead of 5?

I use RAID10.

>
> 3. Why isn't postgres using all 4GB of ram for at least caching
> table for reads?

I think FreeBSD has a hard upper limit on the total ram it will use
for disk cache.  I haven't been able to get reliable, irrefutable,
answers about it, though.

>
> 4. Are there any other settings in the conf file I could try to tweak?

I like to bump up the checkpoint segments to 256.


pgsql-performance by date:

Previous
From: Orion Henry
Date:
Subject: Auto performance tuning?
Next
From: "Merlin Moncure"
Date:
Subject: Re: 1 TB of memory