From owner-freebsd-questions Wed Feb 11 11:34:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00751 for questions-outgoing; Wed, 11 Feb 1998 11:34:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from proxyb2.san.rr.com (proxyb2-atm.san.rr.com [204.210.0.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA00744 for ; Wed, 11 Feb 1998 11:34:12 -0800 (PST) (envelope-from Studded@dal.net) Received: from dal.net (dt051n19.san.rr.com [204.210.32.25]) by proxyb2.san.rr.com (8.8.7/8.8.8) with ESMTP id LAA13193; Wed, 11 Feb 1998 11:31:48 -0800 (PST) Message-ID: <34E1FCA1.FC6622@dal.net> Date: Wed, 11 Feb 1998 11:31:45 -0800 From: Studded Organization: Triborough Bridge and Tunnel Authority X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-STABLE-0131 i386) MIME-Version: 1.0 To: "Sean J. Schluntz" CC: freebsd-questions@FreeBSD.ORG Subject: Re: How to optimize a FTP/Web Server? References: <199802110557.VAA00717@gromit.pinpt.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sean J. Schluntz wrote: > > *From the fingers of Doug White > >> Is there a FAQ somewhere that will help me optimize a FTP and a Web > >> server? I have to systems, one dedicated to FTP and one to Web (running > >> Stronghold) both under FreeBSD v2.2.5-R and neither of them seem all > >> that snappy, esp when under a load. I need to speed them up because a > >> big mail drop is one the way and they will be hammered when it hits. > > > >What class of machine is this? > > > >The big three ways to increase speed on Unices: > > > >1. More RAM. > > Ok, web has 64 now and FTP has 32. I've been meaning to up the web to > 128 (how fast can you get a web server if you make a 30 meg RAM disk and > move all of the web files and cgi scripts to it... No disk access to > slow it down.) You would be better off adding the ram and letting the OS handle disk caching for you. Once you have the ram in, use the *stat's (systat, vmstat, iostat) to get a picture of where your bottlenecks are. In fact, it would be a good idea to start getting a good picture of your current conditions so you'll know for sure where to spend your money. > >2. More disks and controllers and move frequently-used FSs to different > > disks on different controllers. > > That's an idea. If your usage pattern is highly disk bound, this is an excellent idea. > >3. Faster processor (to a point) or faster bus speed. > > It's on a 166 now, I will probably get a second system and split the load > between the two before I get a faster CPU or a second controller. Make sure that you know where your bottlenecks are first. Depending on your cash situation, configuring a second machine as a hot backup might serve your needs better. Depending on your definition of "heavy load," there are some recommendations for our heavily loaded IRC servers that I wrote up at http://home.san.rr.com/freebsd/dal-upgrade.html. That info and the mail archives at http://www.freebsd.org/search.html should give you plenty of places to look for more ideas. Good luck, Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud operator, designer and maintainer of the world's largest *** Internet Relay Chat server. 5,328 clients and still growing. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message