Date: Mon, 16 Apr 2001 16:42:28 +0200 (CEST) From: Alexander Leidinger <Alexander@Leidinger.net> To: rowan@sensation.net.au Cc: freebsd-isp@FreeBSD.ORG Subject: Re: boa small/fast web server Message-ID: <200104161442.f3GEgU303055@Magelan.Leidinger.net> In-Reply-To: <Pine.BSF.4.21.0104161140090.83848-100000@velvet.sensation.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104161442.f3GEgU303055>