Re: Spinlocks and compiler/memory barriers

From: Mark Cave-Ayland <mark(dot)cave-ayland(at)ilande(dot)co(dot)uk>
To: Andres Freund <andres(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Spinlocks and compiler/memory barriers
Date: 2014-07-01 22:21:07
Message-ID: 53B33453.4090001@ilande.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01/07/14 11:04, Andres Freund wrote:

>> Since we have a Sun Studio machine in the buildfarm, we shouldn't give
>> up on SPARC completely, but maybe we should only add the cases for
>> sparcv8+ and above? That at least has some chance of getting tested.
>
> That we have code for sparcv7 is ridiculous btw. Sparcv8 (not 8+/9) is
> from 1992. v7/sun4c been dropped from solaris 8 if I see that correctly.
>
> I agree that v8 (in contrast to v8+ aka v9 in 32bit mode) support has to
> go as well. I'd personally vote for backpatching a note to
> installation.sgml saying that it's probably not working, and not do
> anything else there. That means we also should replace the ldstub by cas
> in the the gcc inline assembly - but we have buildfarm members for that,
> so it's not too bad.

Being involved in QEMU SPARC development, I can tell you that patches
are still actively being received for SPARCv8. The last set of CPU
patches were related to fixing bugs in the LEON3, a 32-bit SPARC CPU
which is available in hardened versions certified for extreme
environments such as military and space. I'd hate to find out that they
switched to another database because they couldn't upgrade PostgreSQL on
the ISS ;)

Also if you're struggling for Sun buildfarm animals, recent versions of
QEMU will quite happily install and run later versions of 32-bit Solaris
over serial, and 2.0 even manages to give you a cgthree framebuffer for
the full experience.

ATB,

Mark.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-07-01 22:38:06 Re: Spinlocks and compiler/memory barriers
Previous Message Robert Haas 2014-07-01 21:31:53 Re: Spinlocks and compiler/memory barriers