From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 16 14:49:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A22C37B401 for ; Wed, 16 Jul 2003 14:49:50 -0700 (PDT) Received: from cus.org.uk (host213-106-240-81.no-dns-yet.ntli.net [213.106.240.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FC4343F85 for ; Wed, 16 Jul 2003 14:49:49 -0700 (PDT) (envelope-from dom@cus.org.uk) Received: from cus.org.uk (localhost.cus.org.uk [127.0.0.1]) by cus.org.uk (8.12.6/8.12.6) with ESMTP id h6GLnl5h003344; Wed, 16 Jul 2003 22:49:47 +0100 (BST) (envelope-from dom@cus.org.uk) Received: (from dom@localhost) by cus.org.uk (8.12.6/8.12.6/Submit) id h6GLnlPR003343; Wed, 16 Jul 2003 22:49:47 +0100 (BST) Date: Wed, 16 Jul 2003 22:49:47 +0100 From: Dominic Marks To: "Jeremy C. Reed" Message-ID: <20030716214947.GB1644@cus.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: apache2's perchild MPM not working under 5.0-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 21:49:50 -0000 On 16/07/2003 14:07, Jeremy C. Reed wrote: > The apache2 port build and installed with WITH_MPM=perchild does not work > for me for DAV and SSL under FreeBSD 5.0-RELEASE (i386). > > The port's Makefile even mentions "perchild" as an WITH_MPM option. If this is going to be broken long-term I'll make it obvious in the port that it is until such times as it works properly. I also need to do some testing with the other threaded MPMs and 5's ever-growing collection of pthread libraries. > Does anyone use perchild (with DAV or SSL)? > > It is extremely slow and unusable. (Sometimes taking minutes for a DAV > command, if it even works.) Using prefork works instantly. (I want > perchild so I can have virtual hosts running with their own user and group > privileges.) It would be interesting to see what it's waiting on. You could try attaching truss (or strace from ports) to one of the perchild processes (assuming you could identify it) and watch what sort of things it is doing. You'll need to mount procfs before you can do this on 5. What is the performance like with general traffic (no DAV, no SSL) ? > I have read old messages saying perchild didn't work, but would work with > FreeBSD 5.0. The apache2 documentation itself states: "This MPM does not currently work on most platforms. Work is ongoing to make it functional." Which doesn't bode well. > I assume it is a threads issue. This is possible, I am planning to test apache2 with threads against libthr and libkse in the next week or so, but if one of the thread developers wants to speed up the process, I'd appreciate it. > Does anyone have any suggestions on troubleshooting this further? > > My next step is to try it on a 5.1 system. > > (Should I email freebsd-threads or freebsd-ports instead?) > > Thank you, > > Jeremy C. Reed > http://bsd.reedmedia.net/ > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" Thanks, -- Dominic