Re: Loading at startup to use shared memory

2006-11-08 Thread Kjetil Kjernsmo
On Tuesday 07 November 2006 17:17, Torsten Foertsch wrote: > You can directly look at /proc//smaps or use Linux::Smaps. I > don't know what GTop does but I know how /proc//smaps work. > Also, don't do it too often. Reading from /proc//smaps is really > expensive particularly for large process sizes

Re: Loading at startup to use shared memory

2006-11-07 Thread Jonathan Vanasco
On Nov 7, 2006, at 1:03 PM, Perrin Harkins wrote: I think some of these are a little over-zealous, Jonathan. oh, they're completely off the hook. but they work. BTW, none of my approaches were pre mature optimization. They were all based on profiling code via Apache::Status to get better

Re: Loading at startup to use shared memory

2006-11-07 Thread Perrin Harkins
On Tue, 2006-11-07 at 11:35 -0500, Jonathan Vanasco wrote: > some tips: I think some of these are a little over-zealous, Jonathan. > but things like File::Find eat up a TON of memory ( 2+ > mb ), and > most functionality can be coded in 10-15 minutes. ( vs 2 minutes if

Re: Loading at startup to use shared memory

2006-11-07 Thread Jonathan Vanasco
On Nov 7, 2006, at 6:57 AM, Kjetil Kjernsmo wrote: Exactly what numbers are you then reading out of top then? Run your app on a clean box -- ie: don't run anything other than apache/mp ( if you can toss the db onto another service , do it ). but turn off everything else. Reboot your mac

Re: Loading at startup to use shared memory

2006-11-07 Thread Torsten Foertsch
On Tuesday 07 November 2006 13:28, Kjetil Kjernsmo wrote: > > What operating system is it? If linux see > > http://search.cpan.org/~drolsky/Apache-SizeLimit-0.9/lib/Apache/SizeL > >imit.pm#linux > > Yep, it is GNU/Linux, kernel 2.6.17. > > That's very interesting. I hadn't read up on that, because

Re: Loading at startup to use shared memory

2006-11-07 Thread Kjetil Kjernsmo
On Monday 06 November 2006 18:08, Torsten Foertsch wrote: > > What operating system is it? If linux see > http://search.cpan.org/~drolsky/Apache-SizeLimit-0.9/lib/Apache/SizeL >imit.pm#linux Yep, it is GNU/Linux, kernel 2.6.17. That's very interesting. I hadn't read up on that, because I though

Re: Loading at startup to use shared memory

2006-11-07 Thread Kjetil Kjernsmo
On Monday 06 November 2006 19:03, Jonathan Vanasco wrote: > i've found the reports of shared/unshared memory to be completely   > useless mmm, OK. > the only way i've been able to  bench memory usage is to run TOP in a >   terminal, and then kill/start apaches with new min_children > settings, to

Re: Loading at startup to use shared memory

2006-11-06 Thread Jonathan Vanasco
i've found the reports of shared/unshared memory to be completely useless the only way i've been able to bench memory usage is to run TOP in a terminal, and then kill/start apaches with new min_children settings, to find out the cost of the base memory , + each child. then make 100-500

Re: Loading at startup to use shared memory

2006-11-06 Thread Torsten Foertsch
On Monday 06 November 2006 17:48, Kjetil Kjernsmo wrote: > I'm working on improving the scalability and performance of our app. It > is rather bad, and I noticed that not many minutes after restart, the > amount of shared memory is down to 10% of the total memory (and I'm at > least at 1/3 on my ho

Loading at startup to use shared memory

2006-11-06 Thread Kjetil Kjernsmo
Hi all! I'm working on improving the scalability and performance of our app. It is rather bad, and I noticed that not many minutes after restart, the amount of shared memory is down to 10% of the total memory (and I'm at least at 1/3 on my home Axkit::App::TABOO), and besides, it is bad from t