Re: PostgreSQL for VAX on NetBSD/OpenBSD

From: Greg Stark <stark(at)mit(dot)edu>
To: Johnny Billquist <bqt(at)update(dot)uu(dot)se>
Cc: Thor Lancelot Simon <tls(at)panix(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, John Klos <john(at)ziaspace(dot)com>, port-vax(at)netbsd(dot)org, vax(at)openbsd(dot)org, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostgreSQL for VAX on NetBSD/OpenBSD
Date: 2014-07-17 15:27:41
Message-ID: CAM-w4HOTUViNRZHgp-L7tbWrdRwQoOvyJ2AzBuOc=jQ5etG0Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 17, 2014 at 4:04 PM, Johnny Billquist <bqt(at)update(dot)uu(dot)se> wrote:
> Also, VAX did not use CAS as the general paradigm for atomic writes and so
> on, but have other explicit instructions that are guaranteed to be atomic.
> NetBSD/vax don't use the VAX specific instructions, but emulates CAS in the
> kernel instead. But I don't remember how that extends to userland. It's
> obviously easiest if userland programs use the pthread library functions,
> which are guaranteed to work right even in multiprocessor environment.

pthread functions may work by accident in shared memory but there's no
way to be sure they won't depend on some pthread threading data
structures. In short, if you don't use pthreads you can't really count
on pthread functions to work.

We did experiment a while back with using futexes on Linux instead of
our spinlocks but the experiments didn't seem to work out.

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2014-07-17 15:57:50 Re: [TODO] Process pg_hba.conf keywords as case-insensitive
Previous Message Johnny Billquist 2014-07-17 15:04:49 Re: PostgreSQL for VAX on NetBSD/OpenBSD