pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Christopher Browne <cbbrowne@libertyrms.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: Compile Vs RPMs
Date: Wed, 4 Feb 2004 09:24:57 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com> (raw)
In-Reply-To: <60smhrk9v7.fsf@dev6.int.libertyrms.info>

On Tue, 3 Feb 2004, Christopher Browne wrote:

> adave@vantage.com ("Anjan Dave") writes:
> > I would like to know whether there are any significant performance
> > advantages of compiling (say, 7.4) on your platform (being RH7.3, 8,
> > and 9.0, and Fedora especially) versus getting the relevant binaries
> > (rpm) from the postgresql site? Hardware is Intel XEON (various
> > speeds, upto 2.8GHz, single/dual/quad configuration).
> 
> Some Linux distribution makers make grand claims of such advantages,
> but it is not evident that this is much better than superstition.
> 
> You are certainly NOT going to see GCC generating MMX code
> automagically that would lead to PostgreSQL becoming 8 times faster.
> 
> Indeed, in database work, it is quite likely that you will find things
> to be largely I/O bound, with CPU usage being a very much secondary
> factor.
> 
> I did some relative benchmarking between compiling PostgreSQL on GCC
> versus IBM's PPC compilers a while back; did not see differences that
> could be _clearly_ discerned as separate from "observational noise."
> 
> You should expect find that adding RAM, or adding a better disk
> controller would provide discernable differences in performance.  It
> is much less clear that custom compiling will have any substantial
> effect on I/O-bound processing.

I would add that the primary reason for compiling versus using RPMs is to 
take advantage of some compile time option having to do with block size, 
or using a patch to try and test a system that has found a new corner case 
where postgresql is having issues performing well, like the vacuum page 
delay patch for fixing the issue with disk bandwidth saturation.  If 
you've got a machine grinding to its knees under certain loads, and have a 
test box to test it on, and the test box shows better performance, it 
might be better to patch the live server on the off hours if it will keep 
the thing up and running during the day.  

In that way, performance differences are very real, but because you are 
doing something you can't do with factory rpms.  Of course, building 
custom rpms isn't that hard to do, so if you had a lot of boxes that 
needed a patched flavor of postgresql, you could still run from rpms and 
have the custom patch.  






view thread (5+ messages)

Message-ID: <Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: scott.marlowe@ihs.com, cbbrowne@libertyrms.info
  Subject: Re: Compile Vs RPMs
  In-Reply-To: <Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com>
  References: <60smhrk9v7.fsf@dev6.int.libertyrms.info> <Pine.LNX.4.33.0402040920190.28468-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox