<br><br><div><span class="gmail_quote">On 2/9/07, <b class="gmail_sendername">Perrin Harkins</b> <<a href="mailto:pharkins@gmail.com">pharkins@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2/8/07, Jeffrey Ng <<a href="mailto:jeffreyn@gmail.com">jeffreyn@gmail.com</a>> wrote:<br>> I have read practical mod_perl. I tried to preload many of our modules in<br>> startup.pl. But the shared memory value doesnt change at all. Also, doesnt
<br>> 5.7M shared memory usage sound too small comparing to the 92.6M total size?<br><br>You're not looking at the right thing there. This is not actual<br>shared memory, but rather copy-on-write sharing. It will never show
<br>in your SHARE section. On versions of Linux with a 2.6 kernel, you<br>can use the techniques in Apache::SizeLimit to get a sesne of how much<br>sharing is going. This doesn't work with older kernels.<br><br>A reliable way to tell if your sharing is improved is to start up
<br>apache without preloading and look at the available memory from<br>"free", and then put in the preloading and restart apache and check it<br>again. You should have more free memory after preloading, allowing
<br>you to run more processes.</blockquote><div><br>when i run this "free" test, should i run it on the live server, or on a test server with single process apache mode?<br><br>here's the result on a live server:
<br><br> total used free shared buffers cached<br>Mem: 4150972 2654016 1496956 0 27548 1313344<br>-/+ buffers/cache: 1313124 2837848<br>Swap: 8385912 6920 8378992
<br><br><br>and here's the top results on one of the server:<br><br>top - 14:21:55 up 144 days, 9:30, 0 users, load average: 19.30, 18.65, 12.27<br>Tasks: 87 total, 1 running, 86 sleeping, 0 stopped, 0 zombie
<br>Cpu(s): 69.6% us, 1.3% sy, 0.0% ni, 27.7% id, 0.0% wa, 0.2% hi, 1.2% si<br>Mem: 4150972k total, 2623968k used, 1527004k free, 27380k buffers<br>Swap: 8385912k total, 6920k used, 8378992k free, 1312832k cached
<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br>26343 apache 15 0 97196 83m 6236 S 10.0 2.1 0:08.69 httpd<br>26340 apache 15 0 94740 81m 5896 S 7.8 2.0 0:07.62 httpd<br>26315 apache 15 0 95552 81m 5896 S
7.4 2.0 0:08.31 httpd<br>26326 apache 15 0 94836 81m 5868 S 7.4 2.0 0:08.17 httpd<br>26371 apache 15 0 95496 81m 5872 S 7.4 2.0 0:08.21 httpd<br><br><br>I set the maxserver as 60.<br>Our CPU load is extremely high. But the actual RAM usage is not high at all. we are using only 260 gig out of 400 gig. From our top results, does it look like the memory usage of our processes is the bottleneck?
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">- Perrin<br><br>_______________________________________________<br>List: <a href="mailto:Catalyst@lists.rawmode.org">
Catalyst@lists.rawmode.org</a><br>Listinfo: <a href="http://lists.rawmode.org/mailman/listinfo/catalyst">http://lists.rawmode.org/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.rawmode.org/">
http://www.mail-archive.com/catalyst@lists.rawmode.org/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a><br></blockquote></div><br><br clear="all"><br>-- <br>Jeffrey Ng<br>CEO, <a href="http://Zorpia.com">
Zorpia.com</a>