3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
Post Reply
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Hallo,
ich habe ein Server mit dieser Hardware:
AMD Opteron 148
3 GB DDR RAM
2x200GB SATA Raid1 Festplattensystem

SuSe 9.3 + Confixx

Die SWAP ist aber nur 2 GB groß.

Auf dem Server ist nur eine Seite mit Funvideos (Die Videos liegen teileweisse wo anders)

Der Seiten aufbau ist nach ca. 3 Stunden eines Server Neustart langsam. Der RAM ist denn 98-100% Ausgelasten und es wird 2.4GB gechached.

Die Seite lief vorher aufen einen alten Athlon mit 512MB RAM besser als wie auf dem. Ich habe die die my.cnf und die httpd.conf und server-tuning.conf schon optimiert nur leider mit nicht viel wirkung.
Ich habe das gefühl das SuSe zu viel von den Videos chached kann man das unterbinden?

Danke für eure Hilfe.
mattiass
Userprojekt
Userprojekt
Posts: 608
Joined: 2005-12-16 17:57
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by mattiass »

Morpheus wrote:
Der Seiten aufbau ist nach ca. 3 Stunden eines Server Neustart langsam. Der RAM ist denn 98-100% Ausgelasten und es wird 2.4GB gechached.

Ich habe das gefühl das SuSe zu viel von den Videos chached kann man das unterbinden?
Man kann eigentlich nicht zuviel cachen. Interessant wäre es, zu wissen, ob dafür andere relevante Prozesse teilweise geswappt werden müssen...

Ich vermute das Problem aber an anderer Stelle. Verwendest Du exakt das gleiche Setup wie auf der letzten Maschine, d.h. Du hast die Installation mit "rsync" rübergeschoben und dann ggf. einen neuen Kernel und/oder eine Konfiguration für die Kernelmodule gebaut?
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Also das der alte server war nur von den Apache und MySQL Configs gleich. Das ist hier ein ganz anderes Systems
djcrackman
Posts: 207
Joined: 2005-06-02 11:58
Contact:
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by djcrackman »

Was geben folgende Befehle aus? (Bitte die Ergebnisse in

Code: Select all

-Tags setzen).

free -m
ps auxf
df -h
cat /proc/cpuinfo
uname -rv
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

free -m

Code: Select all

             total       used       free     shared    buffers     cached
Mem:          3010       2896        114          0         22       2601
-/+ buffers/cache:        272       2738
Swap:         2055          0       2055
ps auxf

Code: Select all

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    684   248 ?        S    Sep18   0:00 init [3]
root         2  0.0  0.0      0     0 ?        S    Sep18   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Sep18   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Sep18   0:00 [events/0]
root         5  0.0  0.0      0     0 ?        S<   Sep18   0:00 [khelper]
root         6  0.0  0.0      0     0 ?        S<   Sep18   0:00 [kthread]
root         8  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [kblockd/0]
root        62  0.0  0.0      0     0 ?        S    Sep18   0:00  _ [pdflush]
root        63  0.0  0.0      0     0 ?        S    Sep18   0:02  _ [pdflush]
root        65  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [aio/0]
root       274  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [kseriod]
root       639  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [ata/0]
root       646  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [scsi_eh_0]
root       647  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [scsi_eh_1]
root       830  0.0  0.0      0     0 ?        S<   Sep18   0:09  _ [md0_raid1]
root      1821  0.0  0.0      0     0 ?        S<   Sep18   0:00  _ [khubd]
root        64  0.0  0.0      0     0 ?        S    Sep18   0:02 [kswapd0]
root       838  0.0  0.0      0     0 ?        S    Sep18   0:09 [kjournald]
root      1352  0.0  0.0   1468   540 ?        S<s  Sep18   0:00 /sbin/udevd -d
root      2168  0.0  0.0   1468   456 ?        S<   Sep18   0:00 [hwscand]
root      3262  0.0  0.0   1464   440 ?        S<   Sep18   0:00 [hwscand]
root      4143  0.0  0.0   2076  1040 ?        S    Sep18   0:02 /sbin/mdadm -F
root      4170  0.0  0.0   1496   268 ?        Ss   Sep18   0:00 /sbin/resmgrd
root      4171  0.0  0.0   1504   448 ?        Ss   Sep18   0:00 /sbin/startpar
root      4434  0.0  0.0   4064   796 ?        Ss   Sep18   0:00 /usr/sbin/sasla
root      4482  0.0  0.0   4064   480 ?        S    Sep18   0:00  _ /usr/sbin/s
root      4483  0.0  0.0   4064   436 ?        S    Sep18   0:00  _ /usr/sbin/s
root      4484  0.0  0.0   4064   436 ?        S    Sep18   0:00  _ /usr/sbin/s
root      4485  0.0  0.0   4064   436 ?        S    Sep18   0:00  _ /usr/sbin/s
root      4435  0.0  0.0   2444  1148 ?        S    Sep18   0:00 /bin/sh /usr/bi
mysql     4526  2.3  0.7 122128 22436 ?        Sl   Sep18  31:37  _ /usr/sbin/m
root      4447  0.0  0.0   1632   676 ?        Ss   Sep18   0:00 /sbin/syslogd -
root      4452  0.0  0.0   1608   512 ?        Ss   Sep18   0:00 /sbin/klogd -c
root      4497  0.0  0.0   4600  1192 ?        Ss   Sep18   0:01 /usr/sbin/sshd
root     16292  0.0  0.0   8280  2360 ?        Ss   14:14   0:00  _ sshd: root@
root     16311  0.0  0.0   3044  1720 pts/0    Ss   14:14   0:00      _ -bash
root     16563  0.0  0.0   2868   872 pts/0    R+   14:15   0:00          _ ps
root      4528  0.0  0.0   1468   372 ?        S    Sep18   0:00 /usr/sbin/couri
root      4529  0.0  0.0   1772   492 ?        S    Sep18   0:00  _ /usr/lib/co
root      4542  0.0  0.0   1772   260 ?        S    Sep18   0:00      _ /usr/li
root      4543  0.0  0.0   1772   260 ?        S    Sep18   0:00      _ /usr/li
root      4544  0.0  0.0   1772   260 ?        S    Sep18   0:00      _ /usr/li
root      4545  0.0  0.0   1772   260 ?        S    Sep18   0:00      _ /usr/li
root      4546  0.0  0.0   1772   260 ?        S    Sep18   0:00      _ /usr/li
root      4531  0.0  0.0   2152   872 ?        Ss   Sep18   0:00 /usr/sbin/xinet
root      4557  0.0  0.0   1560   468 ?        S    Sep18   0:00 /usr/lib/courie
root      4561  0.0  0.0   1464   432 ?        S    Sep18   0:00 /usr/sbin/couri
root      4580  0.0  0.0   1560   452 ?        S    Sep18   0:00 /usr/lib/courie
root      4584  0.0  0.0   1336   296 ?        S    Sep18   0:00 /usr/sbin/couri
root      4608  0.0  0.0   1560   464 ?        S    Sep18   0:00 /usr/lib/courie
root      4613  0.0  0.0   1468   436 ?        S    Sep18   0:00 /usr/sbin/couri
root      4681  0.0  0.0   1556   448 ?        S    Sep18   0:00 /usr/lib/courie
root      4691  0.0  0.0   1336   296 ?        S    Sep18   0:00 /usr/sbin/couri
root      4696  0.0  0.0  13876  1436 ?        Ssl  Sep18   0:02 /usr/sbin/nscd
root      4842  0.0  0.0   4740  1472 ?        Ss   Sep18   0:00 /usr/lib/postfi
postfix   4860  0.0  0.0   4780  1468 ?        S    Sep18   0:00  _ qmgr -l -t
postfix   5334  0.0  0.0   4740  1436 ?        S    Sep18   0:00  _ tlsmgr -l -
postfix   3679  0.0  0.0   4740  1404 ?        S    12:53   0:00  _ pickup -l -
root      4866  0.0  0.0   1756   516 ?        Ss   Sep18   0:00 /usr/sbin/cron
root      4869  0.0  0.0   1908   632 tty1     Ss+  Sep18   0:00 /sbin/mingetty
root      4870  0.0  0.0   1908   632 tty2     Ss+  Sep18   0:00 /sbin/mingetty
root      4871  0.0  0.0   1908   632 tty3     Ss+  Sep18   0:00 /sbin/mingetty
root      4872  0.0  0.0   1908   632 tty4     Ss+  Sep18   0:00 /sbin/mingetty
root      4873  0.0  0.0   1912   636 tty5     Ss+  Sep18   0:00 /sbin/mingetty
root      4874  0.0  0.0   1908   632 tty6     Ss+  Sep18   0:00 /sbin/mingetty
root      5155  0.0  0.4  33600 12660 ?        Ss   Sep18   0:06 /usr/sbin/httpd
root      5959  0.1  0.0   3280  1456 ?        S    09:22   0:23  _ /usr/bin/pe
wwwrun   12707  0.0  0.3  34360 10260 ?        S    13:51   0:00  _ /usr/sbin/h
wwwrun   13060  0.0  0.3  34260 10156 ?        S    13:54   0:00  _ /usr/sbin/h
wwwrun   13086  0.0  0.3  34260 10132 ?        S    13:54   0:00  _ /usr/sbin/h
wwwrun   13166  0.0  0.3  34272 10252 ?        S    13:54   0:00  _ /usr/sbin/h
wwwrun   13593  0.0  0.3  34260 10116 ?        S    13:57   0:00  _ /usr/sbin/h
wwwrun   13810  0.0  0.3  34272 10252 ?        S    13:58   0:00  _ /usr/sbin/h
wwwrun   14068  0.0  0.3  34280 10148 ?        S    14:00   0:00  _ /usr/sbin/h
wwwrun   14243  0.0  0.3  34268 10248 ?        S    14:02   0:00  _ /usr/sbin/h
wwwrun   14274  0.0  0.3  34260 10084 ?        S    14:02   0:00  _ /usr/sbin/h
wwwrun   14280  0.0  0.3  34272 10128 ?        S    14:02   0:00  _ /usr/sbin/h
wwwrun   14303  0.0  0.3  34232 10068 ?        S    14:02   0:00  _ /usr/sbin/h
wwwrun   14440  0.0  0.3  34276 10064 ?        S    14:03   0:00  _ /usr/sbin/h
wwwrun   14444  0.0  0.3  34356 10256 ?        S    14:03   0:00  _ /usr/sbin/h
wwwrun   14514  0.0  0.3  34260 10076 ?        S    14:03   0:00  _ /usr/sbin/h
wwwrun   14516  0.0  0.3  34360 10244 ?        S    14:03   0:00  _ /usr/sbin/h
wwwrun   14518  0.0  0.3  34264 10124 ?        S    14:03   0:00  _ /usr/sbin/h
wwwrun   14695  0.0  0.3  34260 10124 ?        S    14:04   0:00  _ /usr/sbin/h
wwwrun   14772  0.0  0.3  34260 10128 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14785  0.0  0.3  34260 10100 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14791  0.0  0.3  34260 10116 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14793  0.0  0.3  34260 10128 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14796  0.0  0.3  34340 10248 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14797  0.0  0.3  34260 10124 ?        S    14:05   0:00  _ /usr/sbin/h
wwwrun   14924  0.0  0.3  34272 10064 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   14929  0.0  0.3  34280 10252 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   14941  0.0  0.3  34280 10132 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   14944  0.0  0.3  34280 10024 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   14950  0.0  0.3  34272 10172 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   15041  0.0  0.3  34360 10260 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   15051  0.0  0.3  34336 10236 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   15054  0.0  0.3  34232 10020 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   15057  0.0  0.3  34372 10252 ?        S    14:06   0:00  _ /usr/sbin/h
wwwrun   15107  0.0  0.3  34340 10260 ?        S    14:07   0:00  _ /usr/sbin/h
wwwrun   15109  0.0  0.3  34260 10104 ?        S    14:07   0:00  _ /usr/sbin/h
wwwrun   15113  0.0  0.3  34336 10264 ?        S    14:07   0:00  _ /usr/sbin/h
wwwrun   15116  0.0  0.3  34360 10268 ?        S    14:07   0:00  _ /usr/sbin/h
wwwrun   15271  0.0  0.3  34260 10184 ?        S    14:08   0:00  _ /usr/sbin/h
wwwrun   15332  0.0  0.3  34260 10104 ?        S    14:08   0:00  _ /usr/sbin/h
wwwrun   15335  0.0  0.3  34280 10088 ?        S    14:08   0:00  _ /usr/sbin/h
wwwrun   15394  0.0  0.3  34180 10052 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15399  0.0  0.3  34224 10124 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15404  0.0  0.1  33600  6016 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15405  0.0  0.3  34272 10252 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15408  0.0  0.3  34280 10132 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15411  0.0  0.3  34340 10244 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15483  0.0  0.3  34280 10240 ?        S    14:09   0:00  _ /usr/sbin/h
wwwrun   15578  0.0  0.3  34280 10120 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15635  0.0  0.3  34280 10108 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15641  0.0  0.3  34256 10144 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15646  0.0  0.3  34260 10156 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15653  0.0  0.3  34172  9900 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15655  0.0  0.3  34260 10060 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15656  0.0  0.3  34340 10232 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15673  0.0  0.3  34260 10096 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15674  0.0  0.3  34344 10216 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15675  0.0  0.3  34272 10112 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15676  0.0  0.3  34272 10152 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15686  0.0  0.3  34260 10232 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15687  0.0  0.3  34176 10036 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15689  0.0  0.3  34232 10040 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15691  0.0  0.1  33600  5984 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15692  0.0  0.1  33600  5984 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15693  0.0  0.3  34232 10012 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15695  0.0  0.3  34260 10212 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15698  0.0  0.3  34336 10256 ?        S    14:10   0:00  _ /usr/sbin/h
wwwrun   15717  0.0  0.3  34180 10080 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15756  0.0  0.3  34280 10140 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15762  0.0  0.3  34280 10060 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15763  0.0  0.3  34180 10092 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15765  0.0  0.3  34232 10088 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15788  0.0  0.3  34180 10016 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15789  0.0  0.3  34168 10040 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15793  0.0  0.3  34180 10052 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15849  0.0  0.3  34280 10136 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15862  0.0  0.3  34232 10072 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15879  0.0  0.3  34264 10124 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15880  0.0  0.3  34260 10072 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15885  0.0  0.3  34180 10076 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15887  0.0  0.3  34280 10056 ?        S    14:11   0:00  _ /usr/sbin/h
wwwrun   15924  0.0  0.1  33600  6024 ?        S    14:12   0:00  _ /usr/sbin/h
wwwrun   15981  0.0  0.3  34264 10108 ?        S    14:12   0:00  _ /usr/sbin/h
wwwrun   15994  0.0  0.3  34224 10060 ?        S    14:12   0:00  _ /usr/sbin/h
wwwrun   16063  0.0  0.3  34272 10076 ?        S    14:12   0:00  _ /usr/sbin/h
wwwrun   16070  0.0  0.3  34180 10052 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16074  0.0  0.1  33600  6020 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16077  0.0  0.1  33600  5984 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16079  0.0  0.3  34232 10100 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16080  0.0  0.3  34304 10200 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16081  0.0  0.3  34260 10120 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16093  0.0  0.3  34156  9728 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16100  0.0  0.3  34232 10004 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16137  0.0  0.3  34340 10176 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16166  0.0  0.1  33600  6020 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16176  0.0  0.3  34272 10084 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16230  0.1  0.3  34232 10096 ?        S    14:13   0:00  _ /usr/sbin/h
wwwrun   16334  0.1  0.3  34284 10052 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16336  0.0  0.3  34260 10040 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16341  0.0  0.3  34232 10012 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16345  0.1  0.3  34268 10036 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16348  0.1  0.3  34272 10068 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16352  0.1  0.3  34260 10044 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16353  0.1  0.3  34172 10068 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16354  0.1  0.3  34260 10052 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16355  0.0  0.1  33600  6028 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16357  0.0  0.1  33600  6004 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16358  0.1  0.3  34260 10052 ?        S    14:14   0:00  _ /usr/sbin/h
wwwrun   16437  0.1  0.3  34180 10036 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16442  0.2  0.3  34260 10032 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16443  0.0  0.1  33600  6020 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16446  0.0  0.1  33600  5988 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16448  0.0  0.1  33600  6024 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16449  0.0  0.1  33600  6012 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16450  0.0  0.1  33600  6016 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16451  0.1  0.3  34172 10040 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16452  0.1  0.3  34272 10060 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16453  0.1  0.3  34180 10044 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16454  0.2  0.3  34260 10056 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16455  0.0  0.1  33600  6016 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16456  0.1  0.3  34172 10076 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16457  0.0  0.1  33600  6012 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16467  0.0  0.1  33600  6020 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16470  0.0  0.1  33600  6008 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16471  0.1  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16474  0.1  0.3  34232 10008 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16475  0.2  0.3  34260 10048 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16476  0.1  0.3  34284 10100 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16477  0.0  0.1  33600  6016 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16481  0.0  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16482  0.1  0.3  34224 10004 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16484  0.1  0.3  34260 10052 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16485  0.0  0.0      0     0 ?        Z    14:15   0:00  _
wwwrun   16486  0.1  0.3  34172  9996 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16487  0.1  0.3  34224 10064 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16488  0.2  0.3  34168 10032 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16491  0.0  0.1  33600  6008 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16492  0.0  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16493  0.1  0.3  34224 10000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16494  0.0  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16495  0.0  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16496  0.0  0.1  33600  6000 ?        S    14:15   0:00  _ /usr/sbin/h
wwwrun   16497  0.0  0.1  33600  6020 ?        S    14:15   0:00  _ /usr/sbin/h
df -h

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
/dev/md0              183G  8.2G  165G   5% /
tmpfs                 1.5G     0  1.5G   0% /dev/shm
cat /proc/cpuinfo

Code: Select all

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 39
model name      : AMD Opteron(tm) Processor 148
stepping        : 1
cpu MHz         : 2200.447
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm
bogomips        : 4403.07
uname -rv

Code: Select all

2.6.15-20060112174634-smp #1 SMP Thu Jan 12 17:46:34 UTC 2006
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by daemotron »

Also spontan würde ich sagen, dein httpd spawnt ein paar zu viele Threads... bzw. beendet nicht mehr benötigte einfach nicht und müllt so das System zu. Was für einen Webserver verwendest Du denn? Wenn Apache, welches Threading-Modell? Mit PHP, und wenn ja, über welche Schnittstelle?

Außerdem scheint dein mysql ganz schön hochtourig zu laufen... mal das slow query log ausgewertet?

HTH
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Jepp es läuft Apache und PHP 4.3.10 (Prefork)


Server Tuning

Code: Select all

## 

# the MPM (multiprocessing module) is not a dynamically loadable module in the
# sense of other modules. It is a compile time decision which one is used. We
# provide different apache2 MPM packages, containing different httpd2 binaries
# compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.

# prefork MPM
<IfModule prefork.c>
	# number of server processes to start
	StartServers         5
	# minimum number of server processes which are kept spare
	MinSpareServers      5
	# maximum number of server processes which are kept spare
	MaxSpareServers     10
	# highest possible MaxClients setting for the lifetime of the Apache process.
	ServerLimit        150
	# maximum number of server processes allowed to start
	MaxClients         150
	# maximum number of requests a server process serves
	MaxRequestsPerChild  0
</IfModule>

# worker MPM
<IfModule worker.c>
	# initial number of server processes to start
	StartServers         2
	# minimum number of worker threads which are kept spare
	MinSpareThreads     25
	# maximum number of worker threads which are kept spare
	MaxSpareThreads     75 
	# maximum number of simultaneous client connections
	MaxClients         150
	# constant number of worker threads in each server process
	ThreadsPerChild     25
	# maximum number of requests a server process serves
	MaxRequestsPerChild  0
</IfModule>

# leader MPM
<IfModule leader.c>
	# initial number of server processes to start
	StartServers         2
	# minimum number of worker threads which are kept spare
	MinSpareThreads     25
	# maximum number of worker threads which are kept spare
	MaxSpareThreads     75 
	# maximum number of simultaneous client connections
	MaxClients         150
	# constant number of worker threads in each server process
	ThreadsPerChild     25
	# maximum number of requests a server process serves
	MaxRequestsPerChild  0
</IfModule>

# perchild MPM
<IfModule perchild.c>
	# constant number of server processes
	NumServers           5
	# initial number of worker threads in each server process
	StartThreads         5
	# minimum number of worker threads which are kept spare
	MinSpareThreads      5
	# maximum number of worker threads which are kept spare
	MaxSpareThreads     10
	# maximum number of worker threads in each server process
	MaxThreadsPerChild  20
	# maximum number of connections per server process
	MaxRequestsPerChild  0

	AcceptMutex fcntl
</IfModule>

# metux MPM
<IfModule metuxmpm.c>
	# initial number of worker threads in each server process
	StartThreads          5
	# minimum number of worker threads which are kept spare
	MinSpareThreads       5
	# maximum number of worker threads which are kept spare
	MaxSpareThreads      10
	# maximum number of connections per server process
	MaxRequestsPerChild   0

	Multiplexer	"wwwrun"	"www"

</IfModule>


#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is
# used  to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
#
#EnableSendfile off


#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
djcrackman
Posts: 207
Joined: 2005-06-02 11:58
Contact:
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by djcrackman »

Apache 2? Aus welchem Grund? Benötigtst du irgendein spezielles Modul davon? Ansonsten rate ich dir zu Apache 1.3.x und PHP4 als Modul -> performanter.

1.) Mach dein Putty Fenster mal ein Wenig breiter, damit man die Zeilen vollständig lesen kann ...

2.) hdparm -tT /dev/md0

3.) Du weisst was du da gerade eingegeben hast?
Last edited by djcrackman on 2006-09-19 17:59, edited 2 times in total.
mattiass
Userprojekt
Userprojekt
Posts: 608
Joined: 2005-12-16 17:57
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by mattiass »

djcrackman wrote:Apache 2? Aus welchem Grund? Benötigtst du irgendein spezielles Modul davon? Ansonsten rate ich dir zu Apache 1.3.x und PHP4 als Modul -> performanter.
Dass 1.3 performanter als 2.2 ist, will ich massiv bezweifeln...
djcrackman
Posts: 207
Joined: 2005-06-02 11:58
Contact:
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by djcrackman »

MatthiaS bezweifle was du willst -> ~7.000 vHosts -> Apache 1.3 macht 20% mehr Durchsatz.

BTW: Wo schrieb er, dass er 2.2 verwendet?
r. u. serious
Posts: 88
Joined: 2006-06-10 14:17
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by r. u. serious »

Was passiert ist, dass die Apache Childs den Speicher komplett dicht machen, und der Server vermutlich anfängt zu swappen - die Befehlsausgaben oben (free etc.) sind von einem Zeitpunkt wo er noch OK läuft nehme ich an?

Setze wie oben schonmal erwähnt die MaxChilds runter, vielleicht auf ~100, und ggf. die KeepAlive Zeit runter auf 5, dann hängen die ungenutzten Childs nicht noch so lange rum. Hast du etwas wie eacceleratr/APC/xcache installiert? Falls nicht wär das auch ein Ansatz der den Speicherverbrauch etwas reduzieren kann (auch wenn der Hauptzweck derselben die gewonnene CPU-Zeit ist). Hast du alle nicht benötigten Apache-Module rausgenommen?

Du hast oben geschrieben, dass du die my.cnf und apache config "optimiert" hast - wie bist du dabei vorgegangen?

Noch eine Bitte am Rande - kannst du die großen Konfigurationsdateien, Ausgaben vielleicht woanders hinpacken und nur verlinken, sonst macht es das Lesen des Threads schwerer IMHO.
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

hdparm -tT /dev/md0

Code: Select all

/dev/md0:
 Timing cached reads:   1808 MB in  2.00 seconds = 903.94 MB/sec
 Timing buffered disk reads:  158 MB in  3.03 seconds =  52.11 MB/sec
Denn Befehl kannte ich jetzt nicht!


So ich habe mal

MaxRequestsPerChild 100
MaxKeepAliveRequests 5
das so geändert. Habe danach nur den apache neu gestartet aber nicht wirklich die grosse wirkung.

eacceleratr/APC/xcache installiert ist nicht installiert.

Apache sowie Mysql habe ich aber wieder auf die standart config gesetzt weil es nichts gebracht hat.

Achso der Server nimmt nicht mal ansatzweisee die SWAP in angriff.
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Schon einer eine Idee
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by flo »

Kann es sein, daß evtl. nur wegen pconnects die Datenbank nicht hinterherkommt?

flo.
r. u. serious
Posts: 88
Joined: 2006-06-10 14:17
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by r. u. serious »

Nochmal zurück zum Anfang:
Der Seiten aufbau ist nach ca. 3 Stunden eines Server Neustart langsam.
Was heißt langsam? Von 0,03 Sekunden auf 0,6 Sekunden? Dann sucht man den Fehler logischerweise woanders, als wen es von 0,03 auf 13Sekunden hochgeht.
Der RAM ist denn 98-100% Ausgelasten und es wird 2.4GB gechached.
Du widersprichst in dieser Aussage deinen späteren Befehlsausgaben, wo der grüßte Teil des RAM nicht für Caching, sondern die httpd prozesse draufgeht. Was ist es denn nun?
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Langsam heist bis die Seite geladen ist kannes bis zu 15 Sekunden dauern. Bei (DSL 6000) was mir zuverfügung steht).


Aber Durch die Prozesse ist der Ram ja aus gelastet.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by oxygen »

Also, folgendes machen bis es wieder einigermaßen passt:

Schritt 1)
php.ini:
mysql.allow_persistent = Off

Schritt 2)
überflüssige PHP und Apache Module entfernen (stattdessen vllt. nen OpCode Cache installieren)

Schritt 3)
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 200
MaxRequestsPerChild 25000
Schritt 4)
PHP-5.1.x installieren am besten mit passender VM Einstellung kompilieren (vermutlich GOTO)

Schritt 5)
von prefork auf worker o. leader wechseln. z.B. mit folgenden Einstellungen:
StartServers 5
MaxClients 250
MinSpareThreads 20
MaxSpareThreads 50
ThreadsPerChild 50
MaxRequestsPerChild 25000
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Wo bekomme ich das OpCode Cache?
Und muss ich das Installieren?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by Roger Wilco »

Morpheus wrote:Wo bekomme ich das OpCode Cache?
$Suchmaschine mit "EAccelerator", "APC" oder "Zend Optimizer" füttern.
buddaaa
Posts: 163
Joined: 2004-11-08 09:59
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by buddaaa »

Morpheus wrote:Langsam heist bis die Seite geladen ist kannes bis zu 15 Sekunden dauern. Bei (DSL 6000) was mir zuverfügung steht).
15 sekunden ist ewig, schreibst Du vieleicht ins apache access.log die DNS-namen statt nur der IPs (in kombination mit falscher resolv.conf) ?

wenn's das nicht war:
1. die IP von Deiner DSL-kiste rauskriegen (http://www.heise.de/ip/)
2. folgendes auf dem rootserver eingeben:

Code: Select all

tcpdump -n -i eth0 host ip.ip.ip.ip and port not 22
(in der annahme, das Du Deinen root-server von dem DSL-anschluss ueber port 22 administrierst, das wird durch das letzte statement ignoriert.)

3. selber interpretieren oder hier posten



Aber Durch die Prozesse ist der Ram ja aus gelastet.
also am RAM sollte es nicht liegen weil er swappt ja nicht und bei linux ist es normal, das 98-100% des speichers benutzt sind weil er allen freien speicher zum cachen benutzt.
morpheus
Posts: 20
Joined: 2006-07-10 17:42
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by morpheus »

Code: Select all

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel

Da ich langsam nicht mehr weiter weiss. Würde ich auch einen zugang anbieten damit sich das mal einer direkt anschaut.
buddaaa
Posts: 163
Joined: 2004-11-08 09:59
 

Re: 3GB Opteron148 Maschine pakt einfachste sachen nicht!!!

Post by buddaaa »

Morpheus wrote:

Code: Select all

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel
sorry, ich vergass: nach dem starten von tcpdump dann einmal auf die langsame seite zugreifen.

wenn der server noch nicht oeffentlich bekannt ist und als einziger drauf zugreift kannst Du auch folgendes machen:

Code: Select all

tcpdump -n -i eth0 port not 22
dann siehst Du den kompletten netz-traffic.


funktioniert denn DNS, klappt "ping ping.de" ?
Post Reply