From owner-freebsd-current Fri Jun 21 6:46:30 2002 Delivered-To: freebsd-current@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 2D09737B403; Fri, 21 Jun 2002 06:46:25 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g5LDkJMa076046 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 21 Jun 2002 15:46:23 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g5LDkHFJ037622 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 21 Jun 2002 15:46:17 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g5LDkHnM037621; Fri, 21 Jun 2002 15:46:17 +0200 (CEST)?g (envelope-from ticso) Date: Fri, 21 Jun 2002 15:46:16 +0200 From: Bernd Walter To: Martin Blapp Cc: Anders Nordby , current@FreeBSD.ORG, deischen@FreeBSD.ORG, Daniel Eischen Subject: Re: Apache2 in threaded mode for FreeBSD ... Message-ID: <20020621134616.GR31943@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020621141713.O550-100000@levais.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020621141713.O550-100000@levais.imp.ch> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 21, 2002 at 02:25:18PM +0200, Martin Blapp wrote: > > Hi Daniel, > > Port is /usr/ports/www/apache2, compiled with: > > make WITH_MPM=perchild FORCE_THREADING_MPM=yes install > > Note that this problem happens with ALL threaded MPM's. > > bash-2.05a# ps -aux | grep httpd > root 96690 0.0 0.4 5800 3944 ?? Ss 2:13PM 0:00.01 httpd > www 96691 0.0 0.4 5800 3980 ?? S 2:13PM 0:00.00 httpd > > bash-2.05a# telnet localhost 80 > Trying ::1... > Connected to localhost. > Escape character is '^]'. > GET / HTTP/1.0 > > and there it hangs. > > Gdb only shows: > > PID 96690 > > #0 0x282b2808 in _thread_sys_poll () from /usr/lib/libc_r.so.4 > #1 0x282b177e in thread_kern_poll (wait_reqd=2) > at /usr/src/lib/libc_r/uthread/uthread_kern.c:829 > #2 0x282b0dea in _thread_kern_scheduler () > at /usr/src/lib/libc_r/uthread/uthread_kern.c:482 > #3 0x0 in ?? () That's the normal condition if it beleaves no thread is runnable. The question is which of the following aply: 1. an event to a a thread into running state was missed. 2. apache2 deadlocked itself because it makes wrong assumptions about timing, ... 3. something else. If the apache team could exclude case 2 for shure they should be able to tell what went wrong with FreeBSDs implementation. At the beginning of the year I had an apache2 with mod_php4 running on a 4.5-RC1 alpha, but it wasted CPU cycles because one thread was continuously runnable so I had to revert back to apache1. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message