pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Hamlin <maplabs@light42.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Andy Colson <andy@squeakycode.net>
Cc: Garlynn Woodsong <Garlynn@calthorpe.com>
Cc: nick@calthorpe.com
Cc: pgsql-performance@postgresql.org
Cc: rush@winkey.org
Subject: Re: Shared memory for large PostGIS operations
Date: Fri, 16 Mar 2012 14:00:11 -0700
Message-ID: <35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.com> (raw)
In-Reply-To: <4F63052B0200002500046344@gw.wicourts.gov>
References: <20120314212924.h7sjvzeoococwso0@webmail.light42.com>
	<4F63465B.1020508@squeakycode.net>
	<4F63052B0200002500046344@gw.wicourts.gov>

Hi Kevin, List, others...

On Mar 16, 2012, at 7:17 AM, Kevin Grittner wrote:

> Andy Colson <andy@squeakycode.net> wrote:
>
>> I tried shared_buffers at both 2400M and 18000M, and it took 4.5
>> hours both times.  ... (weak attempts at humor omitted) ....
>
> All else being the same, adjusting shared_buffers affects how much
> of your cache is managed by PostgreSQL and how much of your cache is
> managed by the OS; it doesn't exactly change how much you have
> cached or necessarily affect disk waits.  (There's a lot more that
> can be said about the fine points of this, but you don't seem to
> have sorted out the big picture yet.)

   Linux caching is aggressive already.. so I think this example  
points out that
Postgres caching is not contributing here..  thats why I posted this  
short
example to this list.. I thought ti was a useful data point..  that  
it might be
useful to others... and to the PostgreSQL project devs...

>
>> I heard of this program called vmstat that I'll read up on and
>> post some results for.  -----ignore- I dont take advice with  
>> vinegar well...
>
> That's a good way to get a handle on whether your bottleneck is
> currently CPU or disk access.
>
>> (attempted insults omitted)
>
> If you're looking to make things faster (a fact not yet exactly in
> evidence), you might want to start with the query which runs the
> longest, or perhaps the one which most surprises you with its run
> time, and get the EXPLAIN ANALYZE output for that query.  There is
> other information you should include; this page should help:
>
> http://wiki.postgresql.org/wiki/SlowQueryQuestions


   some of the queries have been gone over fairly well, other not..
Its a complex sequence and we are in production mode here,
so I dont get a chance to do everything I might do with regard to
one particular query...


>
>> I just learned about http://explain.depesz.com/ and figure it
>> might help me.
>
> It is a nice way to present EXPLAIN ANALYZE output from complex
> queries.


   explain.depesz.com  definitely a good reference, thank you for that..


==
Brian Hamlin
GeoCal
OSGeo California Chapter
415-717-4462 cell






view thread (7+ messages)  latest in thread

Message-ID: <35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.com>
Permalink:  ../35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.com/
Also on:    postgresql.org/message-id/35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.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: maplabs@light42.com, Kevin.Grittner@wicourts.gov, andy@squeakycode.net, Garlynn@calthorpe.com, nick@calthorpe.com, rush@winkey.org
  Subject: Re: Shared memory for large PostGIS operations
  In-Reply-To: <35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.com>
  References: <20120314212924.h7sjvzeoococwso0@webmail.light42.com> <4F63465B.1020508@squeakycode.net> <4F63052B0200002500046344@gw.wicourts.gov> <35AEFCF6-B6A7-42AD-A7B3-C73B6E9ABA09@light42.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