From: Bob Dusek <redusek@gmail.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: performance config help
Date: Mon, 11 Jan 2010 16:23:39 -0500
Message-ID: <61039b861001111323g531a5d68q1f59171d926aefef@mail.gmail.com> (raw)
In-Reply-To: <4B4B3BF6020000250002E1B1@gw.wicourts.gov>
References: <4B4B177B020000250002E194@gw.wicourts.gov>
<dcc563d11001111136y117ea68dp651fd24ce72385f3@mail.gmail.com>
<4B4B3BF6020000250002E1B1@gw.wicourts.gov>
>
>
> I haven't been keeping up on the hardware, so I defer to you on
> that. It certainly seems like it would fit with the symptoms. On
> the other hand, I haven't seen anything yet to convince me that it
> *couldn't* be a client-side or network bottleneck, or the sort of
> lock contention bottleneck that showed up in some of Sun's
> benchmarks. If it were my problem, I'd be trying to rule out
> whichever one of those could be tested most easily, iteratively.
>
>
How do I learn more about the actual lock contention in my db? Lock
contention makes some sense. Each of the 256 requests are relatively
similar. So, I don't doubt that lock contention could be an issue. I just
don't know how to observe it or correct it. It seems like if we have
processes that are contending for locks, there's not much we can do about
it.
Also, as you suggested, identifying what queries are taking most of
> the time and trying to optimize them is a route that might help,
> regardless.
>
We often undertake query optimization. And, we often learn things about our
app or make small performance gains from it. Sometimes, we are even able to
make big changes to the application to make large gains based on how we see
queries performing.
So, I agree that it's a good thing. However, query optimizing is tough,
since you can't necessarily predict the sizes of your tables in a real-time
system that is used differently by different users.
> -Kevin
>
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: redusek@gmail.com, Kevin.Grittner@wicourts.gov, scott.marlowe@gmail.com
Subject: Re: performance config help
In-Reply-To: <61039b861001111323g531a5d68q1f59171d926aefef@mail.gmail.com>
References: <4B4B177B020000250002E194@gw.wicourts.gov> <dcc563d11001111136y117ea68dp651fd24ce72385f3@mail.gmail.com> <4B4B3BF6020000250002E1B1@gw.wicourts.gov> <61039b861001111323g531a5d68q1f59171d926aefef@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