FreeBSD MySQL still WAY slower than Linux

Daniel Eischen deischen at freebsd.org
Mon Jun 13 15:34:26 GMT 2005


On Mon, 13 Jun 2005, Pete French wrote:

> > You can set the environment variable LIBPTHREAD_SYSTEM_SCOPE to force
> > libpthread to use system scope.  This is easier than rebuilding libpthread
> > (with SYSTEM_SCOPE_ONLY defined) and allows you to use M:N for some
> > applications and 1:1 for others.
>
> Is the sysctl kern.threads.thr_scope_sys supposed to achieve the same
> thing ? using the environment variable solves a different problem I
> have, but setting the sysctl doesn't. Is there any way to force pthreads
> to system scope by default ?

kern.threads.thr_scope_sys is for libthr only.

Reread the above for the answer to your last question.

-- 
DE



More information about the freebsd-stable mailing list