Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Feb 1998 11:31:45 -0800
From:      Studded <Studded@dal.net>
To:        "Sean J. Schluntz" <schluntz@pinpt.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to optimize a FTP/Web Server?
Message-ID:  <34E1FCA1.FC6622@dal.net>
References:  <199802110557.VAA00717@gromit.pinpt.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34E1FCA1.FC6622>