From: Mark Kirkwood <markir@paradise.net.nz>
To: Daniel van Ham Colchete <daniel.colchete@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: New to PostgreSQL, performance considerations
Date: Tue, 12 Dec 2006 11:13:30 +1300
Message-ID: <457DD80A.3010603@paradise.net.nz> (raw)
In-Reply-To: <8a0c7af10612111210u224b2d22w540ca19785f5c9e4@mail.gmail.com>
References: <8a0c7af10612101141n2c7727c3r2f92345753960808@mail.gmail.com>
<430d92a20612101336r3de8862coe618277fccb4006a@mail.gmail.com>
<8a0c7af10612101702i49b5a533v4a2300d90d9dae6b@mail.gmail.com>
<20061211021847.GE16692@mathom.us>
<8a0c7af10612110305u305124b2v3d63491b5f57a86b@mail.gmail.com>
<87u002mv49.fsf@wolfe.cbbrowne.com>
<8a0c7af10612110531sbb019ck259fb16d131fdb50@mail.gmail.com>
<20061211140638.GB25975@uio.no>
<8a0c7af10612111210u224b2d22w540ca19785f5c9e4@mail.gmail.com>
Daniel van Ham Colchete wrote:
> On 12/11/06, Steinar H. Gunderson <sgunderson@bigfoot.com> wrote:
>> On Mon, Dec 11, 2006 at 11:31:48AM -0200, Daniel van Ham Colchete wrote:
>> > What PostgreSQL benchmark software should I use???
>>
>> Look up the list archives; search for "TPC".
>>
>> > I'll test PostgreSQL 8.1 on a Fedora Core 6 and on a Gentoo. I'll get
>> > the same version FC6 uses and install it at my Gentoo. I'll use the
>> > same hardware (diferent partitions to each).
>>
>> Why do you want to compare FC6 and Gentoo? Wasn't your point that the
>> -march=
>> was supposed to be the relevant factor here? In that case, you want to
>> keep
>> all other things equal; so use the same distribution, only with -O2
>> -march=i686 vs. -march=athlon-xp (or whatever).
>>
>> /* Steinar */
> Using Gentoo is just a easy way to make cflag optimizations to all the
> other libs as well: glibc, ...
>
> I can also mesure performance on Gentoo with cflag optimized
> PostgreSQL and plain PostgreSQL as well.
>
I can certainly recall that when I switched from Fedora Core (2 or 3
can't recall now) to Gentoo that the machine was "faster" for many
activities. Of course I can't recall precisely what now :-(.
To actually track down *why* and *what* make it faster is another story,
and custom CFLAGS is only 1 of the possible factors: others could be:
- different kernel versions (Gentoo would have possibly been later)
- different kernel patches (both RedHat and Gentoo patch 'em)
- different versions of glibc (Gentoo possibly later again).
- different config options for glibc (not sure if they in fact are, but
it's possible...)
- kernel and glibc built with different versions of gcc (again I suspect
Gentoo may have used a later version)
So there are a lot of variables to consider if you want to settle this
debate once and for all :-)!
Best wishes
Mark
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: markir@paradise.net.nz, daniel.colchete@gmail.com
Subject: Re: New to PostgreSQL, performance considerations
In-Reply-To: <457DD80A.3010603@paradise.net.nz>
* 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