<br><br><div><span class="gmail_quote">On 2/9/07, <b class="gmail_sendername">Perrin Harkins</b> &lt;<a href="mailto:pharkins@gmail.com">pharkins@gmail.com</a>&gt; 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 &lt;<a href="mailto:jeffreyn@gmail.com">jeffreyn@gmail.com</a>&gt; wrote:<br>&gt; I have read practical mod_perl. I tried to preload many of our modules in<br>&gt; startup.pl. But the shared memory value doesnt change at all. Also, doesnt
<br>&gt; 5.7M shared memory usage sound too small comparing to the 92.6M total size?<br><br>You&#39;re not looking at the right thing there.&nbsp;&nbsp;This is not actual<br>shared memory, but rather copy-on-write sharing.&nbsp;&nbsp;It will never show
<br>in your SHARE section.&nbsp;&nbsp;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.&nbsp;&nbsp;This doesn&#39;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>&quot;free&quot;, and then put in the preloading and restart apache and check it<br>again.&nbsp;&nbsp;You should have more free memory after preloading, allowing
<br>you to run more processes.</blockquote><div><br>when i run this &quot;free&quot; test, should i run it on the live server, or on a test server with single process apache mode?<br><br>here&#39;s the result on a live server:
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp;&nbsp; shared&nbsp;&nbsp;&nbsp; buffers&nbsp;&nbsp;&nbsp;&nbsp; cached<br>Mem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4150972&nbsp;&nbsp;&nbsp; 2654016&nbsp;&nbsp;&nbsp; 1496956&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 27548&nbsp;&nbsp;&nbsp; 1313344<br>-/+ buffers/cache:&nbsp;&nbsp;&nbsp; 1313124&nbsp;&nbsp;&nbsp; 2837848<br>Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8385912&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6920&nbsp;&nbsp;&nbsp; 8378992
<br><br><br>and here&#39;s the top results on one of the server:<br><br>top - 14:21:55 up 144 days,&nbsp; 9:30,&nbsp; 0 users,&nbsp; load average: 19.30, 18.65, 12.27<br>Tasks:&nbsp; 87 total,&nbsp;&nbsp; 1 running,&nbsp; 86 sleeping,&nbsp;&nbsp; 0 stopped,&nbsp;&nbsp; 0 zombie
<br>Cpu(s): 69.6% us,&nbsp; 1.3% sy,&nbsp; 0.0% ni, 27.7% id,&nbsp; 0.0% wa,&nbsp; 0.2% hi,&nbsp; 1.2% si<br>Mem:&nbsp;&nbsp; 4150972k total,&nbsp; 2623968k used,&nbsp; 1527004k free,&nbsp;&nbsp;&nbsp; 27380k buffers<br>Swap:&nbsp; 8385912k total,&nbsp;&nbsp;&nbsp;&nbsp; 6920k used,&nbsp; 8378992k free,&nbsp; 1312832k cached
<br><br>&nbsp; PID USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp; COMMAND<br>26343 apache&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0 97196&nbsp; 83m 6236 S 10.0&nbsp; 2.1&nbsp;&nbsp; 0:08.69 httpd<br>26340 apache&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0 94740&nbsp; 81m 5896 S&nbsp; 7.8&nbsp; 2.0&nbsp;&nbsp; 0:07.62 httpd<br>26315 apache&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0 95552&nbsp; 81m 5896 S&nbsp; 
7.4&nbsp; 2.0&nbsp;&nbsp; 0:08.31 httpd<br>26326 apache&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0 94836&nbsp; 81m 5868 S&nbsp; 7.4&nbsp; 2.0&nbsp;&nbsp; 0:08.17 httpd<br>26371 apache&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp; 0 95496&nbsp; 81m 5872 S&nbsp; 7.4&nbsp; 2.0&nbsp;&nbsp; 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>