[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug(s) in FreeBSD Apache2::SizeLimit ?


note: this is on a machine running freebsd 6.1
i also mistakingly posted this from a not-subscribed address. hopefully no one will approve that :)

mp2.02
I was running mp2.02 on production , and the recent memory usage had me to quickly try profiling with apache2::sizelimit (which i haven't done in at least 6mos )

I noticed something very odd-- my shared memory kept increasing, not decreasing. i figured this might be a version issue or something with copy_on_write, so I upgraded to mp2.03

mp2.03
on first run, i got an error about 'bsd_size_check' not being a valid function

	sure enough...

		$HOW_BIG_IS_IT = \&bsd_size_check;
		___
		# rss is in KB but ixrss is in BYTES.
		# This is true on at least FreeBSD, OpenBSD, NetBSD
		# Philip M. Gollucci
		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 );
		}

i renamed the function , and my shared occasionally increases, but now its 1,2,3,4,5,6

so

	a) the function is named wrong in Apache2::SizeLimit
b) is there any chance its broke? i'm kind of amazed that i'm possibly only sharing a few bytes.
		1_ perhaps ixrss is no longer in bytes on the 6.1+ branches ?
2_ why would shared mem go up ? shouldn't it be going down ? my base mem never seems to go up more than a few bytes, but shared skyrockets

i'm using the 'X' handler method on the Apache2::SizeLimit docs to profile the sizes in this case.





// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.