Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7824F16B0CAE for ; Mon, 19 Dec 2011 12:19:10 -0400 (AST) Received: from exprod7og122.obsmtp.com ([64.18.2.22]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcfvZ-0006fo-IX for pgsql-bugs@postgresql.org; Mon, 19 Dec 2011 16:19:09 +0000 Received: from mail-ee0-f54.google.com ([74.125.83.54]) (using TLSv1) by exprod7ob122.postini.com ([64.18.6.12]) with SMTP ID DSNKTu9j52lomPGkylOMvLb+w7BPKIHeX37y@postini.com; Mon, 19 Dec 2011 08:19:01 PST Received: by eekc50 with SMTP id c50so6503803eek.13 for ; Mon, 19 Dec 2011 08:18:45 -0800 (PST) Received: by 10.213.31.147 with SMTP id y19mr2855415ebc.80.1324311525660; Mon, 19 Dec 2011 08:18:45 -0800 (PST) Received: from [192.168.1.101] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id j20sm46264022eej.8.2011.12.19.08.18.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Dec 2011 08:18:44 -0800 (PST) Message-ID: <4EEF63E3.2010602@enterprisedb.com> Date: Mon, 19 Dec 2011 18:18:43 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Tom Lane CC: Robert Haas , PostgreSQL Bugs Subject: Re: [PATCH] Use CC atomic builtins if available [was: Re: TAS patch for building on armel/armhf thumb] References: <4EEB1C77.1000309@enterprisedb.com> <20111218224203.GA2950@piware.de> <4EEF5397.8090200@enterprisedb.com> <20126.1324308312@sss.pgh.pa.us> In-Reply-To: <20126.1324308312@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/158 X-Sequence-Number: 31969 On 19.12.2011 17:25, Tom Lane wrote: > Heikki Linnakangas writes: >> On 19.12.2011 16:31, Robert Haas wrote: >> Actually, I believe our Itanium (and possibly ARM, too) implementation >> of S_UNLOCK() is wrong as it is. > > Hmm. Anybody got a large itanium box we could play with? If it is > wrong, I'd expect it would show up pretty quickly under pgbench or > similar. We've been running pgbench heavily recently in the company on large HP Itanium boxes with 32 and 64 cores, and haven't seen any issues. I'm not sure how it would manifest itself, though. It's also possible that while it's a genuine bug at the source level, it happens to be masked by some compiler decisions. It sure looks wrong. I'll try to construct a self-contained test program to exercise that. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com