From owner-freebsd-performance@FreeBSD.ORG Sat Sep 27 16:19:27 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB96116A4B3; Sat, 27 Sep 2003 16:19:27 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFA9E43FFB; Sat, 27 Sep 2003 16:19:26 -0700 (PDT) (envelope-from adam@migus.org) Received: from garple.migus.org ([68.55.83.94]) by comcast.net (sccrmhc11) with ESMTP id <20030927231915011006om6ve>; Sat, 27 Sep 2003 23:19:26 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id B2C658FC37; Sat, 27 Sep 2003 19:19:15 -0400 (EDT) Received: from garple.migus.org ([127.0.0.1]) by localhost (caster.migus.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01177-05; Sat, 27 Sep 2003 19:19:15 -0400 (EDT) Received: from migus.org (ganyopa.migus.org [192.168.4.2]) by garple.migus.org (Postfix) with ESMTP id 52F748FC30; Sat, 27 Sep 2003 19:19:15 -0400 (EDT) Message-ID: <3F761AF0.3020105@migus.org> Date: Sat, 27 Sep 2003 19:19:12 -0400 From: "Adam C. Migus" Organization: Migus Dot Org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: John Straiton cc: freebsd-performance@freebsd.org cc: 'Eric Anderson' Subject: Re: Performance Problems.. Server hardware smoked by $500 box? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 23:19:28 -0000 Robert Watson wrote: >On Thu, 11 Sep 2003, John Straiton wrote: > > > >>(Production WEB now that it's using apache2. Since we're new to apache2, >>it's gonna be certainly hokie) >> >> > >My understanding is that Apache2 is optimized to make extensive use of >threads. On FreeBSD 5.x, the pthreads implementation (libkse) is >substantially better than in 4.x, especially in SMP environments. In >FreeBSD 4.x, I'm generally suggesting to people that they use Apach1 >unless there are specific feature requirements that make Apache2 the only >choice. On FreeBSD 5.x, I haven't really evaluated Apache2 behavior, but >it could well come down to the threading issue, and may well be a lot >faster than Apache1 when linked against the right threading library. > >This is all speculation of course, but it could be that differences in >Apache version make up most of the performance difference you see. > >Robert N M Watson FreeBSD Core Team, TrustedBSD Projects >robert@fledge.watson.org Network Associates Laboratories > >_______________________________________________ >freebsd-performance@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-performance >To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > > Actually, if John is using the apache2 port, without specifying a custom MPM, he's using the prefork MPM. The apache2 prefork MPM is non-threaded and uses a method similar to apache1 to serve requests. Thus threading is irrelavent unless he's specifically enabled them, which, he cannot be using since he's using PHP, which doesn't work with apache2 threading. I use apache2 on FreeBSD 5.1 RELEASE and find performance to be as good or better than apache1. I suspect the excessive numbers in the prefork section might be causing some trouble and would recommend reverting back to the defaults (with the exception of MaxClients) for your apache2 configuration (see the documentation for details). Also try using a local, caching bind setup for name service if you find performance is still lacking. For the nfs, I'd also mount with rw,rdirplus. Adam