Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 616F46347C7 for ; Mon, 11 Jan 2010 17:32:32 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55444-02-9 for ; Mon, 11 Jan 2010 21:32:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mail.postgresql.org (Postfix) with ESMTP id 3A98F633E0F for ; Mon, 11 Jan 2010 17:23:44 -0400 (AST) Received: by ewy8 with SMTP id 8so22809021ewy.35 for ; Mon, 11 Jan 2010 13:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=qPkuvchLqBVig5sWMUAR7XvrKEl6A6hfGzcgQQwyaGE=; b=QOLKO0OSNr3GrL2IahnO9mvd/lnioI/bre23o9AgYFSG5/EYpxlbG90ZMpg1gnYjhN xQF6J2Sl8JG/ebQGPvR/kLAY7NBnvmj//1Kb5w7eWNDJS7leg5R8is0xxrL2oj29wNFe aMuKkkK2dGFqW717VbvRHC5k78OJHCU0tiOts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=otERjNY2OEdj7/1Ywh9mmOKl5R2y6L0zbl0BO209HYmd7GcOo5kCnJh4gpFDzIvVS5 lLVCyxsAvcQbU9KZee7JzjRU2qNli57VzKk4C8G7kebTfyfI9q+mlvCHBD1ficmKuC9G iOUP8U5IAQmTUHOaEcadzwYdcE1SiZplas/vQ= MIME-Version: 1.0 Received: by 10.216.93.66 with SMTP id k44mr1305389wef.67.1263245019940; Mon, 11 Jan 2010 13:23:39 -0800 (PST) In-Reply-To: <4B4B3BF6020000250002E1B1@gw.wicourts.gov> References: <4B4B177B020000250002E194@gw.wicourts.gov> <4B4B3BF6020000250002E1B1@gw.wicourts.gov> Date: Mon, 11 Jan 2010 16:23:39 -0500 Message-ID: <61039b861001111323g531a5d68q1f59171d926aefef@mail.gmail.com> Subject: Re: performance config help From: Bob Dusek To: Kevin Grittner Cc: Scott Marlowe , pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=0016e6d778edad8836047cea26b2 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.59 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201001/220 X-Sequence-Number: 37100 --0016e6d778edad8836047cea26b2 Content-Type: text/plain; charset=ISO-8859-1 > > > 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 > --0016e6d778edad8836047cea26b2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I haven't been keeping up on the hardware, so I defer to you on that. =A0It 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. =A0If 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 content= ion in my db?=A0=A0 Lock contention makes some sense.=A0 Each of the 256 re= quests are relatively similar.=A0 So, I don't doubt that lock contentio= n could be an issue.=A0 I just don't know how to observe it or correct = it.=A0 It seems like if we have processes that are contending for locks, th= ere's not much we can do about it.=A0

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.= =A0 And, we often learn things about our app or make small performance gain= s from it.=A0 Sometimes, we are even able to make big changes to the applic= ation to make large gains based on how we see queries performing.=A0

So, I agree that it's a good thing.=A0 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

--0016e6d778edad8836047cea26b2--