Re: [BENCHMARK] Server Resources

[prev] [thread] [next] [Date index for 2005/01/17]

From: Perrin Harkins
Subject: Re: [BENCHMARK] Server Resources
Date: 20:39 on 17 Jan 2005
On Fri, 2005-01-14 at 13:08 -0800, Skylos wrote:
> My first suggestion based on a migration the company I work for did
> not too long ago would be to use apache2 in thread mode.  There was a
> staggering drop in system memory resources consumed when we made the
> shift - from most of a gigabyte to only a few hundred megs!   The
> site's response speed picked up too.

No offense, but I think there may be some other reason for that.  All
reports so far say that running in threaded mode uses significantly more
memory than pre-fork because it defeats the copy-on-write sharing.

> Also, to compare, I work with an apache 1.3 site that has alot of cgi
> perl script on it.  With the idea that shifting to mod_perl registry
> mode would cause this site to go faster, I modified the configuration.
>  And watched the system load average rapidly climb into the
> multiple-hundreds!

That's probably because you didn't tune the server settings for the
increased memory needed by mod_perl.  When you run mod_perl, you have to
adjust your MaxClients setting and use something like Apache::SizeLimit
to limit the size of processes.  This keeps you from going over the
available RAM.  A good setup for a site that has some legacy CGI to run
as well is to make the CGI server run mod_proxy and proxy the mod_perl
requests back to a separate server that just runs mod_perl.  Running a
small number of mod_perl processes will still give you better
performance than a large number of CGI processes because the speed gains
are so large.

- Perrin

[BENCHMARK] Server Resources
sofadmin 20:43 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Skylos 21:08 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Michael Peters 21:16 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Skylos 21:22 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
sofadmin 21:42 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Skylos 23:23 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Rob Bloodgood 23:35 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Perrin Harkins 20:39 on 17 Jan 2005

Re: [BENCHMARK] Server Resources
Larry Leszczynski 21:45 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
Stas Bekman 23:29 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
sofadmin 01:31 on 16 Jan 2005

RE: [BENCHMARK] Server Resources
Tom Gazzini 02:02 on 16 Jan 2005

RE: [BENCHMARK] Server Resources
Todd Finney 02:48 on 16 Jan 2005

Re: [BENCHMARK] Server Resources
Perrin Harkins 19:08 on 17 Jan 2005

Re: [BENCHMARK] Server Resources
Kyle Dawkins 22:52 on 14 Jan 2005

Re: [BENCHMARK] Server Resources
sofadmin 00:46 on 16 Jan 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52