04:45:06 up 54 days, 13:44, 3 users, load average: 0.45, 0.38, 0.53<br>78 processes: 77 sleeping, 1 running, 0 zombie, 0 stopped<br>CPU states: cpu user nice system irq softirq iowait idle<br> total
10.0% 0.0% 3.6% 0.4% 1.6% 7.6% 376.0%<br> cpu00 7.5% 0.0% 2.6% 0.4% 1.9% 2.4% 84.8%<br> cpu01 0.0% 0.0% 0.2% 0.0% 0.0% 0.2% 99.5%<br> cpu02
1.9% 0.0% 0.4% 0.0% 0.0% 2.9% 94.6%<br> cpu03 0.2% 0.0% 0.0% 0.0% 0.0% 2.2% 97.5%<br>Mem: 3113604k av, 2726528k used, 387076k free, 0k shrd, 199908k buff<br> 1832240k active, 533308k inactive
<br>Swap: 4192956k av, 521156k used, 3671800k free 771504k cached<br><br> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND<br> 4523 memcache 16 0 243M 242M 432 S 3.9 7.9
1:54 1 memcached<br> 6881 root 16 0 36828 23M 5296 S 0.2 0.7 0:20 0 httpd<br> 6815 root 16 0 1768 692 524 S 0.0 0.0 0:00 2 syslogd<br> 6840 root 16 0 3272 1384 1160 S
0.0 0.0 0:01 2 sshd<br> 6854 qmails 16 0 1616 360 292 S 0.0 0.0 0:01 0 qmail-send<br> 6855 qmaild 16 0 1640 492 440 S 0.0 0.0 0:00 1 tcpserver<br> 6857 qmaill 16 0 1584 424 368 S
0.0 0.0 0:00 1 splogger<br> 6858 root 18 0 1584 300 244 S 0.0 0.0 0:00 2 qmail-lspawn<br> 6859 qmailr 16 0 1584 332 276 S 0.0 0.0 0:00 2 qmail-rspawn<br> 6860 qmailq 16 0 1576 316 260 S
0.0 0.0 0:00 3 qmail-clean<br> 6890 root 16 0 1632 600 528 S 0.0 0.0 0:00 0 crond<br><br><br>here's our top results. what other information will be helpful for you to help us?<br><br>Jeffrey<br><br>
<div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Marcel Holan</b> <<a href="mailto:mh@petamem.com">mh@petamem.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 Mon, Feb 06, 2006 at 05:11:06PM +0800, Jeffrey Ng wrote:<br>> I am the coworker of Swansun. We are currently running apache and memcache<br>> on the same machine. Maybe sometimes apache would use more RAM than it
<br>> should. Will that cause the problem swansun talked about? And how should we<br>> prevent that kind of problem when we have apache and memcache on the same<br>> VPS?<br><br>Without some more quantitative information, help is difficult. Of course, the
<br>machine has to have enough ram for both apache as well as memcached and<br>evtl. other processes running there. by forcing it to swap, all benefits from<br>a fast RAM-retrieval (of precomputed data) are gone.<br><br>Never forget, there's almost always a space/speed tradeoff.
<br><br>--<br> best regards<br> Marcel Holan<br><br> project manager R&D<br>+----------------------------------------------------------------------------+<br> PetaMem s.r.o., Ocelarska 1, 190 00 Praha, Czech Republic -
<a href="http://www.petamem.com">www.petamem.com</a><br></blockquote></div><br>