tronic wrote:
Can you post the output of:
Code:
# iostat 1 90
# free
# ps -e -o pid,cmd,%mem,rss,trs,sz,vsz
# uptime
Do that for both when the system is running normally, and then again while the system is at a crawl.
Does it slow down at predictable times of the day? Like midnight? Top of the hour (i.e. 7:00, 8:00, etc)?
How are you detecting the system is running really slowly? What commands and tools (and output) are you using to determine that?
iostat is from the sysstat utilities, which is from:
http://perso.wanadoo.fr/sebastien.godard/You posted used/free/total memory numbers, but you're missing something very important -- buffer and cached memory information.
Since you're not touching swap at all, it doesn't sound like normal memory starvation issues. Perhaps CPU, network I/O, or disk I/O issues when things are behaving poorly?
Linux's memory scheme is indeed to use as much memory as possible for buffering/caching
BUT when apps asks for memory, Linux will take away buffered/cached memory and give it to the application for use. It's a pretty good arrangement.
Also, memory numbers can be confusing sometimes.
Some tools will report VSZ -- total size of the virtual address space allocated, which is not the same as amount of memory actually "used" (RSS).
My concern is not avail RAM per se, but the fact that SWAP
usage remains at 0% regardless of the load I put on the server.
I find it strange as I have compared to several like boxes as well
as another similarly configured Linode host and all have an
active SWAP usage regardless of server load.
I realize I can crank down the RAM profile apache uses but
with server load at next to nothing apache should not be so
unresponsive...Thoughts?
I'll grab the iostat tools asap.
It's crawling now and here is some info.
# free
total used free shared buffers cached
Mem: 91416 88688 2728 0 34788 33728
-/+ buffers/cache: 20172 71244
Swap: 263160 0 263160
# ps -e -o pid,cmd,%mem,rss,trs,sz,vsz
PID CMD %MEM RSS TRS SZ VSZ
1 init [3] 0.5 504 23 347 1388
2 [keventd] 0.0 0 0 0 0
3 [ksoftirqd_CPU0] 0.0 0 0 0 0
4 [kswapd] 0.0 0 0 0 0
5 [bdflush] 0.0 0 0 0 0
6 [kupdated] 0.0 0 0 0 0
7 [jfsIO] 0.0 0 0 0 0
8 [jfsCommit] 0.0 0 0 0 0
9 [jfsSync] 0.0 0 0 0 0
10 [xfsbufd] 0.0 0 0 0 0
11 [xfslogd/0] 0.0 0 0 0 0
12 [xfsdatad/0] 0.0 0 0 0 0
13 [mdrecoveryd] 0.0 0 0 0 0
14 [kjournald] 0.0 0 0 0 0
815 /sbin/dhclient - 1.0 992 314 498 1992
865 syslogd -m 0 0.7 680 24 389 1556
869 klogd -x 0.5 460 18 347 1388
914 /usr/sbin/sshd 1.6 1528 265 880 3520
924 xinetd -stayaliv 0.9 860 129 512 2048
934 /usr/sbin/httpd 9.1 8392 289 4822 19288
943 crond 0.6 600 19 360 1440
961 /usr/sbin/atd 0.5 548 12 357 1428
995 /usr/bin/nagios 3.7 3416 262 1776 7104
1001 /sbin/mingetty t 0.4 416 6 342 1368
1002 /usr/sbin/httpd 9.7 8904 289 4871 19484
1003 /usr/sbin/httpd 9.6 8860 289 4861 19444
1004 /usr/sbin/httpd 9.6 8864 289 4861 19444
1005 /usr/sbin/httpd 9.7 8896 289 4856 19424
1006 /usr/sbin/httpd 9.6 8856 289 4859 19436
1007 /usr/sbin/httpd 9.6 8848 289 4861 19444
1008 /usr/sbin/httpd 9.6 8852 289 4857 19428
1009 /usr/sbin/httpd 9.6 8848 289 4857 19428
11105 /usr/sbin/sshd 2.2 2012 265 1692 6768
11110 /usr/sbin/sshd 2.4 2228 265 1701 6804
11111 -bash 1.5 1376 588 1075 4300
11142 su - 1.0 972 16 1027 4108
11143 -bash 1.5 1384 588 1077 4308
11386 ps -e -o pid,cmd 0.7 684 66 660 2640
# uptime
13:16:35 up 1 day, 5 min, 1 user, load average: 0.00, 0.00, 0.00