Rasmus Solmer Eriksen wrote:
> 
> Mod_perl2 too greedy on memory
> 
> We have installed Apache2 with Mod_perl2 on a Suse 9 Linux distribution.
> 
> Compared with out usual setup with mod_perl-1.29 and Apache1.3, the new
> installation with  mod_perl-2.0.1 has increased the memory consumption
> by 5 times.

Was this setup on Suse 9 as well? Same kernel?

> The following line are from the "ps aux" command:
> wwwrun   28464  0.0  0.3 55128 14284 ?       S    16:12   0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
> wwwrun   28744  1.3  2.0 242312 79268 ?      S    16:15   0:05
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd-perl.conf –DBACKEND

The current linux 2.6 kernels do not report COW memory correctly. This means
that it could be using far less memory than ps will report since a good bit of
that is probably shared.

See this thread for a discussion:

http://www.gossamer-threads.com/lists/modperl/modperl/78320?search_string=2.6%20linux;#78272

> The Mod_perl enabled httpd2-prefork uses more than 200 MB memory,
> meaning that I can only spawn about 30 servers with 5 GB physical memory.
> 
> What could be wrong? Is it a setup problem ?
> Do I need to recompile the standard Suse binary and restrict myself from
> using the upstream package function?

I might be wrong in guessing this, but I would say that most people who care
alot about performance will compile their own versions of perl, apache and
mod_perl. I don't know about Suse, but I've heard anectdotes of people getting
as much as 30% increase in speed with compiling their own with just the defaults
on RH systems.

-- 
Michael Peters
Developer
Plus Three, LP

Reply via email to