Re: Recommended optimisations slows down PostgreSQL 8.4 - Mailing list pgsql-performance

From Waldo Nell
Subject Re: Recommended optimisations slows down PostgreSQL 8.4
Date
Msg-id 7498E2E8-E00B-42F4-BC31-6AAB1814BAFB@telkomsa.net
Whole thread Raw
In response to Re: Recommended optimisations slows down PostgreSQL 8.4  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
On 2011-08-12, at 10:10 , Kevin Grittner wrote:

> Turning fsync off in production may be OK as long as those daily
> backups aren't in the same building as the uber expensive SAN, and
> it's really OK to fall back on a daily backup if the database server
> crashes or locks up.  By the way, I never trust a backup until I
> have successfully restored from it; you should probably do that at
> least on some periodic basis if you can't do it every time.

Yes we have daily tape backups that are taken off site.  And since we refresh QA from prod at least 4 times a month, we
knowthe backups are good on a frequent basis.  Very valid points. 

>
> The other thing I would point out is that if you are tuning with
> different table sizes, RAM sizes, or I/O performance characteristics
> from production, the database tuning in one environment may not have
> much to do with what works best in the other environment.

My DB is an exact duplicate I took from production, however my testing is on different hardware and since I cannot
afforda SAN for testing purposes, I am testing on a 7200rpm SATA drive so yeah I guess that is true... I will need to
performancetest on production environment. 

>
> As for why the recommended settings are having paradoxical effects
> in this environment -- this advice is generally based on systems
> with fsync on and a RAID controller with battery-backed cache
> configured for write-back.  I don't know how well the advice
> generalizes to a single spindle with fsync off.

Thanks, I will be sure to carry on testing on production.


pgsql-performance by date:

Previous
From: Greg Smith
Date:
Subject: Re: Recommended optimisations slows down PostgreSQL 8.4
Next
From: Tom Lane
Date:
Subject: Re: Recommended optimisations slows down PostgreSQL 8.4