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 AA2AE11F6A9A for ; Mon, 10 Apr 2006 06:44:11 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45jKpAkVI7nh for ; Mon, 10 Apr 2006 06:44:01 -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 E60A411F73CF for ; Mon, 10 Apr 2006 06:44:03 -0300 (ADT) Received: from fon.nation-net.com (localhost [127.0.0.1]) by fon.nation-net.com (Postfix) with ESMTP id 21B5D136CA5; Mon, 10 Apr 2006 10:44:03 +0100 (BST) Received: from [194.24.251.10] (bum.net [194.24.251.10]) by fon.nation-net.com (Postfix) with ESMTP id 0EF921369F9; Mon, 10 Apr 2006 10:44:03 +0100 (BST) Message-ID: <443A2856.6050905@laterooms.com> Date: Mon, 10 Apr 2006 10:41:42 +0100 From: Gavin Hamill User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Simon Riggs Cc: pgsql-performance@postgresql.org Subject: Re: pg 8.1.3, AIX, huge box, painfully slow. References: <17613.1144451138@sss.pgh.pa.us> <1144661209.21409.131.camel@localhost.localdomain> In-Reply-To: <1144661209.21409.131.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-Archive-Number: 200604/201 X-Sequence-Number: 18285 Simon Riggs wrote: > pSeries cache lines are 128 bytes wide, so I'd go straight to 128. > Hello :) OK, that line of code is: #define LWLOCK_PADDED_SIZE (sizeof(LWLock) <= 16 ? 16 : 32) What should I change this to? I don't understand the syntax of the <= 16 ? : stuff... would a simple "#define LWLOCK_PADDED_SIZE 128" be sufficient? >If you're renting all 8 CPUs, I'd drop to 4 and try that instead. With 8 >CPUs the contention will vary according to what each CPU is doing at any >one time - when they all hit the contention spot, things will get worse. > > > We have a physical machine installed in our rack at the data centre, rather than renting a virtual partition of a real machine... I'm not sure how to enable/disable CPUs even with the help of 'smitty' :) >The pSeries has good CPUs and great caching, so I'd expect contention to >be somewhat more apparent as a bottleneck. > > > Yep, I expected 32MB of 'L3' cache would yield impressive results :) Cheers, Gavin.