Subject: Re: PThreads/MySQL
To: Scott Barron <sb125499@oak.cats.ohiou.edu>
From: Wayne Knowles <wdk@netbsd.org>
List: port-sgimips
Date: 01/15/2002 18:43:28
On Mon, 14 Jan 2002, Scott Barron wrote:

> Hello again,
>
> I was hoping to use my Indy to serve up a MySQL database as the back end
> of a (small) site I'm hosting.  Unfortunately it looks like my plans have
> been foiled.  The problem being a lack of mit-pthreads on the sgimips port.
> I was considering working on this if nobody else is (don't want to
> duplicate work) or if there is a compelling reason to not do it.  Or,
> has anyone gotten MySQL to work with gnu pth (or done any work towards
> this)?  I'm will to devote some time to whichever would be
> faster/easier.

Support for Posix Threads under sgimips is in the pipeline.   It is part
of the nathanw_sa branch in the CVS repository.   Basic regression tests
pass without problems, and the next stage is to stress test it using a
real application such as MySQL.  This was on my todo list to try....

IIRC the main reason why there is no pthread support is the lack of atomic
locks for the R3000 processors.
Currently the pthread support in the nathanw_sa branch assumes R4000's and
will work on an R4K Indy.   When I get more time I plan on implementing
restartable atomic sequences to the the user-land locking problem for
R3000 machine.

It will be a while before the branch is brought into -current.  I
certainly wouldn't recommend it on a production machine at this time.

-- 
Wayne Knowles			NetBSD/mipsco port maintainer
wdk@netbsd.org			http://www.netbsd.org