From owner-freebsd-isp Mon Apr 16 7:53:39 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id 2368637B423 for ; Mon, 16 Apr 2001 07:53:36 -0700 (PDT) (envelope-from netchild@leidinger.net) Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout0.freenet.de with esmtp (Exim 3.22 #1) id 14pANh-00047n-00; Mon, 16 Apr 2001 16:53:33 +0200 Received: from b8590.pppool.de ([213.7.133.144] helo=Magelan.Leidinger.net) by mx0.freenet.de with esmtp (Exim 3.22 #1) id 14pANg-0000Sd-00; Mon, 16 Apr 2001 16:53:33 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.3/8.11.3) with ESMTP id f3GEgU303055; Mon, 16 Apr 2001 16:42:31 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200104161442.f3GEgU303055@Magelan.Leidinger.net> Date: Mon, 16 Apr 2001 16:42:28 +0200 (CEST) From: Alexander Leidinger Subject: Re: boa small/fast web server To: rowan@sensation.net.au Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 16 Apr, Rowan Crowe wrote: > Is anyone else using Boa having this problem? Any tips in general on how > to optimise FreeBSD 4.2R for Apache and/or Boa? It's basically a stock > GENERIC kernel with non relevant devices removed. Boa was compiled from > original archive rather than via the ports collection, so that may be an > issue too. - Load the accf_http kld and make sure apache has support for it (a recent apache from the ports collection is ok). This should reduce some CPU usage. - Use the apache-patch from SGI (oss.sgi.com). Just "make patch", apply the SGI-patch and "make" (at least it worked that way with apache 1.3.9 if I remember correctly). This should make it a little bit faster, depending on the request. - Remove every apache-module you didn't need. Saves some memory. - Play a little bit with some sysctl's, e.g. net.inet.tcp.slowstart_flightsize. Faster delivery for small files. - Recompile the entire system+kernel with higher optimization (not recommended because of some compiler bugs, but you may be lucky), e.g. with "-O2 -fno-strength-reduce". - Make you websites Cache-Friendly, e.g. ---snip--- ExpiresActive On ExpiresByType image/* A2592000 ---snip--- or something like that (you may perhaps want to look at http://www.leidinger.net/cgi-bin/search.pl?q=caching&num=10). This moves a little bit of work away from your hardware. - http://www.leidinger.net/links/Computer/Unix/WWW/Apache/ Bye, Alexander. -- It is easier to fix Unix than to live with NT. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message