Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 5FFDB9FB41E for ; Fri, 2 Mar 2007 15:43:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 07953-09 for ; Fri, 2 Mar 2007 15:43:04 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by postgresql.org (Postfix) with ESMTP id 3AA0E9FB406 for ; Fri, 2 Mar 2007 15:43:06 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so890030wxd for ; Fri, 02 Mar 2007 11:43:05 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R+e3lwxLd9Qo7Wo7PHJWsw8eoD6Gg9VQifZFeBNJ7wXaI3/MgY15O6pxdjwt9Ym7puXrHlnsrjgrnoIyXsOstoesLq96ydMFvDhAVFXrsflbGbPqPyD4vHD1dfIifBhoXSsePfKTUR2SKVwLYzmgz1Uixmy2u11TmONDyhx5zkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V5dejK/VYojp0FO1cQbi2ypMWRZosAP0CS1VzBMHiL7iwzfLQhld7lNzX01Up0QfLl0nZwY2Ht14zwRzB4I5+/t1CxJozdK0rwTHMnQcegqtuC8P637lYTPwpEFcgMnD7ePars4HhoL/JWCuD9xAcSjiZCmhKIsX8kdsfibb38U= Received: by 10.90.104.14 with SMTP id b14mr3279694agc.1172864585358; Fri, 02 Mar 2007 11:43:05 -0800 (PST) Received: by 10.90.116.10 with HTTP; Fri, 2 Mar 2007 11:43:05 -0800 (PST) Message-ID: Date: Fri, 2 Mar 2007 14:43:05 -0500 From: "Alex Deucher" To: Ron Subject: Re: strange performance regression between 7.4 and 8.1 Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <82slco6n9t.fsf@mid.bfk.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/67 X-Sequence-Number: 23472 On 3/2/07, Ron wrote: > At 11:03 AM 3/2/2007, Alex Deucher wrote: > >On 3/2/07, Ron 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