Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2002 09:30:08 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Leo De Geer <leo@ktv.se>
Cc:        mysql@lists.mysql.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: problem with mysql threads on freebsd
Message-ID:  <20020611143008.GB14164@dan.emsphone.com>
In-Reply-To: <200206110836.55860.leo@ktv.se>
References:  <200206110836.55860.leo@ktv.se>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 11), Leo De Geer said:
> im not abel to get mysql to use more then one thread on my freebsd
> 4.5-stable any one having a klue that wrong?????

Do not assume that the way Linux manages threads is the only one. 
Mysql on FreeBSD does create threads; they are just not visible via top
(in fact Linux is the only OS that shows threads in top).  FreeBSD's
threads system, however will not put those threads on multiple CPUs. 
You can work around this by building the mysql port with LinuxThreads:

cd /usr/ports/databases/mysql323-server
make WITH_LINUXTHREADS=yes

This is only useful if your system is dedicated to mysql, though.  If
it is a combination webserver/database, the other CPU will be busy
enough serving webpages, and FreeBSD's regular threads will do fine.

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020611143008.GB14164>