Jonathan Tweed wrote:
On 23 Aug 2006, at 19:53, Jonathan Vanasco wrote:
I still haven't tracked down what could cause the not-sharing under
FreeBSD. I caved in and got some people from my local BSD user group
to help me look into it
I'm seeing huge memory usage on FreeBSD as well. I was actually about to
post a reply to this thread to ask if you had got any further with it.
load nothing, except maybe Apache::SizeLimit
startup.pl allocate a 10MB variable
set parent + 2 children
The 2 children must report _AT LEAST_ 10 MB shared to start with but it should
be higher.
setup the handler to allocate a different 20MB variable and make exactly 1 HIT.
1 of the children should now have a higher max size and _AT LEAST_ 10MB shared
from the startup var
and _AT LEAST_ 20MB unshared from the request.
You might want to make a 3rd handler which just prints
sub _bsd_size_check {
my @results = BSD::Resource::getrusage();
my $max_rss = $results[2];
my $max_ixrss = int ( $results[3] / 1024 );
return ( $max_rss, $max_ixrss );
}
to the client (STDOUT)
I'm betting that top/ps are going to be off and the RUSAGE() will be correct
I'm not convinced that they report Copy-on-Write pages correctly
I'll be trying this evening on a FreeBSD 6.1-STABLE box.
root 60641 22.6 5.8 73068 60492 ?? Ss 8:25PM 0:02.08
73MB thats nothing for mod_perl + php its fairly typical actually.
These numbers seem really high to me. I have both mod_perl and mod_php
installed and am running two perl sites and four php sites.
You should separate these out to separate apache instances.... unless you've a
good
reason not to.
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ /
/ /|_/ / // /\ \/ /_/ / /__
/_/ /_/\_, /___/\___\_\___/
<___/