From owner-freebsd-current@FreeBSD.ORG Wed Oct 15 08:21:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 513E416A4BF; Wed, 15 Oct 2003 08:21:18 -0700 (PDT) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id A60C443F3F; Wed, 15 Oct 2003 08:21:14 -0700 (PDT) (envelope-from mav@alkar.net) Received: from [212.86.226.11] (HELO alkar.net) by mail.alkar.net (CommuniGate Pro SMTP 4.1.5) with ESMTP id 112536836; Wed, 15 Oct 2003 18:21:07 +0300 Message-ID: <3F8D65E2.2090605@alkar.net> Date: Wed, 15 Oct 2003 18:21:06 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20030913 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: David Xu References: <3F8D5345.90007@alkar.net> <3F8D623B.1030101@freebsd.org> In-Reply-To: <3F8D623B.1030101@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: KSE & MySQL & rc.d X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 15:21:18 -0000 David Xu wrote: > Alexander Motin wrote: >> This patch did not fix the problem. On the 4th boot system hang with >> same symptoms. >> >> Daniel Eischen wrote: >> >>>> I have P4 system with SMP kernel and HyperThreading enabled. >>>> I have one strange problem with mysql 4.1.0 when using KSE on >>>> 5.1-CURRENT. >>> >>> > I have been running MySQL 4.1.0 on my SMP machine for monthes, it is > not P4 HyperThreading, > but a dual P3 machine, it just works fine for me. Do you have 5.1-CURRENT on your machine? Do you using KSE? > >>>> After building mysql server with libkse as thread library and adding >>>> its start script into /usr/local/etc/rc.d, system hangs on boot >>>> without any error message when mysql trying to start. >>> >>> > Did kernel lock up or can you press ctrl+c to see if you can interrupt it ? After that computer do not respond on Ctrl+C, Ctrl+Alt+Del, Enter or any other key. > >>>> If I trying to start mysql by hands after system completely boot >>>> then everything works just fine. >>>> If I add delay into mysql start script and run it in backgroud from >>>> rc.d - everything is fine >>> >>> > If you build mysql from ports, it should install script mysql-server.sh > under /usr/local/etc/rc.d, > the default script will run mysqld_safe in background, I am confused > that you need to > manually turn it into background, the work should be done atomically by > the script. I had built mysql by hands from sources with options: ./configure \ --prefix=/usr/local/mysql_4 \ --without-debug \ --with-charset=koi8r \ --with-extra-charset=koi8_ukr,win1251,win1251ukr \ --with-mysqld-user=mysql \ --without-berkeley-db \ --without-isam \ --without-innodb \ --enable-thread-safe-client \ --with-named-thread-libs=-lkse I use mysql.server script from mysql sources. My workaround is not only in background running of mysqld_safe (mysql.server script doing this anyway) but in running it after some delay to allow system finish his boot process and create virtual consoles. > >>>> If I build mysql without KSE it works fine. -- Alexander Motin mav@alkar.net ISP "Alkar-Teleport"