Re: General performance questions about postgres on Apple

From: "Gregory S(dot) Williamson" <gsw(at)globexplorer(dot)com>
To: "Sean Shanny" <shannyconsulting(at)earthlink(dot)net>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: General performance questions about postgres on Apple
Date: 2004-06-07 05:54:00
Message-ID: 71E37EF6B7DCC1499CEA0316A256832801057A97@loki.wc.globexplorer.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Why is my name on a mail from Tom Lane ? Really, he knows a *lot* more than I and should get due credit.

Seriously, is this the peformance remailer mangling something ?

Greg Williamson
(the real one)

-----Original Message-----
From: Gregory S. Williamson
Sent: Sun 6/6/2004 10:46 PM
To: Sean Shanny
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] General performance questions about postgres on Apple
In-reply-to: <40396A16(dot)9040301(at)earthlink(dot)net>
References: <Pine(dot)LNX(dot)4(dot)33(dot)0402201405160(dot)11556-100000(at)css120(dot)ihs(dot)com>
<403682D6(dot)60807(at)earthlink(dot)net> <19368(dot)1077492611(at)sss(dot)pgh(dot)pa(dot)us>
<40396A16(dot)9040301(at)earthlink(dot)net>
Comments: In-reply-to Sean Shanny <shannyconsulting(at)earthlink(dot)net>message
dated "Sun, 22 Feb 2004 21:48:54 -0500"
Date: Sun, 22 Feb 2004 22:24:29 -0500
Message-ID: <20382(dot)1077506669(at)sss(dot)pgh(dot)pa(dot)us>
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
X-Virus-Scanned: by amavisd-new at postgresql.org
X-Mailing-List: pgsql-performance
Precedence: bulk
Sender: pgsql-performance-owner(at)postgresql(dot)org
X-imss-version: 2.5
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:21 M:2 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.3000)
Return-Path: pgsql-performance-owner+M5783(at)postgresql(dot)org
X-OriginalArrivalTime: 07 Jun 2004 05:27:21.0994 (UTC) FILETIME=[1BC0EEA0:01C44C50]

Sean Shanny <shannyconsulting(at)earthlink(dot)net> writes:
> We have the following setting for random page cost:
> random_page_cost = 1 # units are one sequential page fetch cost
> Any suggestions on what to bump it up to?

Well, the default setting is 4 ... what measurements prompted you to
reduce it to 1? The particular example you showed suggested that the
true value on your setup might be 10 or more.

Now I would definitely not suggest that you settle on any particular
value based on only one test case. You need to try to determine an
appropriate average value, bearing in mind that there's likely to be
lots of noise in any particular measurement.

But in general, setting random_page_cost to 1 is only reasonable when
you are dealing with a fully-cached-in-RAM database, which yours isn't.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Browse pgsql-performance by date

  From Date Subject
Next Message SZŰCS Gábor 2004-06-07 07:36:19 Relation of cpu_*_costs?
Previous Message Markus Schaber 2004-06-06 22:08:00 Re: Using a COPY...FROM through JDBC?