Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 584BF9FBE82 for ; Thu, 7 Jun 2007 15:38:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 49053-09 for ; Thu, 7 Jun 2007 15:37:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id DB96A9FB682 for ; Thu, 7 Jun 2007 15:37:55 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1HwMrq-0002YU-5Z for pgsql-performance@postgresql.org; Thu, 07 Jun 2007 14:37:54 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id D21273FAF; Thu, 7 Jun 2007 14:37:48 -0400 (EDT) Date: Thu, 7 Jun 2007 14:37:48 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Getting Slow Message-ID: <20070607183748.GL14087@phlogiston.dyndns.org> References: <14D118F0-20F6-4096-93D7-E6CB2893E895@sweetwater.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14D118F0-20F6-4096-93D7-E6CB2893E895@sweetwater.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/137 X-Sequence-Number: 25170 On Thu, Jun 07, 2007 at 01:48:43PM -0400, Joe Lester wrote: > of a table). Running the same query 4 times in a row would yield > dramatically different results... 1.001 seconds, 5 seconds, 22 > seconds, 0.01 seconds, to complete. > - When queries are especially slow, the server shows a big spike in > read/write activity. My bet is that you're maxing your disk subsystem somehow. The problem with being I/O bound is that it doesn't matter how great you do on average: if you have too much I/O traffic, it looks like you're stopped. Softraid can be expensive -- first thing I'd look at is to see whether you are in fact hitting 100% of your I/O capacity and, if so, what your options are for getting more room there. A -- Andrew Sullivan | ajs@crankycanuck.ca "The year's penultimate month" is not in truth a good way of saying November. --H.W. Fowler