From owner-freebsd-threads@FreeBSD.ORG Wed Apr 14 18:48:57 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8373316A4CE for ; Wed, 14 Apr 2004 18:48:57 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id A468F43D49 for ; Wed, 14 Apr 2004 18:48:56 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc13) with ESMTP id <2004041501485501500rhafce>; Thu, 15 Apr 2004 01:48:56 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA40033; Wed, 14 Apr 2004 18:48:53 -0700 (PDT) Date: Wed, 14 Apr 2004 18:48:51 -0700 (PDT) From: Julian Elischer To: Ganbold In-Reply-To: <6.0.3.0.2.20040415102606.02b00f90@202.179.0.80> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Alexander Leidinger cc: threads@freebsd.org cc: kenm@icarz.com cc: mysql@lists.mysql.com Subject: Re: FBSD 5.2.CURRENT-p4 and mysqld problems X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2004 01:48:57 -0000 2 processes, ok, but ps doesn;t shouw you how many threads.. try ps -auxH On Thu, 15 Apr 2004, Ganbold wrote: > Hi, > > I compiled mysql-4.0.18 from ports on CURRENT machine with BUILD_STATIC=yes > option. > However ps ax shows only 2 processes: > > 61652 p0 S 0:00.03 /bin/sh /usr/local/bin/mysqld_safe --user=mysql > --datadir=/var/db/mysql --pid-file=/var/db/mysql/ta > 61671 p0 S 0:00.82 /usr/local/libexec/mysqld --basedir=/usr/local > --datadir=/var/db/mysql --user=mysql --pid-file=/var > > But when I compile with linuxthreads I see many threads: > > 88 36250 68876 0 87 11 458452 441436 select > SN ?? 0:02.59 (mysqld) > 88 36253 36250 0 87 11 458452 441436 select > SN ?? 0:00.06 (mysqld) > 88 36254 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36255 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36256 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36257 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36258 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36259 36253 0 90 14 458452 441436 select > SN ?? 0:00.77 (mysqld) > 88 36260 36253 0 20 14 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36270 36253 0 20 11 458452 441436 > pause SN ?? 0:00.10 (mysqld) > 88 36271 36253 0 20 12 458452 441436 > pause SN ?? 0:00.00 (mysqld) > 88 36272 36253 0 4 14 458452 441436 sbwait > SN ?? 0:36.24 (mysqld) > 88 36273 36253 0 4 14 458452 441436 sbwait > SN ?? 0:00.25 (mysqld) > 88 36274 36253 0 4 14 458452 441436 sbwait > SN ?? 0:02.07 (mysqld) > 88 36288 36253 0 20 14 458452 441436 > pause SN ?? 0:00.65 (mysqld) > 88 36297 36253 0 4 14 458452 441436 sbwait > SN ?? 0:18.40 (mysqld) > 88 36298 36253 0 20 14 458452 441436 > pause SN ?? 0:02.81 (mysqld) > 88 38326 36253 0 20 14 458452 441436 > pause SN ?? 0:01.60 (mysqld) > 88 38843 36253 0 20 14 458452 441436 > pause SN ?? 0:00.60 (mysqld) > 0 68876 1 0 8 0 1568 1024 wait S p5- 0:00.03 /bin/sh > /usr/local/bin/mysqld_safe --user=mysql --datadir=/var/db/mysql > --pid-file=/var/db/mysql/backend2.pid --log-slow-queries=slow.log > --log=general.log --log-update=update.log --default-character-set=latin1 > > I thought after default compile of mysqld server and start, it should > create several mysql threads. > I think I compiled mysql without any thread support. How can I compile it > to use libpthread? > > thanks in advance, > > Ganbold > > > At 09:30 PM 14.04.2004, you wrote: > >On Wed, 14 Apr 2004 20:44:30 +0900 > >Ganbold wrote: > > > > > Can you give me some hints and tricks to compile mysql with libpthread? > > > What compiler options should I use? > > > >None, it's the default threading lib with a recent -current. You just > >have to recompile (every application which may use threads, since mixing > >the thread libs is not possible, alternatively you can have a look at > >the man-page of libmap.conf). > > > >Bye, > >Alexander. > > > >-- > > I'm available to get hired. > > > >http://www.Leidinger.net Alexander @ Leidinger.net > > GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >