pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL calibration
8+ messages / 7 participants
[nested] [flat]
* PostgreSQL calibration
@ 2003-06-18 16:54 Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Re: PostgreSQL calibration Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-19 04:45 ` Re: PostgreSQL calibration Tim Middleton <x@Vex.Net>
2003-06-19 07:13 ` Re: PostgreSQL calibration Dani Oderbolz <oderbolz@ecologic.de>
0 siblings, 3 replies; 8+ messages in thread
From: Chris Gamache @ 2003-06-18 16:54 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-admin
What's your thought on creating some type of calibration applet that will
divine proper settings for the PostgreSQL performance related variables by
taking into consideration the speed of the machine, amount of RAM, access time
of the filesystem, and the speed of various queries on a standardized (perhaps
non-standardized?) dataset under different conditions?
Is this possible, do-able, or even wanted? Where would one begin constructing
the tests?
I imagine it would automate the tasks that every PostgreSQL administrator goes
through to calibrate his or her installation with the best possible performance
settings...
CG
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
@ 2003-06-18 16:55 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-18 17:07 ` Re: PostgreSQL calibration Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 1 reply; 8+ messages in thread
From: Bruce Momjian @ 2003-06-18 16:55 UTC (permalink / raw)
To: cgg007@yahoo.com; +Cc: pgsql-admin
Sure, it would be great if we could do it.
---------------------------------------------------------------------------
Chris Gamache wrote:
> What's your thought on creating some type of calibration applet that will
> divine proper settings for the PostgreSQL performance related variables by
> taking into consideration the speed of the machine, amount of RAM, access time
> of the filesystem, and the speed of various queries on a standardized (perhaps
> non-standardized?) dataset under different conditions?
>
> Is this possible, do-able, or even wanted? Where would one begin constructing
> the tests?
>
> I imagine it would automate the tasks that every PostgreSQL administrator goes
> through to calibrate his or her installation with the best possible performance
> settings...
>
> CG
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Re: PostgreSQL calibration Bruce Momjian <pgman@candle.pha.pa.us>
@ 2003-06-18 17:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-06-18 17:36 ` Re: PostgreSQL calibration matt <matt@ymogen.net>
0 siblings, 1 reply; 8+ messages in thread
From: Tom Lane @ 2003-06-18 17:07 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: cgg007@yahoo.com; pgsql-admin
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Sure, it would be great if we could do it.
If the program actually derives reliable numbers, it would be great.
It could easily do more harm than good if it gives bogus results.
I think it will be very hard to get reliable rather than bogus results
:-( ... but feel free to try.
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Re: PostgreSQL calibration Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-18 17:07 ` Re: PostgreSQL calibration Tom Lane <tgl@sss.pgh.pa.us>
@ 2003-06-18 17:36 ` matt <matt@ymogen.net>
2003-06-18 17:42 ` Re: PostgreSQL calibration scott.marlowe <scott.marlowe@ihs.com>
0 siblings, 1 reply; 8+ messages in thread
From: matt @ 2003-06-18 17:36 UTC (permalink / raw)
To: pgsql-admin
Are there really any performance settings of much interest beyond the
shared and non-shared memory settings? Beyond those the interactions
get so complex that automation is probably impossible anyway, and
certain options like fsync = false should never be 'recommended'.
On the other hand, a way of empirically deriving some 'correct'
optimizer parameters for a given machine would be very nice :-)
Matt
On Wed, 2003-06-18 at 18:07, Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Sure, it would be great if we could do it.
>
> If the program actually derives reliable numbers, it would be great.
> It could easily do more harm than good if it gives bogus results.
> I think it will be very hard to get reliable rather than bogus results
> :-( ... but feel free to try.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Re: PostgreSQL calibration Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-18 17:07 ` Re: PostgreSQL calibration Tom Lane <tgl@sss.pgh.pa.us>
2003-06-18 17:36 ` Re: PostgreSQL calibration matt <matt@ymogen.net>
@ 2003-06-18 17:42 ` scott.marlowe <scott.marlowe@ihs.com>
2003-06-18 19:27 ` Re: PostgreSQL calibration matt <matt@ymogen.net>
0 siblings, 1 reply; 8+ messages in thread
From: scott.marlowe @ 2003-06-18 17:42 UTC (permalink / raw)
To: matt <matt@ymogen.net>; +Cc: pgsql-admin
It would be nice to have something that could suggest settings for the
different *cost* options.
On 18 Jun 2003, matt wrote:
> Are there really any performance settings of much interest beyond the
> shared and non-shared memory settings? Beyond those the interactions
> get so complex that automation is probably impossible anyway, and
> certain options like fsync = false should never be 'recommended'.
>
> On the other hand, a way of empirically deriving some 'correct'
> optimizer parameters for a given machine would be very nice :-)
>
>
> Matt
>
>
> On Wed, 2003-06-18 at 18:07, Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > Sure, it would be great if we could do it.
> >
> > If the program actually derives reliable numbers, it would be great.
> > It could easily do more harm than good if it gives bogus results.
> > I think it will be very hard to get reliable rather than bogus results
> > :-( ... but feel free to try.
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Re: PostgreSQL calibration Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-18 17:07 ` Re: PostgreSQL calibration Tom Lane <tgl@sss.pgh.pa.us>
2003-06-18 17:36 ` Re: PostgreSQL calibration matt <matt@ymogen.net>
2003-06-18 17:42 ` Re: PostgreSQL calibration scott.marlowe <scott.marlowe@ihs.com>
@ 2003-06-18 19:27 ` matt <matt@ymogen.net>
0 siblings, 0 replies; 8+ messages in thread
From: matt @ 2003-06-18 19:27 UTC (permalink / raw)
To: scott.marlowe <scott.marlowe@ihs.com>; +Cc: pgsql-admin
Precisely. Any hints from the real gurus out there as to how that might
be accomplished (or alternatively, reasons why it's hopeless)?
On Wed, 2003-06-18 at 18:42, scott.marlowe wrote:
> It would be nice to have something that could suggest settings for the
> different *cost* options.
>
> On 18 Jun 2003, matt wrote:
>
> > Are there really any performance settings of much interest beyond the
> > shared and non-shared memory settings? Beyond those the interactions
> > get so complex that automation is probably impossible anyway, and
> > certain options like fsync = false should never be 'recommended'.
> >
> > On the other hand, a way of empirically deriving some 'correct'
> > optimizer parameters for a given machine would be very nice :-)
> >
> >
> > Matt
> >
> >
> > On Wed, 2003-06-18 at 18:07, Tom Lane wrote:
> > > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > > Sure, it would be great if we could do it.
> > >
> > > If the program actually derives reliable numbers, it would be great.
> > > It could easily do more harm than good if it gives bogus results.
> > > I think it will be very hard to get reliable rather than bogus results
> > > :-( ... but feel free to try.
> > >
> > > regards, tom lane
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 6: Have you searched our list archives?
> > >
> > > http://archives.postgresql.org
> > >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 9: the planner will ignore your desire to choose an index scan if your
> > joining column's datatypes do not match
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
@ 2003-06-19 04:45 ` Tim Middleton <x@Vex.Net>
2 siblings, 0 replies; 8+ messages in thread
From: Tim Middleton @ 2003-06-19 04:45 UTC (permalink / raw)
To: cgg007@yahoo.com, Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-admin
On June 18, 2003 12:54 pm, Chris Gamache wrote:
> What's your thought on creating some type of calibration applet that
> will divine proper settings for the PostgreSQL performance related
Have you seen pg_autotune? It's aging... but might be something to play
with.
http://gborg.postgresql.org/project/pgautotune/projdisplay.php
--
Tim Middleton | Cain Gang Ltd | But the trouble was that my hysterical
fit
x@veX.net | www.Vex.Net | could not go on for ever. --Dost (NFTU)
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: PostgreSQL calibration
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
@ 2003-06-19 07:13 ` Dani Oderbolz <oderbolz@ecologic.de>
2 siblings, 0 replies; 8+ messages in thread
From: Dani Oderbolz @ 2003-06-19 07:13 UTC (permalink / raw)
To: cgg007@yahoo.com; +Cc: pgsql-admin
Chris Gamache wrote:
>What's your thought on creating some type of calibration applet that will
>divine proper settings for the PostgreSQL performance related variables by
>taking into consideration the speed of the machine, amount of RAM, access time
>of the filesystem, and the speed of various queries on a standardized (perhaps
>non-standardized?) dataset under different conditions?
>
Other RDBMS offer such options.
I know "Oracle Expert", its resultls are not very striking.
But surely, there is a demand for such tools.
Oracle expert considers the following data (among others)
- RAM
- Number of CPUs
- I/O bandwidth
- Current Statments in cache
- You can fed it with Statements your Application generates (can also
be captured)
But I think it is hard to get precise results,
as the program needs a lot of intelligence...
Cheers, Dani
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2003-06-19 07:13 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-18 16:54 PostgreSQL calibration Chris Gamache <cgg007@yahoo.com>
2003-06-18 16:55 ` Bruce Momjian <pgman@candle.pha.pa.us>
2003-06-18 17:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-06-18 17:36 ` matt <matt@ymogen.net>
2003-06-18 17:42 ` scott.marlowe <scott.marlowe@ihs.com>
2003-06-18 19:27 ` matt <matt@ymogen.net>
2003-06-19 04:45 ` Tim Middleton <x@Vex.Net>
2003-06-19 07:13 ` Dani Oderbolz <oderbolz@ecologic.de>
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