X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 261A19FA32D for ; Fri, 12 May 2006 13:23:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 03154-06 for ; Fri, 12 May 2006 13:22:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from centaur.rentec.com (centaur.rentec.com [216.223.240.8]) by postgresql.org (Postfix) with ESMTP id 54C599F946D for ; Fri, 12 May 2006 13:22:53 -0300 (ADT) Received: from ram.rentec.com (ram [192.5.35.66]) by centaur.rentec.com (8.13.6/8.12.1) with ESMTP id k4CGMkRg022648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 May 2006 12:22:47 -0400 (EDT) X-Source: non-mednet Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by ram.rentec.com (8.13.1/8.12.1) with ESMTP id k4CGMhDH016161; Fri, 12 May 2006 12:22:43 -0400 (EDT) Message-ID: <4464B653.1040301@rentec.com> Date: Fri, 12 May 2006 12:22:43 -0400 From: Alan Stange Reply-To: stange@rentec.com Organization: Renaissance Technologies Corp. User-Agent: Mail/News 1.5.0.2 (X11/20060427) MIME-Version: 1.0 To: Alan Stange CC: Bruce Momjian , Tom Lane , pgsql-ports@postgresql.org Subject: Re: solaris build problem with Sun compilers References: <200605112316.k4BNGeB17324@candle.pha.pa.us> <4463D639.3030802@rentec.com> In-Reply-To: <4463D639.3030802@rentec.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by centaur.rentec.com as k4CGMkRg022648 at Fri May 12 12:22:47 2006 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/26 X-Sequence-Number: 2407 Hello, I removed the whole tas_dummy() block for sparc from s_lock.c. I recompiled and installed with and without --enable-debug. I then ran pgbench on the box. This is using the Sun 11 compilers on Solaris 10. I tested using pgbench $ pgbench -i -s 32 pgbench $ pgbench -s 32 -c 1 -t 10000 -v for up to 8 clients on an 8 core UltraSparc IV+ system. Everything compiled and ran fine. I took a look at backend/port/tas/solaris_sparc.s file. Isn't that code a bit longer than needed? Aren't the callers of this doing while (tas(lock)) { // wait a bit without smashing the kernel/memory bus } in which case the code should just be ldstub [%o0],%o0 retl nop without the extra comparisons and branching. Unless I'm missing something. -- Alan