From: Alan Stange <stange@rentec.com>
To: Alan Stange <stange@rentec.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: solaris build problem with Sun compilers
Date: Fri, 12 May 2006 12:22:43 -0400
Message-ID: <4464B653.1040301@rentec.com> (raw)
In-Reply-To: <4463D639.3030802@rentec.com>
References: <200605112316.k4BNGeB17324@candle.pha.pa.us>
<4463D639.3030802@rentec.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: stange@rentec.com, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us
Subject: Re: solaris build problem with Sun compilers
In-Reply-To: <4464B653.1040301@rentec.com>
References: <200605112316.k4BNGeB17324@candle.pha.pa.us> <4463D639.3030802@rentec.com> <4464B653.1040301@rentec.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox