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 5524E11F663A for ; Fri, 7 Apr 2006 18:36:42 -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 97964-03 for ; Fri, 7 Apr 2006 18:36:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fon.nation-net.com (213-2-2-26.uk.vianw.net [213.2.2.26]) by postgresql.org (Postfix) with ESMTP id 6E4E211F60AF for ; Fri, 7 Apr 2006 18:36:39 -0300 (ADT) Received: from fon.nation-net.com (localhost [127.0.0.1]) by fon.nation-net.com (Postfix) with ESMTP id 2D7A4137666 for ; Fri, 7 Apr 2006 22:36:39 +0100 (BST) Received: from eddie.acentral.co.uk (80-192-144-33.cable.ubr04.pres.blueyonder.co.uk [80.192.144.33]) by fon.nation-net.com (Postfix) with ESMTP id 0F20C136CD9 for ; Fri, 7 Apr 2006 22:36:39 +0100 (BST) Received: from eddie.acentral.co.uk (eddie.acentral.co.uk [127.0.0.1]) by eddie.acentral.co.uk (Postfix) with ESMTP id 7F54D75FE5 for ; Fri, 7 Apr 2006 22:36:41 +0100 (BST) Received: from localhost.localdomain (unknown [10.0.0.29]) by eddie.acentral.co.uk (Postfix) with SMTP id 64E5975F8D for ; Fri, 7 Apr 2006 22:36:41 +0100 (BST) Date: Fri, 7 Apr 2006 22:36:35 +0100 From: Gavin Hamill To: pgsql-performance@postgresql.org Subject: Re: pg 8.1.3, AIX, huge box, painfully slow. Message-Id: <20060407223635.9c4a0b38.gdh@laterooms.com> In-Reply-To: <15772.1144440362@sss.pgh.pa.us> References: <20060407185823.abe93017.gdh@laterooms.com> <1144436060.32269.13.camel@state.g2switchworks.com> <20060407205919.a091da26.gdh@laterooms.com> <15772.1144440362@sss.pgh.pa.us> X-Mailer: Sylpheed version 2.1.1 (GTK+ 2.8.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP X-AV-Checked: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.1 required=5 tests=[AWL=0.100] X-Spam-Score: 0.1 X-Spam-Level: X-Archive-Number: 200604/158 X-Sequence-Number: 18242 On Fri, 07 Apr 2006 16:06:02 -0400 Tom Lane wrote: > > The pSeries isn't much older than our Xeon machine, and I expected > > the performance level to be exemplary out of the box.. >=20 > 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. =20 We're very read-focussed.. there's update activity, sure, but the IO is only pushing about 500KByte/sec on average, usually much less. I also have fsync switched off - yes dangerous, but I just want to eliminate IO completely as a contributing factor. > Does AIX have anything comparable to oprofile or dtrace? =20 I've used neither on Linux, but a quick google showed up a few articles along the lines of 'in theory it shouldn't be hard to port to AIX....' but nothing concrete. My guess is IBM sell a tool to do this. Hell, the C++ compiler is =A31200... (hence our use of GCC 4.1 to compile pg) > 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. There's truss installed which seems to do the same as strace on Linux... and here's a wildly non-scientific glance.. I watched the 'topas' output (top for AIX) , identified a PID that was doing a lot of work, then attached truss to that pid. In addition to lots of send (), recv() and lseek()s... about once a minute I saw hundreds of calls to __semop() interspersed with _select(), followed by tons of lseek() +kread()+__semop() and then I can see the kwrite() to the pg logfile 246170: kwrite(2, " L O G : d u", 8) =3D 8 etc. Cheers, Gavin.