Re: Recommended optimisations slows down PostgreSQL 8.4

From: Greg Smith <greg(at)2ndQuadrant(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Recommended optimisations slows down PostgreSQL 8.4
Date: 2011-08-12 17:15:01
Message-ID: 4E455F95.7060805@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 08/12/2011 12:28 PM, Waldo Nell wrote:
> I guess that means the OS cache is better for this particular use case
> than the postgresql cache?

There you go. It's not magic; the database cache has some properties
that work very well for some workloads. And for others, you might as
well let the OS deal with it. The fact that you have the option of
adjusting the proportions here is a controversial design point, but it
does let you tune to your workload in this sort of case.

> The fsync = off was because the production system runs on a uber expensive SAN system with multipathing over Fibre Channel, it is> on UPS and backup generators in a secure datacenter, and we have daily backups we can fall back to.

The safer alternative is to turn synchronous_commit off and increase
wal_writer_delay. That may not be quite as fast as turning fsync off,
but the risk level is a lot lower too. The first time someone
accidentally unplugs a part of your server, you'll realize that the UPS
and generators don't really provide very much protection against the
things that actually happen in a data center. Having backups is great,
but needing to restore from them is no fun.

--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Waldo Nell 2011-08-12 17:19:09 Re: Recommended optimisations slows down PostgreSQL 8.4
Previous Message Kevin Grittner 2011-08-12 17:10:38 Re: Recommended optimisations slows down PostgreSQL 8.4