X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 54F2911F6797 for ; Fri, 7 Apr 2006 17:06:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24992-06 for ; Fri, 7 Apr 2006 17:06:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7592411F6780 for ; Fri, 7 Apr 2006 17:06:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k37K62Z0015773; Fri, 7 Apr 2006 16:06:02 -0400 (EDT) To: Gavin Hamill cc: pgsql-performance@postgresql.org Subject: Re: pg 8.1.3, AIX, huge box, painfully slow. In-reply-to: <20060407205919.a091da26.gdh@laterooms.com> References: <20060407185823.abe93017.gdh@laterooms.com> <1144436060.32269.13.camel@state.g2switchworks.com> <20060407205919.a091da26.gdh@laterooms.com> Comments: In-reply-to Gavin Hamill message dated "Fri, 07 Apr 2006 20:59:19 +0100" Date: Fri, 07 Apr 2006 16:06:02 -0400 Message-ID: <15772.1144440362@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.13 required=5 tests=[AWL=0.130] X-Spam-Score: 0.13 X-Spam-Level: X-Archive-Number: 200604/151 X-Sequence-Number: 18235 Gavin Hamill writes: > Scott Marlowe wrote: >> My guess is that this is an OS issue. Maybe there are AIX tweaks that >> will get it up to the same or higher level of performance as your four >> way xeon. Maybe there aren't. > The pSeries isn't much older than our Xeon machine, and I expected the > performance level to be exemplary out of the box.. I'm fairly surprised too. One thing I note from your comparison of settings is that the default WAL sync method is different on the two operating systems. If the query load is update-heavy then it would be very worth your while to experiment with the sync method. However, if the bottleneck is pure-SELECT transactions then WAL sync should not be a factor at all. Does AIX have anything comparable to oprofile or dtrace? It'd be interesting to try to monitor things at that level and see what we can learn. Failing a low-level profiler, there should at least be something comparable to strace --- you should try watching some of the backends with strace and see what their behavior is when the performance goes south. Lots of delaying select()s or semop()s would be a red flag. regards, tom lane