Date: Fri, 21 Jun 2002 15:46:16 +0200 From: Bernd Walter <ticso@cicely5.cicely.de> To: Martin Blapp <mb@imp.ch> Cc: Anders Nordby <anders@FreeBSD.ORG>, current@FreeBSD.ORG, deischen@FreeBSD.ORG, Daniel Eischen <eischen@pcnet1.pcnet.com> Subject: Re: Apache2 in threaded mode for FreeBSD ... Message-ID: <20020621134616.GR31943@cicely5.cicely.de> In-Reply-To: <20020621141713.O550-100000@levais.imp.ch> References: <20020621141713.O550-100000@levais.imp.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020621134616.GR31943>