pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: Ron <rjpeace@earthlink.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: strange performance regression between 7.4 and 8.1
Date: Fri, 2 Mar 2007 14:43:05 -0500
Message-ID: <a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.com> (raw)
In-Reply-To: <E1HNC2e-0005Cl-II@elasmtp-scoter.atl.sa.earthlink.net>
References: <a728f9f90703011244r577d56d7y422ab4bd71bb760e@mail.gmail.com>
	<82slco6n9t.fsf@mid.bfk.de>
	<a728f9f90703020716g45b2d281u9894973abad3e68a@mail.gmail.com>
	<E1HN9zd-0001tV-Gi@elasmtp-galgo.atl.sa.earthlink.net>
	<a728f9f90703020803r2ab76789sa63def90642fe5c@mail.gmail.com>
	<E1HNC2e-0005Cl-II@elasmtp-scoter.atl.sa.earthlink.net>

On 3/2/07, Ron <rjpeace@earthlink.net> wrote:
> At 11:03 AM 3/2/2007, Alex Deucher wrote:
> >On 3/2/07, Ron <rjpeace@earthlink.net> wrote:
> >
> >>May I suggest that it is possible that your schema, queries, etc were
> >>all optimized for pg 7.x running on the old HW?
> >>(explain analyze shows the old system taking ~1/10 the time per row
> >>as well as estimating the number of rows more accurately)
> >>
> >>RAM is =cheap=.  Much cheaper than the cost of a detective hunt
> >>followed by rework to queries, schema, etc.
> >>Fitting the entire DB into RAM is guaranteed to help unless this is
> >>an OLTP like application where HD IO is  required to be synchronous..
> >>If you can fit the entire DB comfortably into RAM, do it and buy
> >>yourself the time to figure out the rest of the story w/o impacting
> >>on production performance.
> >
> >Perhaps so.  I just don't want to spend $1000 on ram and have it only
> >marginally improve performance if at all.  The old DB works, so we can
> >keep using that until we sort this out.
> >
> >Alex
> 1=  $1000 worth of RAM is very likely less than the $ worth of, say,
> 10 hours of your time to your company.  Perhaps much less.
> (Your =worth=, not your pay or even your fully loaded cost.  This
> number tends to be >= 4x what you are paid unless the organization
> you are working for is in imminent financial danger.)
> You've already put more considerably more than 10 hours of your time
> into this...
>
> 2= If the DB goes from not fitting completely into RAM to being
> completely RAM resident, you are almost 100% guaranteed a big
> performance boost.
> The exception is an OLTP like app where DB writes can't be done
> a-synchronously (doing financial transactions, real time control systems, etc).
> Data mines should never have this issue.
>
> 3= Whether adding enough RAM to make the DB RAM resident (and
> re-configuring conf, etc, appropriately) solves the problem or not,
> you will have gotten a serious lead as to what's wrong.
>
> ...and I still think looking closely at the actual physical layout of
> the tables in the SAN is likely to be worth it.
>

How would I go about doing that?

Thanks,

Alex



view thread (53+ messages)  latest in thread

Message-ID: <a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.com>
Permalink:  ../a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.com/
Also on:    postgresql.org/message-id/a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.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: alexdeucher@gmail.com, rjpeace@earthlink.net
  Subject: Re: strange performance regression between 7.4 and 8.1
  In-Reply-To: <a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.com>
  References: <a728f9f90703011244r577d56d7y422ab4bd71bb760e@mail.gmail.com> <82slco6n9t.fsf@mid.bfk.de> <a728f9f90703020716g45b2d281u9894973abad3e68a@mail.gmail.com> <E1HN9zd-0001tV-Gi@elasmtp-galgo.atl.sa.earthlink.net> <a728f9f90703020803r2ab76789sa63def90642fe5c@mail.gmail.com> <E1HNC2e-0005Cl-II@elasmtp-scoter.atl.sa.earthlink.net> <a728f9f90703021143l2da54eb1r61d4fe7609629b17@mail.gmail.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