Re: Again, Modperl running scripts slower than non-modperl!?

2001-08-05 Thread Perrin Harkins

> > Not having read anything before this, but it seems that your machine is
> > going into swap because there is not enough RAM available.  That kills
> your
> > performance always.  Could you run your test on a different machine or
> > temporarily switch off the regular server?
> >
> > Trying to run close to 200 Mbyte modperl Apaches on a 256 Mbyte machine
is
> > not going to work.  Have you looked at MaxRequestsPerChild?
>
> This is set at 0

What are you using to control process size?  Apache::SizeLimit?  It looks
like you have some code that hogs memory, and you'll need to control it
somehow.  Most people have servers more in the range of 10-40MB, with a
bunch of that shared.

- Perrin




Re: Again, Modperl running scripts slower than non-modperl!?

2001-08-05 Thread John Buwa


> Not having read anything before this, but it seems that your machine is
> going into swap because there is not enough RAM available.  That kills
your
> performance always.  Could you run your test on a different machine or
> temporarily switch off the regular server?
>
> Trying to run close to 200 Mbyte modperl Apaches on a 256 Mbyte machine is
> not going to work.  Have you looked at MaxRequestsPerChild?

This is set at 0

> But even the non-modperl servers at 30 Mbyte size seems ridiculously
large:
> are you sure you need all the modules that you compiled into Apache?

Im sorry that was a mistake the non modeperl apache is like this:
125 nobody 0   0   3960 0 SW0.0  0.0   5:58 httpd
  126 nobody 0   0   2960 0 SW0.0  0.0   0:19 httpd
  127 nobody 0   0   804  608   504 S 0.0  0.2   8:10 httpd
  128 nobody 0   0   888  724   592 S 0.0  0.2  11:21 httpd
  129 nobody 0   0   872  712   592 S 0.0  0.2   5:21 httpd

John




Re: Again, Modperl running scripts slower than non-modperl!?

2001-08-04 Thread John Buwa

It actually get alot larger than that! Anywho, yes i have installed the
latest libpreq, latest modperl, perl 5.6.1, apache 1.3.20 and on linux
2.2.19

Hope that helps.

John

200 Megs for a modperl process sounds way off.  Are you using an old
version of libapreq?  There is a big memory leak with older versions,
particulary for multipart file uploads.  Try
http://www.apache.org/~jimw/libapreq-0.33.tar.gz and see if that fixes
things up.  Also you didn't say what version of modperl,perl,apache or
what platform you are using, so I am probably way off. Heh, I'm just
taking a wild ass guess.

On Saturday, August 4, 2001, at 11:29 PM, John Buwa wrote:

> Ok guys,
>
> Here goes again ... To refresh the standing: I am running my scripts on
> regular apache as the active server to the public. I am porting over my
> scripts to work properly with the modperl enable apache server. To do
> this when i am working on scripts and testing them, i start the modperl
> server running on another port as to not interfere with the port 80
> requests.
>
> If i run the same script on each apache the non apache will load and i
> can reload it again, before the original requested script completes on
> the modperl server. I wanted to convert to modperl for faster
> performance on my perl scripts, but i can not get that faster
> performance its several times worse than the nonperl server???
>
> Now i know no one here is physic (Or maby i am wrong) but for those who
> are not i need to give you some clues. Here is a print out from top:
>
> 91 processes: 89 sleeping, 2 running, 0 zombie, 0 stopped
> CPU states: 0.0% user, 0.7% system, 0.0% nice, 99.2% idle
> Mem: 257408K av, 228384K used, 29024K free, 13744K shrd,
> 5380K buff
> Swap: 265528K av, 184780K used, 80748K free
> 8908K cached
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM CTIME COMMAND
> 25788 nobody 0 0 126M 125M 1076 S 0.0 49.8 0:13 httpd
>  25787 nobody 0 0 196M 32M 1356 S 0.0 12.9 0:19 httpd
> <-modperl server
> 25799 nobody 0 0 32592 30M 8 S 0.0 12.2 0:10
> httpd<---Non modperl server
>
> My httpd.conf modperl section:
>
> Alias /cgi-bin/ /driveb/usr/web/webroot/cgi-bin/
>
>
> 
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
> PerlSendHeader On
> 
>
> my entry script call:
>
> for modperl and cg.pm
>
> use CGI::Apache qw(:standard);
> use CGI qw(:cgi-lib);
>
> Not sure what other information would be helpull to you. If there
> is anything else please let me know, and if you see anything wrong
> above id apreciate your input.
>
> Thanks,
> John Buwa
>
>





Re: Again, Modperl running scripts slower than non-modperl!?

2001-08-04 Thread Elizabeth Mattijsen

At 01:29 AM 8/5/01 -0500, John Buwa wrote:
>91 processes: 89 sleeping, 2 running, 0 zombie, 0 stopped
>CPU states:  0.0% user,  0.7% system,  0.0% nice, 99.2% idle
>Mem:   257408K av,  228384K used,   29024K free,   13744K shrd,5380K buff
>Swap:  265528K av,  184780K used,   80748K free8908K 
>cached
>  PID   USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM  CTIME COMMAND
>25788 nobody 0   0  126M 125M  1076 S 0.0 49.8   0:13 httpd 
>25787 nobody 0   0  196M  32M  1356 S 0.0 12.9   0:19 httpd 
><-modperl server
>25799 nobody 0   0 32592  30M 8 S 0.0 12.2   0:10 httpd<---Non 
>modperl server

Not having read anything before this, but it seems that your machine is 
going into swap because there is not enough RAM available.  That kills your 
performance always.  Could you run your test on a different machine or 
temporarily switch off the regular server?

Trying to run close to 200 Mbyte modperl Apaches on a 256 Mbyte machine is 
not going to work.  Have you looked at MaxRequestsPerChild?

But even the non-modperl servers at 30 Mbyte size seems ridiculously large: 
are you sure you need all the modules that you compiled into Apache?


Elizabeth Mattijsen




Again, Modperl running scripts slower than non-modperl!?

2001-08-04 Thread John Buwa



Ok guys,
 
Here goes again ... To refresh the standing: I am 
running my scripts on regular apache as the active server to the public. I am 
porting over my scripts to work properly with the modperl enable apache server. 
To do this when i am working on scripts and testing them, i start the modperl 
server running on another port as to not interfere with the port 80 
requests.
 
If i run the same script on each apache the non 
apache will load and i can reload it again, before the original requested script 
completes on the modperl server. I wanted to convert to modperl for faster 
performance on my perl scripts, but i can not get that faster performance its 
several times worse than the nonperl server???
 
Now i know no one here is physic (Or maby i am 
wrong) but for those who are not i need to give you some clues. Here is a print 
out from top:
 
91 processes: 89 sleeping, 2 running, 0 zombie, 0 
stoppedCPU states:  0.0% user,  0.7% system,  0.0% nice, 
99.2% idleMem:   257408K av,  228384K used,   
29024K free,   13744K shrd,    5380K 
buffSwap:  265528K av,  184780K used,   80748K 
free    
8908K cached
 
 PID    
USER PRI  NI  SIZE  RSS SHARE STAT %CPU 
%MEM  CTIME COMMAND25788 nobody 0   
0  126M 125M  1076 S 0.0 49.8   0:13 
httpd