Hallo,
ich habe kürzlich einen Server gemietet mit den folgenden Systemdaten:
AMD Athlon XP 3000+
1 GB RAM
160 GB schnelle HDD
SuSE 9.3 Mini (Kernel Update durchgeführt)
Confixx 3
Darauf habe ich 2 CS:S-Server installiert, sowie einen Teamspeak-Server.
Wenn ich top starte, ist mir aufgefallen, dass der Ram Speicher fast 100%ig ausgelastet ist:
Code
linux:~ # top
top - 13:29:03 up 5 days, 17:06, 2 users, load average: 0.01, 0.02, 0.01
Tasks: 77 total, 2 running, 74 sleeping, 0 stopped, 1 zombie
Cpu(s): 10.3% us, 2.3% sy, 0.0% ni, 87.3% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1019908k total, 982320k used, 37588k free, 98316k buffers
Swap: 987956k total, 0k used, 987956k free, 619988k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 16 0 680 248 216 S 0.0 0.0 0:01.35 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.31 events/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
19 root 10 -5 0 0 0 S 0.0 0.0 0:00.34 kacpid
93 root 10 -5 0 0 0 S 0.0 0.0 0:00.08 kblockd/0
133 root 15 0 0 0 0 S 0.0 0.0 0:00.01 pdflush
134 root 15 0 0 0 0 S 0.0 0.0 0:05.97 pdflush
136 root 18 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
135 root 15 0 0 0 0 S 0.0 0.0 0:00.60 kswapd0
729 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
1032 root 10 -5 0 0 0 S 0.0 0.0 0:00.34 reiserfs/0
2006 root 12 -4 1468 600 408 S 0.0 0.1 0:00.12 udevd
2041 root 24 0 0 0 0 S 0.0 0.0 0:00.00 khpsbpkt
2517 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
2964 messageb 15 0 3356 1472 1260 S 0.0 0.1 0:00.00 dbus-daemon-1
3535 root 21 0 1496 468 404 S 0.0 0.0 0:00.00 resmgrd
3572 root 16 0 1852 896 700 S 0.0 0.1 0:00.29 syslog-ng
3576 root 16 0 1600 588 400 S 0.0 0.1 0:00.00 klogd
3620 nobody 25 0 1508 472 396 S 0.0 0.0 0:00.00 portmap
4170 root 14 -2 1456 432 312 S 0.0 0.0 0:00.00 hwscand
5177 root 16 0 8732 1104 836 S 0.0 0.1 0:05.53 nscd
5282 root 16 0 4696 1880 1536 S 0.0 0.2 0:05.64 sshd
5287 root 16 0 1468 528 456 S 0.0 0.1 0:00.00 acpid
5386 root 16 0 2868 1268 1124 S 0.0 0.1 0:00.00 powersaved
5387 root 16 0 4736 1464 1168 S 0.0 0.1 0:00.03 master
5412 root 15 0 1752 616 532 S 0.0 0.1 0:00.26 cron
5432 root 16 0 3808 2444 1588 S 0.0 0.2 0:00.54 hald
5434 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5435 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5436 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5437 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5438 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5439 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
7301 root 24 0 2704 1244 1016 S 0.0 0.1 0:00.00 mysqld_safe
7338 mysql 16 0 60496 17m 4136 S 0.0 1.7 0:22.11 mysqld
9124 root 16 0 38376 16m 8976 S 0.0 1.6 0:02.68 httpd2-prefork
9638 root 15 0 1760 632 540 S 0.0 0.1 0:00.00 cron
9639 root 16 0 0 0 0 Z 0.0 0.0 0:00.44 confixx_counter <defunct>
9694 named 23 0 30552 2936 2096 S 0.0 0.3 0:00.01 named
9816 root 18 0 4732 1384 1128 S 0.0 0.1 0:00.00 sendmail
9817 root 19 0 4712 1356 1100 S 0.0 0.1 0:00.00 postdrop
9844 root 19 0 26160 22m 2648 S 0.0 2.3 0:00.80 spamd
9857 root 17 0 26160 22m 2648 S 0.0 2.3 0:00.00 spamd
9858 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9859 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9860 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9861 root 19 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
18260 root 16 0 2292 876 732 S 0.0 0.1 0:00.01 xinetd
19618 root 16 0 3276 1504 1264 S 0.0 0.1 0:00.11 pipelog.pl
19621 wwwrun 16 0 40664 19m 9844 S 0.0 1.9 0:01.43 httpd2-prefork
19622 wwwrun 16 0 40304 18m 9808 S 0.0 1.9 0:01.29 httpd2-prefork
19623 wwwrun 16 0 40608 19m 9840 S 0.0 1.9 0:01.44 httpd2-prefork
linux:~ #
Alles anzeigen
Wenn ich die Gameserver sowie Teamspeak beende sieht top folgenderweise aus:
Code
# top
top - 13:33:07 up 5 days, 17:10, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 70 total, 2 running, 67 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1019908k total, 882664k used, 137244k free, 98316k buffers
Swap: 987956k total, 0k used, 987956k free, 619980k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 16 0 680 248 216 S 0.0 0.0 0:01.35 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.31 events/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
19 root 10 -5 0 0 0 S 0.0 0.0 0:00.34 kacpid
93 root 10 -5 0 0 0 S 0.0 0.0 0:00.08 kblockd/0
133 root 15 0 0 0 0 S 0.0 0.0 0:00.01 pdflush
134 root 15 0 0 0 0 S 0.0 0.0 0:05.97 pdflush
136 root 18 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
135 root 15 0 0 0 0 S 0.0 0.0 0:00.60 kswapd0
729 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
1032 root 10 -5 0 0 0 S 0.0 0.0 0:00.34 reiserfs/0
2006 root 12 -4 1468 600 408 S 0.0 0.1 0:00.12 udevd
2041 root 24 0 0 0 0 S 0.0 0.0 0:00.00 khpsbpkt
2517 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
2964 messageb 15 0 3356 1472 1260 S 0.0 0.1 0:00.00 dbus-daemon-1
3535 root 21 0 1496 468 404 S 0.0 0.0 0:00.00 resmgrd
3572 root 16 0 1852 896 700 S 0.0 0.1 0:00.29 syslog-ng
3576 root 16 0 1600 588 400 S 0.0 0.1 0:00.00 klogd
3620 nobody 25 0 1508 472 396 S 0.0 0.0 0:00.00 portmap
4170 root 14 -2 1456 432 312 S 0.0 0.0 0:00.00 hwscand
5177 root 16 0 8732 1104 836 S 0.0 0.1 0:05.53 nscd
5282 root 16 0 4696 1880 1536 S 0.0 0.2 0:05.64 sshd
5287 root 16 0 1468 528 456 S 0.0 0.1 0:00.00 acpid
5386 root 16 0 2868 1268 1124 S 0.0 0.1 0:00.00 powersaved
5387 root 16 0 4736 1464 1168 S 0.0 0.1 0:00.03 master
5412 root 15 0 1752 616 532 S 0.0 0.1 0:00.26 cron
5432 root 16 0 3808 2444 1588 S 0.0 0.2 0:00.54 hald
5434 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5435 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5436 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5437 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5438 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
5439 root 18 0 1904 628 560 S 0.0 0.1 0:00.00 mingetty
7301 root 24 0 2704 1244 1016 S 0.0 0.1 0:00.00 mysqld_safe
7338 mysql 16 0 60496 17m 4136 S 0.0 1.7 0:22.12 mysqld
9124 root 16 0 38376 16m 8976 S 0.0 1.6 0:02.68 httpd2-prefork
9638 root 15 0 1760 632 540 S 0.0 0.1 0:00.00 cron
9639 root 16 0 0 0 0 Z 0.0 0.0 0:00.44 confixx_counter <defunct>
9694 named 23 0 30552 2936 2096 S 0.0 0.3 0:00.01 named
9816 root 18 0 4732 1384 1128 S 0.0 0.1 0:00.00 sendmail
9817 root 19 0 4712 1356 1100 S 0.0 0.1 0:00.00 postdrop
9844 root 19 0 26160 22m 2648 S 0.0 2.3 0:00.80 spamd
9857 root 17 0 26160 22m 2648 S 0.0 2.3 0:00.00 spamd
9858 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9859 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9860 root 17 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
9861 root 19 0 26160 22m 2652 S 0.0 2.3 0:00.00 spamd
18260 root 16 0 2292 876 732 S 0.0 0.1 0:00.01 xinetd
19618 root 16 0 3276 1504 1264 S 0.0 0.1 0:00.11 pipelog.pl
19621 wwwrun 16 0 40664 19m 9844 S 0.0 1.9 0:01.43 httpd2-prefork
19622 wwwrun 16 0 40304 18m 9808 S 0.0 1.9 0:01.29 httpd2-prefork
19623 wwwrun 16 0 40608 19m 9840 S 0.0 1.9 0:01.44 httpd2-prefork
#
Alles anzeigen
Was bewirkt die Große Ram-Auslastung? Wie kann ich das beheben?