Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 23:58:23 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Andy Hilker <ah@crypta.net>
Cc:        current@freebsd.org
Subject:   Re: libpthread / mysql41-server
Message-ID:  <Pine.GSO.4.10.10403202355130.23229-100000@pcnet5.pcnet.com>
In-Reply-To: <20040321005423.GA48575@mail.crypta.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Mar 2004, Andy Hilker wrote:

> Hi,
> 
> You (Craig Rodrigues) wrote:
> > On Sat, Mar 20, 2004 at 12:35:56PM +0100, Andy Hilker wrote:
> > > Hi,
> > > 
> > > i have used mysql41 with linuxthreads since a few month without problems.
> > > Now linuxthreads from ports does not compile and i wanted to try
> > > without linuxthreads.
> > 
> > Look at the mailing list archives for the freebsd-threads
> > mailing list.  There was some discussion about mysql.
> > 
> > http://lists.freebsd.org/pipermail/freebsd-threads
> > http://lists.freebsd.org/pipermail/freebsd-threads/2004-January/
> 
> It seems that i have a similar issue like
> 
> http://lists.freebsd.org/pipermail/freebsd-threads/2004-February/001660.html
> 
> But maybe it is not fixed or exists again.
> Bumping up thread sysctls or using libmap.conf are not better. mySQL
> becomes very unresponsive.

Mysql uses scope system threads which are limited to
kern.threads.max_groups_per_proc.  System scope threads
seem to have unfair scheduling also.  I use SCHED_4BSD
and this patch to mysql40-server to make it use process
scope threads and it works much better:

  http://people.freebsd.org/~deischen/mysql40-server.diffs

I haven't made a patch to other versions of mysql, but I
have sent the maintainer the patch.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10403202355130.23229-100000>