Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpMyAdmin und Webmin ist sehr langsam ... [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Apr 15, 2006 10:22 pm    Post subject: phpMyAdmin und Webmin ist sehr langsam ... [SOLVED] Reply with quote

Hallo!
Ich habe das Problem schon seit Installation ...

Wenn ich z.b mit phpMyAdmin meine Datenbank administrieren will, dann dauert das laden einer Seite schon mal ca. 20 Sekunden ...
Woran liegt das? Das selbe Problem habe ich auch mit Webmin! Da dauert es auch lange, bis ne Seite geladen ist
Ist das wirklich weil es nur nen P1-233 ist, oder liegt das an PHP5 ? Weil wenn ich z.b ProFTPD nutze, welches von MySQL die Benutzerdaten liest, dann geht das sehr schnell und es gibt keine Verzögerungen.

Hier das Beispiel von MySQL ... sogar die Startseite lädt langsam: http://conikost2.dyndns.org/Tools/phpMyAdmin/

Muss ich irgendwas aktivieren?
PC einfach zu lahm mit 233 MHz ?

Ich habe MySQL und Webmin mit diesen Optionen

Code:

Metabox ~ # emerge -pv mysql webmin dev-lang/php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-db/mysql-5.0.19-r1 [5.0.19] USE="-berkdb -big-tables -cluster -debug -embedded -extraengine -max-idx-128 -minimal -perl -srvdir ssl -static" 0 kB
[ebuild   R   ] app-admin/webmin-1.270  USE="apache2 -postgres ssl -webmin-minimal" 0 kB
[ebuild     U ] dev-lang/php-5.1.2-r1 [5.1.2] USE="-adabas -apache apache2 -bcmath -berkdb -birdstep bzip2 -calendar -cdb -cgi -cjk -cli -crypt -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase ftp gd -gd-external -gdbm -gmp -hardenedphp -hash -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit -mhash -ming -msql -mssql mysql mysqli ncurses nls -oci8 -oci8-instant-client -odbc -pcntl pcre -pdo -pdo-external -pic -posix -postgres -qdbm readline -recode -reflection -sapdb -sasl session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid spell -spl -sqlite ssl -sybase -sybase-ct -sysvipc threads -tidy -tokenizer truetype -vm-goto -vm-switch -wddx xml -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip zlib" 0 kB



emerege --info
Code:

Metabox ~ # emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r1 i586)
=================================================================
System uname: 2.6.16-gentoo-r1 i586 Cyrix MediaGXtm MMXtm Enhanced
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-fomit-frame-pointer -march=pentium-mmx -mmmx -Os -pipe -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-fomit-frame-pointer -march=pentium-mmx -mmmx -Os -pipe -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo / http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ / http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo / ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo / ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ / http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ / ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ / ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/ / http://gentoo.intergenia.de"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 / a52 aac alsa apache2 apm bash-completion bzip2 cdinstall dedicated dts dvd ftp gd gpm javascript jpeg mmx mp3 mpeg mysql mysqli ncurses nls nptl ogg pam pcmcia pcre png quicktime readline samba session slang source spell ssl symlink tcpd threads tiff truetype unicode usb v4l vcd vorbis wifi win32codecs xml zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_ati video_cards_cyrix video_cards_fbdev video_cards_v4l video_cards_vesa video_cards_vga video_cards_vmware"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS



Last edited by ConiKost on Thu Apr 20, 2006 9:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Keepoer
Apprentice
Apprentice


Joined: 30 Mar 2004
Posts: 293
Location: Zwischen Kassel und Edewecht pendelnd

PostPosted: Sat Apr 15, 2006 11:13 pm    Post subject: Reply with quote

Hi,
die geringe Performace liegt an dem Apache2 und PHP. Die MySQL-Datenbank ist nicht das Problem, da die Datenausgabe für Proftpd ja ziemlich schnell von statten geht.
Da ich mal davon ausgehe, dass dein Server auch nicht gerade vor RAM strozt, würde ich dir dringend vom Apache abraten. Oder nimm wenigstens die 1er Version.

Als Alternative würde ich dir lighttpd empfehlen. Einfach mal emergen. Ist ein sehr kleiner und schneller Webserver, dazu noch sehr speicherschonend. Auf meinem Server nimmt er nur 3-4 MB ein. PHP musst du allerdings per fcgi einbinden. Das sollte bei deinem System allerdings ebenfalls von Vorteil sein.
Wenn du's mal versuchen willst, dann emerge einfach lighttpd und reemerge PHP mit dem Userflag cgi. Das Einstellen der conf-Datei ist idR auch kein Problem.

Ich will dir hier keine Garantie geben, dass dein System danach rennt, aber einen spürbaren Performancegewinn sollte es doch geben.

Bei Fragen einfach nochmal posten oder per PM.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Apr 15, 2006 11:20 pm    Post subject: Reply with quote

Naja, aber das Problem ist, dass sowas wie phpBB oder andere CMS System innerhalb weniger Sekunden geladen sind?
Wieso sind diese dann so schnell?

Ich habe 128 MB RAM ...
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 12:27 am    Post subject: Reply with quote

Ist das denn nur eine initiale Verzögerung beim Laden der Seite, aber wenn sie dann geladen wird, dann geht es schnell, oder ist alles langsam?

Wie schaut es denn mit der Last des Systems aus? Lass doch mal ein vmstat 1 laufen. Oder besser dstat --all --full 1
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 9:48 am    Post subject: Reply with quote

Hallo!
Also mit Verzögerung meine ich, ich warte 10 Sekunden (in dieser Zeit sehe ich nur eine leere weise Seite!), und dann boom, auf einmal ist die gesamte Seite da.

Achja, Wordpress ist auch so nen Beispiel wo das laden ne Weile dauert ...

Also dstat gibt es bei mir nicht ... was muss ich hier emergen?

Also hier die ausgabe von vmstat ... kannst du mir die Erklären?
Die Ausgabe ist jetzt, wenn ich mir mit phpMyAdmin einlogge ...


Code:

Metabox / # vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 2  0  38600  14084   4180  41904    1    1    16    25  326   268 29 45 25  0
 2  0  38600  14084   4180  41904    0    0     0     0  375   362  3 44 53  0
 1  0  38600  14084   4188  41904    0    0     0    40  367   388  1 42 57  0
 2  0  38600  14084   4188  41904    0    0     0     0  340   319  0 44 56  0
 1  0  38600  14072   4188  41920    0    0    16     0  356   371  1 37 61  1
 2  0  38600  14072   4188  41920    0    0     0     0  375   374  1 40 59  0
 1  0  38600  14060   4188  41936    0    0    16     0  369   368  2 36 62  0
 1  0  38600  14036   4188  41952    0    0    16     8  376   382  3 37 60  0
 3  0  38600  13888   4212  42080    0    0   152     0  409   402 33 34 30  4
 3  0  38600  13728   4220  42204    0    0   132     0  353   261 58 38  0  4
 4  0  38600  13584   4256  42268   20    0   120     0  393   320 55 42  0  3
 3  0  38600  13460   4272  42360    0    0   108     0  360   284 61 38  0  1
 3  0  38600  13408   4292  42388    0    0    40    34  406   295 51 49  0  0
 3  0  38600  13016   4300  42408    0    0     8     0  396   337 38 43 18  1
 4  0  38600  12372   4308  42408    0    0     1    24  327   211 53 47  0  0
 3  0  38600  11844   4308  42424    0    0    16     0  409   332 51 49  0  0
 1  0  38600  11984   4312  42424    0    0     4     0  468   412 51 34 15  0
 2  0  38600  11960   4312  42452    0    0    28    12  452   450  6 42 50  2
 1  0  38600  11948   4320  42468    0    0    16    16  354   362  4 29 66  1
 1  0  38600  11948   4320  42468    0    0     0     0  391   397  1 35 64  0
 4  0  38600  11924   4320  42484    0    0    16     0  357   333  4 35 60  1
 5  0  38600  11924   4324  42484    0    0     0    18  354   322 35 35 31  0
 3  0  38600  11672   4324  42484    0    0     0     0  301   187 59 41  0  0
 2  0  38600  11168   4328  42572    0    0    92     0  401   327 54 45  0  1
 3  0  38600  10804   4328  42572    0    0     0     0  367   281 58 42  0  0
 3  0  38600  10972   4328  42572    0    0     0     0  378   294 50 44  6  0
 3  0  38600  10972   4328  42572    0    0     0     0  326   228 59 41  0  0
 2  0  38600  10848   4328  42588    0    0    16     0  382   291 60 40  0  0
 4  0  38600  10880   4328  42604    0    0    16     0  433   378 20 41 39  0
 1  0  38600  10880   4332  42604    0    0     0    18  371   400  3 30 67  0
 4  0  38600  10880   4340  42604    0    0     0    16  378   374  1 37 62  0
 1  0  38600  10880   4340  42604    0    0     0     0  378   385  2 33 65  0
 1  0  38600  10868   4340  42620    0    0    16    32  355   327  1 37 62  0
 1  0  38600  10868   4340  42620    0    0     0     0  357   370  0 38 62  0
 1  0  38600  10868   4340  42620    0    0     0     0  357   355  3 47 50  0
 2  0  38600  10868   4340  42620    0    0     0     0  358   340  1 45 54  0
 1  0  38600  10868   4340  42620    0    0     0     0  379   395  3 40 57  0
 3  0  38600  10896   4340  42620    0    0     0     0  332   250 52 39  9  0
 3  0  38600  10896   4340  42620    0    0     0     0  302   193 62 38  0  0
 3  0  38600  10832   4340  42652    0    0    32     0  395   309 59 41  0  0
 3  0  38600  10652   4340  42668    0    0    16     0  382   310 66 34  0  0
 2  0  38600  10596   4340  42668    0    0     0     0  410   358 62 38  0  0
 3  0  38600  10556   4340  42684    0    0    16     4  396   304 67 33  0  0
 3  0  38600  10556   4340  42684    0    0     0     0  395   329 65 35  0  0
 4  0  38600  10556   4340  42684    0    0     0     0  390   321 53 47  0  0
 2  0  38600  10556   4340  42684    0    0     0     0  379   304 56 44  0  0
 3  0  38600  10556   4340  42684    0    0     0     0  395   305 54 46  0  0
 3  0  38600  10532   4344  42700    0    0    16    20  406   326 57 43  0  0
 3  0  38600  10532   4344  42700    0    0     0     0  389   328 61 39  0  0
 3  0  38600  10532   4344  42700    0    0     0     0  373   300 62 38  0  0
 3  0  38600  10784   4344  42700    0    0     0     0  414   363 67 33  0  0
 2  0  38600  10772   4344  42716    0    0    16     0  387   303 59 41  0  0
 3  0  38600  10772   4348  42716    0    0     0    23  381   290 59 41  0  0
 3  0  38600  10576   4348  42716    0    0     0     0  355   285 71 29  0  0
 3  1  38600  10508   4356  42732    0    0    16    16  333   248 64 36  0  0
 3  0  38600  10508   4356  42736    0    0     0     0  365   276 55 45  0  0
 3  0  38600  10472   4356  42764    0    0    32     0  382   319 51 49  0  0
 3  1  38600  10460   4356  42780    0    0    16     0  376   312 57 43  0  0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 4  0  38600  10460   4356  42780    0    0     0     0  389   319 54 46  0  0
 3  0  38600  10436   4356  42796    0    0    16     0  381   313 64 36  0  0
 2  0  38600  10408   4364  42796    0    0     0    40  362   296 64 36  0  0
 3  0  38600  10396   4364  42812    0    0    16     0  377   281 63 37  0  0
 3  0  38600  10384   4364  42828    0    0    16     0  370   292 68 32  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  370   287 63 37  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  364   293 70 30  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  387   306 62 38  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  373   276 53 47  0  0
 3  0  38600  10360   4364  42844    0    0    16     0  365   285 59 41  0  0
 3  0  38600  10348   4364  42860    0    0    16     0  380   284 54 46  0  0
 4  0  38600  10348   4364  42860    0    0     0     0  397   327 61 39  0  0
 2  0  38600  10348   4364  42860    0    0     0     0  361   282 67 33  0  0
 4  0  38600  10348   4364  42860    0    0     0     0  358   267 60 40  0  0
 2  0  38600  10336   4364  42876    0    0    16     0  411   329 68 32  0  0
 5  0  38600   9372   4364  43484   56    0   664     0  431   389 46 43  0 11
 4  0  38600   8880   4364  43524    0    0    40     0  352   265 63 36  0  1
 1  0  38600   9112   4376  43572    0    0    60     0  452   445 37 37 23  3
 4  1  38600   9076   4380  43608    0    0    40     0  356   258 57 41  2  0
 5  0  38600   9076   4380  43608    0    0     0     0  352   249 57 43  0  0
 4  0  38600   9076   4380  43608    0    0     0     0  358   266 55 45  0  0
 3  0  38600   9076   4380  43608    0    0     0     0  318   212 56 44  0  0
 3  0  38600   9052   4392  43624    0    0    16    34  346   254 63 37  0  0
 2  0  38600   9068   4392  43624    0    0     0    20  375   293 61 39  0  0
 2  0  38600   9068   4392  43624    0    0     0     0  374   289 62 38  0  0
 2  0  38600   9068   4392  43624    0    0     0     0  353   270 65 35  0  0
 3  0  38600   9056   4392  43640    0    0    16     0  385   298 62 38  0  0
 3  1  38600   9028   4392  43672    0    0    32     0  379   319 69 31  0  0
 3  0  38600   9028   4396  43672    0    0     0     9  390   328 63 37  0  0
 3  0  38600   8988   4396  43688    0    0    16     0  386   309 56 44  0  0
 3  0  38600   8904   4396  43688    0    0     0     0  392   277 53 47  0  0
 3  0  38600   8784   4396  43720    0    0    32     0  514   361 58 42  0  0
 3  0  38600   8784   4396  43720    0    0     0     0  399   317 56 44  0  0
 4  0  38600   8784   4396  43720    0    0     0    32  411   330 61 39  0  0
 3  0  38600   8716   4396  43736    0    0    16     0  413   358 65 35  0  0
 2  0  38600   8716   4396  43736    0    0     0     0  406   326 58 42  0  0

Metabox / #
 3  0  38600  10896   4340  42620    0    0     0     0  332   250 52 39  9  0
 3  0  38600  10896   4340  42620    0    0     0     0  302   193 62 38  0  0
 3  0  38600  10832   4340  42652    0    0    32     0  395   309 59 41  0  0
 3  0  38600  10652   4340  42668    0    0    16     0  382   310 66 34  0  0
 2  0  38600  10596   4340  42668    0    0     0     0  410   358 62 38  0  0
 3  0  38600  10556   4340  42684    0    0    16     4  396   304 67 33  0  0
 3  0  38600  10556   4340  42684    0    0     0     0  395   329 65 35  0  0
 4  0  38600  10556   4340  42684    0    0     0     0  390   321 53 47  0  0
 2  0  38600  10556   4340  42684    0    0     0     0  379   304 56 44  0  0
 3  0  38600  10556   4340  42684    0    0     0     0  395   305 54 46  0  0
 3  0  38600  10532   4344  42700    0    0    16    20  406   326 57 43  0  0
 3  0  38600  10532   4344  42700    0    0     0     0  389   328 61 39  0  0
 3  0  38600  10532   4344  42700    0    0     0     0  373   300 62 38  0  0
 3  0  38600  10784   4344  42700    0    0     0     0  414   363 67 33  0  0
 2  0  38600  10772   4344  42716    0    0    16     0  387   303 59 41  0  0
 3  0  38600  10772   4348  42716    0    0     0    23  381   290 59 41  0  0
 3  0  38600  10576   4348  42716    0    0     0     0  355   285 71 29  0  0
 3  1  38600  10508   4356  42732    0    0    16    16  333   248 64 36  0  0
 3  0  38600  10508   4356  42736    0    0     0     0  365   276 55 45  0  0
 3  0  38600  10472   4356  42764    0    0    32     0  382   319 51 49  0  0
 3  1  38600  10460   4356  42780    0    0    16     0  376   312 57 43  0  0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 4  0  38600  10460   4356  42780    0    0     0     0  389   319 54 46  0  0
 3  0  38600  10436   4356  42796    0    0    16     0  381   313 64 36  0  0
 2  0  38600  10408   4364  42796    0    0     0    40  362   296 64 36  0  0
 3  0  38600  10396   4364  42812    0    0    16     0  377   281 63 37  0  0
 3  0  38600  10384   4364  42828    0    0    16     0  370   292 68 32  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  370   287 63 37  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  364   293 70 30  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  387   306 62 38  0  0
 3  0  38600  10384   4364  42828    0    0     0     0  373   276 53 47  0  0
 3  0  38600  10360   4364  42844    0    0    16     0  365   285 59 41  0  0
 3  0  38600  10348   4364  42860    0    0    16     0  380   284 54 46  0  0
 4  0  38600  10348   4364  42860    0    0     0     0  397   327 61 39  0  0
 2  0  38600  10348   4364  42860    0    0     0     0  361   282 67 33  0  0
 4  0  38600  10348   4364  42860    0    0     0     0  358   267 60 40  0  0
 2  0  38600  10336   4364  42876    0    0    16     0  411   329 68 32  0  0
 5  0  38600   9372   4364  43484   56    0   664     0  431   389 46 43  0 11
 4  0  38600   8880   4364  43524    0    0    40     0  352   265 63 36  0  1
 1  0  38600   9112   4376  43572    0    0    60     0  452   445 37 37 23  3
 4  1  38600   9076   4380  43608    0    0    40     0  356   258 57 41  2  0
 5  0  38600   9076   4380  43608    0    0     0     0  352   249 57 43  0  0
 4  0  38600   9076   4380  43608    0    0     0     0  358   266 55 45  0  0
 3  0  38600   9076   4380  43608    0    0     0     0  318   212 56 44  0  0
 3  0  38600   9052   4392  43624    0    0    16    34  346   254 63 37  0  0
 2  0  38600   9068   4392  43624    0    0     0    20  375   293 61 39  0  0
 2  0  38600   9068   4392  43624    0    0     0     0  374   289 62 38  0  0
 2  0  38600   9068   4392  43624    0    0     0     0  353   270 65 35  0  0
 3  0  38600   9056   4392  43640    0    0    16     0  385   298 62 38  0  0
 3  1  38600   9028   4392  43672    0    0    32     0  379   319 69 31  0  0
 3  0  38600   9028   4396  43672    0    0     0     9  390   328 63 37  0  0
 3  0  38600   8988   4396  43688    0    0    16     0  386   309 56 44  0  0
 3  0  38600   8904   4396  43688    0    0     0     0  392   277 53 47  0  0
 3  0  38600   8784   4396  43720    0    0    32     0  514   361 58 42  0  0
 3  0  38600   8784   4396  43720    0    0     0     0  399   317 56 44  0  0
 4  0  38600   8784   4396  43720    0    0     0    32  411   330 61 39  0  0
 3  0  38600   8716   4396  43736    0    0    16     0  413   358 65 35  0  0
 2  0  38600   8716   4396  43736    0    0     0     0  406   326 58 42  0  0
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 11:23 am    Post subject: Reply with quote

Ich habe grade gesehen, dass du auch derjenige gewesen bist, der Probleme mit der DNS-Auflösung gehabt hat und deswegen die SSH-Logins sich verzögert hatten.

Ist nur so ein Schuss ins Blaue, aber hast du eventuell beim Apache die Namensauflösung eingeschaltet? Ich weiss zwar nicht, ob das zu einer Verzögerung führen würde. Und es ist auch nicht die Gentoo-Default-Einstellung. Aber das kann man ja trotzdem mal checken. Die Einstellung heisst HostnameLookups und ist bei Gentoo in der /etc/apache2/httpd.conf

Jetzt du dem vmstat-Output:

Wichtig ist da zunächst mal die id Spalte, die gibt den Leerlauf-Prozentsatz des Systems an. Solange dieser Wert noch > 0 ist, ist da zunächst einmal noch kein Flaschenhals. Es gilt: us+sy+id+wa=100%. us bedeutet dabei CPU-Prozentsatz fürs Ausführen von Userland-Code, sy bedeutet CPU-Prozentsatz fürs Ausführen von Kernel-Code und wa bedeutet Prozentsatz von erzwungenem Leerlauf, weil auf die Festplatte gewartet werden musste. Das System muss aber nicht swappen (Spalten si und so), und auch sonst gibt es nur eine geringe Festplatten-Aktivität (Spalten bi und bo), und es gibt dementsprechend auch keine Wartezeit wegen zu langsamer Festplatte (Spalte wa). Das ist soweit alles in Ordnung.

Aber seltsam ist der hohe Anteil an Kernel-Zeit. Der Rechner ist zwar sehr langsam, aber dennoch scheint mir der Kernel-Anteil viel zu hoch zu sein. *achselzuck* Da fällt mir leider nicht so viel zu ein. Normalerweise liegt die Ursache darin, dass man keinen DMA-Modus für die Festplatte hat. Aber bei dir ist der Kernel auch beschäftigt, wenn die Festplatte wirklich nichts macht. Netzwerkkarten mit Realtek-Chipsatz können den Kernel-Anteil auch erhöhen, wenn sie stark belastet werden, aber das sieht man dann an einer höheren Interrupt-Last (Spalte in), was bei dir aber auch nicht der Fall ist.

Mh, hast du eventuell Kernel-Mode PPPOE? Oder läuft das Teil auch als NAT-Router? Oder beides?

Andererseits habe ich keine Erfahrungswerte über einen so langsamen Rechner. Mag sein, dass das normal ist.

Empfehlen kann ich dann nur folgendes: Weil wa kein Problem ist und man gegen sy so spontan sicherlich nichts tun kann, muss man versuchen, die CPU-Belastung durch die Userland-Prozesse zu verringern. Du kannst zu diesem Zweck beispielsweise eAccelerator installieren (ist im Portage-Tree) . Damit werden die PHP-Skripte sozusagen vorkompiliert. Das spart dann CPU-Zeit, weil sie nicht bei jedem Aufruf neu interpretiert werden müssen.
Back to top
View user's profile Send private message
zworK
Guru
Guru


Joined: 07 May 2004
Posts: 308

PostPosted: Sun Apr 16, 2006 12:09 pm    Post subject: Reply with quote

Ich habe hier selbst einen Pentium 200 MMX mit 128 MB RAM als Router stehen mit Apache-2.0.54-r31, PHP-4.4.0-r9, MySQL-4.0.25, ProFTPD, Samba und anderen Diensten. phpMyAdmin sowie Webmin laufen zwar etwas träger in der Bedienung, sind jedoch benutzbar, ebenso andere PHP Geschichten wie z.B. Joomla!. Bestückt ist "Rechenmonster" mit 3 Realtek Karten. Bis vor c.a. einem halben Jahr lief noch seti@home im Dauereinsatz.

Ich denke also dein Problem muss irgendwo eine Fehlkonfiguration sein. Die "Rechenpower" sollte reichen.

Code:
router ~ # emerge info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.10-gentoo-r4 i586)
=================================================================
System uname: 2.6.10-gentoo-r4 i586 Pentium MMX
Gentoo Base System version 1.6.13
distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://194.117.143.71/mirrors/gentoo ftp://194.117.143.70/mirrors/gentoo ftp://194.117.143.69/mirrors/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://christian/gentoo-portage"
USE="x86 acl apache2 apm avi berkdb bitmap-fonts bzip2 crypt eds emboss encode esd expat foomaticdb fortran gd gdbm gif gpm gstreamer imlib innodb jpeg libg++ libwww mad mhash mikmod motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg oss pam pcre pdflib perl png python quicktime readline samba sdl spell ssl tcpd tiff truetype-fonts type1-fonts udev vorbis xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 12:27 pm    Post subject: Reply with quote

Was für einen Prozentsatz Kernel-Zeit hast du denn üblicherweise?
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 12:34 pm    Post subject: Reply with quote

Hallo!
Erstmal vielen Dank für die Antworten!

Mh, hast du eventuell Kernel-Mode PPPOE? Oder läuft das Teil auch als NAT-Router? Oder beides?

Was bitte ist Kernel-Mode PPPOE ? Wie kann ich das prüfen? Das Teil ist ein normal Server, also sollte NAT aus sein?

So, ich habe mal jetzt mit phpMYAdmin geschaut ... über 30 Sekunden brauche ich um eine anderen Tabelle anzuschauen ...

Hilft euch die Kernel config weiter? Kann jemand mal schauen ob ich irgendwas vergessen hab?

-> http://conikost2.dyndns.org/Downloads/config-2.6.16-gentoo-r1

Das mit DNS abschalten in Apache hat nicht geholen (Ich hatte den Eintrag überhaupt nicht in der httpd.conf ...)

Wie kann ich den Kernel % Satz den nachschauen? Habe das nie wirklich geprüft.

DMA sollte an sein:

Code:

Metabox ~ # hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 156368016, start = 0

Back to top
View user's profile Send private message
zworK
Guru
Guru


Joined: 07 May 2004
Posts: 308

PostPosted: Sun Apr 16, 2006 3:30 pm    Post subject: Reply with quote

sschlueter wrote:
Was für einen Prozentsatz Kernel-Zeit hast du denn üblicherweise?


Was genau möchtest du denn Wissen ?

Hier mal vmstat 1 beim durchklicken durch phpMyAdmin
Code:
router ~ # vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0   8616   9712  45548  71632    0    0     2     5    5     2  2  2 95  0
 0  0   8616   9712  45548  71632    0    0     0     0 1049   190  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1046   198  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1051   193  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1059   217  0  0 100  0
 0  0   8616   9712  45548  71632    0    0     0     0 1042   186  1  2 97  0
 0  0   8616   9712  45548  71632    0    0     0     0 1060   217  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1056   210  0  1 99  0
 0  0   8616   9712  45548  71632    0    0     0     0 1049   206  1  0 99  0
 0  0   8616   9712  45548  71632    0    0     0     0 1051   203  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1044   194  1  0 99  0
 0  0   8616   9712  45548  71632    0    0     0     0 1042   183  0  1 99  0
 0  0   8616   9712  45548  71632    0    0     0     0 1075   232  1  1 98  0
 0  0   8616   9712  45548  71632    0    0     0     0 1071   223  1  2 97  0
 0  0   8616   9712  45548  71632    0    0     0     0 1097   256  0  1 99  0
 0  0   8616   9712  45548  71632    0    0     0     0 1089   256  1  2 97  0
 0  0   8616   9712  45548  71632    0    0     0     0 1088   245  1  2 97  0
 0  1   8616   9624  45568  71640    0    0    28     0 1085   246  2  2 89  7
 0  0   8616   8612  45628  71944    0    0   336     0 1108   276 45  6 10 38
 0  0   8616   8612  45628  71944    0    0     0    24 1068   232  1  1 93  5
 0  0   8616   8612  45628  71944    0    0     0     0 1051   199  1  1 98  0
 2  0   8616   8612  45628  71944    0    0     0     0 1059   203 11  1 88  0
 0  0   8616   8392  45628  71956    0    0    12     0 1086   281 37  5 56  2
 0  0   8616   8392  45628  71956    0    0     0     0 1054   203  1  1 98  0
 0  0   8616   8392  45628  71956    0    0     0    20 1041   193  1  1 96  2
 2  0   8616   8392  45628  71956    0    0     0     0 1067   214  7  1 92  0
 0  1   8616   8304  45676  72144    0    0   224     0 1069   282 67  7  2 24
 4  0   8616   7556  45692  72244    0    0   116     0 1096   262 87  6  2  5
 4  0   8616   6016  45692  72244    0    0     0     0 1068   349 90 10  0  0
 5  0   8616   3640  45732  72308    0    0    80    20 1126   477 88 12  0  0
 4  0   8616   5532  45740  72308    0    0     8     0 1081   403 92  8  0  0
 2  0   8616   5972  45776  72420    0    0    60     0 1182   419 88 12  0  0
 0  0   8616   6104  45776  72428    0    0     0     0 1066   171  8  3 89  0
 0  0   8616   5796  45776  72428    0    0     0     0 1052   191  1  2 97  0
 0  0   8616   5796  45776  72428    0    0     0    60 1054   181  1  1 95  3
 3  0   8616   4608  45776  72428    0    0     0     0 1044   186 47  5 48  0
 3  0   8616   4696  45780  72460    0    0    36     0 1054   380 91  8  1  0
 2  0   8616   3288  45788  72480    0    0    16     0 1072   307 90  9  0  1
 2  0   8616   3112  45788  72560    0    0    80     0 1121   171 82  7  7  4
 2  0   8616   2244  45748  71772    0    0    88    20 1079   332 80 11  0  9
 0  0   8616   2708  45752  71880    0    0     4     0 1232   247 66  9 23  2
 0  0   8616   2716  45752  71884    0    0     0     0 1050   180  1  1 98  0
 0  0   8616   2724  45752  71884    0    0     0     0 1071   209  1  1 98  0
 0  0   8616   2724  45752  71884    0    0     0     0 1040   167  1  1 98  0
 0  0   8616   2728  45752  71884    0    0     0    48 1086   232  0  1 97  2
 0  0   8616   2728  45752  71884    0    0     0     0 1065   206  1  1 98  0
 0  0   8616   2728  45752  71884    0    0     0     0 1055   176  1  1 98  0
 0  0   8616   2728  45752  71884    0    0     0     0 1043   160  1  1 98  0
 0  0   8616   2728  45752  71884    0    0     0     0 1051   185  0  1 99  0
 0  0   8616   2728  45752  71884    0    0     0    36 1074   208  1  1 96  2
 4  0   8616   2480  45756  71988    0    0   108     0 1050   258 82  6  6  6
 3  0   8616   7356  45740  67024    0    0    36     0 1068   232 93  7  0  0
 3  0   8616   6964  45740  67024    0    0     0     0 1073   183 95  5  0  0
 0  0   8616   7600  45740  67032    0    0     0     0 1076   175 40  5 55  0
 0  0   8616   7600  45740  67032    0    0     0    20 1056   197  1  1 96  2
 0  0   8616   7600  45740  67032    0    0     0     0 1058   196  0  1 99  0
 0  0   8616   7600  45740  67032    0    0     0     0 1050   180  1  1 98  0


Unter top geht apache2 max. auf 50% hoch. Nebenbei läuft bei mir noch ein Script, welches alle 5 min eine MySQL Tabelle ausliest. Dabei geht MySQL nie über 1% hinaus.
Die Kiste wird i.d.R. nicht start frequentiert.

Hier mal die ersten 3 Zeilen von top im "Leerlauf"
Code:

top - 17:27:37 up 71 days, 18:14,  1 user,  load average: 0.09, 0.16, 0.13
Tasks:  72 total,   1 running,  71 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.6% us,  2.9% sy,  0.0% ni, 94.2% id,  0.0% wa,  0.3% hi,  0.0% si
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 4:35 pm    Post subject: Reply with quote

@zworK

Wie lange dauert es bei dir, wenn du in phpMyAdmin links von einer Datenbank zur anderen Datenkbank wechselst ?

Bei mir geht das ca. 45 Sekunden (gemessen mit uhr^^)
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 4:50 pm    Post subject: Reply with quote

@zworK: Na, die vmstat-Ausgabe sieht doch schon besser aus als bei ConiKost.

@ConiKost:

Der CPU-Anteil an Kernel-Zeit steht in der sy-Spalte. Und das ist der auffälligste Unterschied zwischen deiner Ausgabe und der von zworK. Ansonsten sind die beiden Ausgaben relativ ähnlich. Beide Systeme müssen nicht swappen, beide haben eine relativ geringe Festplatten-Aktivität und bei beiden Systemen ist die Festplatte kein Flaschenhals. Aber bei dir ist die Kernel-Last deutlich höher. Und als Nebeneffekt der insgesamt höheren Last hast du eine entsprechend grössere durchschnittliche Warteschlangenlänge der Prozesse, die darauf warten, Rechenzeit zu bekommen (r-Spalte).

Ich kann jetzt natürlich nicht sagen, ob das Verhalten des Kernels bei dir normal ist oder ein Zeichen dafür, dass irgendetwas nicht stimmt. Wenn du einen IPTABLES Regelsatz mit 50.000 Einträgen hättest, dann könnte das durchaus normal sein :-)

Und unabhängig von der Frage, ob das Kernel-Verhalten normal ist oder nicht, heisst das auch noch nicht unbedingt, dass das der Grund für das langsame Arbeiten mit phpMyAdmin ist. Ist halt nur Arbeiten an Symptomen.

Du hattest ja gesgat, dass andere PHP-Anwendungen einwandfrei arbeiten. Dass heisst, es liegt grundsätzlich ersteinmal weder an Apache, noch an PHP. Es liegt auch nicht grundsätzlich an MySQL, denn das ProFPD-Login geht schnell und Webmin ist auch langsam, obwohl es kein MySQL benutzt (abgesehen vom MySQL-Admin-Modul natürlich).

Mich das das mit dem DNS noch nicht so ganz überzeugt. Trag doch mal deinen Client-Rechner in die /etc/hosts des Servers ein.

Zeig uns doch auch mal eine top-Ausgabe.

Ich weiss nicht, ob es viel Sinn macht, da ja MySQL anscheinend nicht das Problem ist, aber du könntest auch die Ausgabe des mysqlreport Skriptes zeigen.
Back to top
View user's profile Send private message
zworK
Guru
Guru


Joined: 07 May 2004
Posts: 308

PostPosted: Sun Apr 16, 2006 5:28 pm    Post subject: Reply with quote

ConiKost wrote:
@zworK

Wie lange dauert es bei dir, wenn du in phpMyAdmin links von einer Datenbank zur anderen Datenkbank wechselst ?

Bei mir geht das ca. 45 Sekunden (gemessen mit uhr^^)


So im Durchschnitt 3 Sekunden. Unabhängig von der Größe. Ich habe mal zwischen kleinen Testdatenbanken und etwas größeren (Joomla) hin- und hergewechselt. Rein subjektiv tut sich da nichts.
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 5:40 pm    Post subject: Reply with quote

Bei mir ist das abhängig von der Anzahl der Tabellen und reicht von 0,4 Sekunden bei einer Datenbank mit 0 Tabellen bis zu 1,8 Sekunden für eine Datenbank mit mehr als 100 Tabellen. Gemessen mit Fasterfox.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 5:43 pm    Post subject: Reply with quote

zworK wrote:
ConiKost wrote:
@zworK

Wie lange dauert es bei dir, wenn du in phpMyAdmin links von einer Datenbank zur anderen Datenkbank wechselst ?

Bei mir geht das ca. 45 Sekunden (gemessen mit uhr^^)


So im Durchschnitt 3 Sekunden. Unabhängig von der Größe. Ich habe mal zwischen kleinen Testdatenbanken und etwas größeren (Joomla) hin- und hergewechselt. Rein subjektiv tut sich da nichts.


Hmm, aber das ganze kann doch nicht daran sein, dass nen Cyrix 300MHz so lahm ist und dein P-200 wesentlich schneller ... du mit 3 Sekunden und ich über 45 Sekunden ...

Wie ist das mit meiner Kernel config? Ist da irgendwas falsches aktiviert? Habs ja im Thread angehängt.

Meine TOP ausgabe:

Code:

top - 03:27:13 up 1 day,  8:15,  2 users,  load average: 1.23, 0.81, 0.83
Tasks:  58 total,   3 running,  54 sleeping,   0 stopped,   1 zombie
Cpu(s):  4.1% us,  6.5% sy, 39.8% ni,  2.4% id,  0.0% wa, 16.3% hi, 30.9% si
Mem:    125244k total,   117076k used,     8168k free,     3416k buffers
Swap:   498004k total,    38000k used,   460004k free,    16476k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
28659 p2p       35  19 42776  27m 2048 R 76.1 22.6  62:41.05 mlnet
13758 root      17   0  2044 1040  776 R 13.0  0.8   0:01.73 top
13674 root      16   0  5928 1864 1472 S  4.9  1.5   0:02.42 sshd
    1 root      16   0  1460  420  396 S  0.0  0.3   0:04.58 init
    2 root      34  19     0    0    0 R  0.0  0.0   1:47.87 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   5:07.46 events/0
    4 root      10  -5     0    0    0 S  0.0  0.0   0:00.05 khelper
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    7 root      10  -5     0    0    0 S  0.0  0.0   0:28.85 kblockd/0
   26 root      10  -5     0    0    0 S  0.0  0.0   0:00.02 khubd
   96 root      15   0     0    0    0 S  0.0  0.0   0:15.08 pdflush
   97 root      15   0     0    0    0 S  0.0  0.0   1:17.50 pdflush
   99 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
   98 root      15   0     0    0    0 S  0.0  0.0   0:34.33 kswapd0
   53 root      15   0     0    0    0 S  0.0  0.0   0:03.17 kapmd
  173 root      12 -10     0    0    0 S  0.0  0.0   0:00.01 vesafb
  181 root      10  -5     0    0    0 S  0.0  0.0   0:00.03 kseriod
  199 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
  227 root      15   0     0    0    0 S  0.0  0.0   0:00.01 pccardd
  229 root      15   0     0    0    0 S  0.0  0.0   0:00.00 pccardd
  247 root      15   0     0    0    0 S  0.0  0.0   0:03.53 kjournald
  446 root      17  -4  1744  304  300 S  0.0  0.2   0:10.40 udevd
 1749 root      15   0     0    0    0 S  0.0  0.0   0:11.51 kjournald
 1755 root      19   0     0    0    0 S  0.0  0.0   0:00.00 kjournald
 1757 root      15   0     0    0    0 S  0.0  0.0   0:13.98 kjournald
 1759 root      15   0     0    0    0 S  0.0  0.0   0:01.86 kjournald
 1761 root      15   0     0    0    0 S  0.0  0.0   1:26.03 kjournald
 5049 root      16   0  1484  320  296 S  0.0  0.3   0:13.79 ifplugd
 6892 root      15   0  1676  456  332 S  0.0  0.4   0:00.54 syslog-ng
 7052 mysql     16   0  125m 5296 2656 S  0.0  4.2   4:45.70 mysqld
 7164 root      16   0  3148  500  400 S  0.0  0.4   0:00.12 sshd
 7299 root      16   0  2552  324  320 S  0.0  0.3   0:00.01 apmd
 7372 messageb  16   0  2932  316  312 S  0.0  0.3   0:00.02 dbus-daemon
 7512 root      16   0  1636  508  428 S  0.0  0.4   0:01.24 crond
 7637 root      16   0  1592  312  280 S  0.0  0.2   0:00.02 hddtemp
 7856 nobody    16   0  4968  544  440 S  0.0  0.4   0:05.18 proftpd
 7931 root      18   0  5308  328  324 S  0.0  0.3   0:00.16 smbd
 7937 root      18   0  5308  108  104 S  0.0  0.1   0:00.00 smbd
 7941 root      16   0  3436  680  528 S  0.0  0.5   0:07.37 nmbd
 8013 root      15   0  1456  296  260 S  0.0  0.2  68:22.74 tleds
 8359 root      16   0  7140 1752  944 S  0.0  1.4   0:07.09 miniserv.pl
 8429 root      16   0  7408 1660  892 S  0.0  1.3   0:05.77 miniserv.pl
 8541 root      15   0  1464  376  372 S  0.0  0.3   0:00.07 agetty
 8542 root      16   0  1464  376  372 S  0.0  0.3   0:00.01 agetty
 8543 root      16   0  1460  376  372 S  0.0  0.3   0:00.01 agetty
 8544 root      16   0  1460  376  372 S  0.0  0.3   0:00.01 agetty
 8545 root      16   0  1460  376  372 S  0.0  0.3   0:00.02 agetty
 8550 root      16   0  1460  376  372 S  0.0  0.3   0:00.02 agetty
 4288 root      21   0     0    0    0 Z  0.0  0.0   0:12.83 camsource <defunct>
28681 root      16   0  4704 1012  568 S  0.0  0.8   0:18.91 screen
28682 root      16   0  4604 1144  952 S  0.0  0.9   0:02.50 bash
12784 root      16   0 17168 7444 3020 S  0.0  5.9   0:17.92 apache2
12791 apache    25   0 15640 4960 1416 S  0.0  4.0   0:00.03 apache2
12826 apache    22   0  245m  19m 2744 S  0.0 16.3   4:53.86 apache2


Wenn ich mir mit phpMyAdmin gerade einlogge oder irgendwas in phpMyAdmin mache, dann sieht Apache so aus:

Code:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
12828 apache    25   0  244m  19m 2756 S 74.9 16.0   7:17.39 apache2


Ein Eintrag in die /etc/hosts hat nicht geholfen!

Code:

Metabox / # cat /etc/hosts
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 localhost aliases
127.0.0.1       Metabox.LAN.Kostecki    Metabox localhost
192.168.0.90    N620c.LAN.Kostecki       N620c


Z.b phpkit, das brauch bei mir nur 2-3 Sekunden und dann ist es offen (nutzt PHP und MySQL)
-> http://conikost2.dyndns.org/phpkit
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 6:03 pm    Post subject: Reply with quote

*hust* Mach doch mal diese eine Tool weg, was da so viel CPU-Zeit verbraucht und sag uns, ob das Arbeiten mit phpmyadmin dann flüssiger ist.

Im übrigen kann man nun sehen, dass die Kernel-CPU-Zeit doch an der Interrupt-Last liegt.

Schau mal, ob die Interrupt-Last geringer ist, wenn das oben genannte Tool weg ist.

Und im übrigen wäre es besser gewesen, gleich dstat zu benutzen.

Um zu überprüfen, von welchem Gerät die Last ausgeht, emerge dstat und führe dann folgenden Befehl aus:

Code:
dstat --proc --cpu --int --disk --page --net --full 1
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 6:12 pm    Post subject: Reply with quote

ConiKost wrote:

Wie ist das mit meiner Kernel config? Ist da irgendwas falsches aktiviert? Habs ja im Thread angehängt.


Puh, also, das ist für mich zu mühselig. Kenne auch deine Hardware nicht.

ConiKost wrote:

Wenn ich mir mit phpMyAdmin gerade einlogge oder irgendwas in phpMyAdmin mache, dann sieht Apache so aus:

Code:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
12828 apache    25   0  244m  19m 2756 S 74.9 16.0   7:17.39 apache2



Du hast einen Apache-Prozess/Thread, der schon 7 Stunden CPU-Zeit verbraucht hat? Das ist sehr ungewöhnlich, denn normalerweise werden die Kind-Prozesse/Threads automatisch entsorgt, wenn sie eine gewisse Anzahl an Anfragen bearbeitet haben.

Starte doch mal den Apache neu, um zu sehen, ob es dann besser ist. (Falls es dann besser ist, dann kann man das mit dem automatischen Entsorgen einstellen).
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 6:13 pm    Post subject: Reply with quote

Hallo!
1) MLDonkey ist das mit 78% ;) Aber das nutzt NIE soviel ... die 78% sind gerade wohl aufgetaucht, da ich aufs Webinterface zugegriffen habe ... normal nutzt es ca. 5% ... ich habe es nun mal deaktiviert, aber es hat NICHTS gebracht. Alles brauch genauso lange ...
2) Kann die Intterupt Leistung an der ISA Karte liegen? Ich habe nen PCMCIA -> ISA Adapter, und dadrin steckt ne Orinoco WLAN Karte. Ich habe da ne normale PCI Netzwerkkarte auch drin, soll ich die testen?
3) Hier die Ausgabe. Die erste Ausgabe ist im IDLE Betrieb, die 2te, wenn ich auf phpMyAdmin zugreife.

Code:

Metabox linux # dstat --proc --cpu --int --disk --page --net --full 1
---procs--- -------cpu0-usage------ -------------interrupts------------ -disk/dm-0---disk/dm-1---disk/dm-2---disk/dm-3---disk/dm-4----disk/hda- ---paging-- --net/eth1-
run blk new|usr sys idl wai hiq siq|__1__ __3__ __11_ __12_ __14_ __15_|_read write:_read write:_read write:_read write:_read write:_read write|__in_ _out_|_recv _send
  0   0   2| 27  10  27   1   6  30|  28    26   186     0     3     0 |7635B 1078B:3251B   17k:  29B  820B: 6.2B  0.7B:4247B 3096B:  16k   23k| 942B 1011B|   0     0
  2   0   0| 13   0  56   0   0  31|   9     5   190     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  768B
  2   0   0|  6   1  60   0   1  32|  10     5   183     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  1   0   0|  7   2  57   0   1  34|  10     5   196     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0|  5   2  53   0  15  25|   6     5   187     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  1   0   0|  8   2  50   0  12  28|   9     6   191     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  84B  752B
  2   0   0|  6   2  53   0  13  27|  25    10   197     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 188B  866B
  2   0   0|  8   2  54   0   9  27|  14     9   183     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 140B  866B
  1   0   0|  7   1  57   0   2  33|  10     8   196     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 104B  866B
  2   0   0|  8   1  56   0   5  30|   7     8   183     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 104B  866B
  1   0   0|  9   2  60   0   0  30|  20    11   197     0     1     0 |   0     0 :   0  4096B:   0     0 :   0     0 :   0     0 :   0  4096B|   0     0 | 160B  980B
  2   0   0|  9   0  58   0   0  33|   6     5   183     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0|  8   2  61   0   0  29|   9     5   194     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0| 10   0  60   0   0  30|   9     5   197     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  1   0   0|  9   0  55   0   0  36|   8     5   182     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0|  8   2  51   0  14  25|  13     6   196     0    10     0 |   0     0 :   0    44k:   0     0 :   0     0 :   0     0 :   0    46k|   0     0 |  96B  752B
  2   0   0|  8   0  52   0  12  28|  13     6   182     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 144B  752B
  2   0   0|  8   0  53   0  12  27|  17     8   198     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 100B  866B
  2   0   0|  9   2  56   0   6  27|  12     8   182     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 108B  866B
  1   0   0| 10   0  56   0   0  35|  14     8   196     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 108B  866B
  2   0   0|  9   0  58   0   4  29|  14     9   187     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 349B  866B
  1   0   0|  8   6  56   0   0  30|  12     6   192     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  84B  752B
  2   0   0|  9   0  58   0   0  34|  11     6   195     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  84B  752B
  2   0   0|  8   0  63   0   0  29|  13     6   184     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  84B  752B
Metabox linux # dstat --proc --cpu --int --disk --page --net --full 1
---procs--- -------cpu0-usage------ -------------interrupts------------ -disk/dm-0---disk/dm-1---disk/dm-2---disk/dm-3---disk/dm-4----disk/hda- ---paging-- --net/eth1-
run blk new|usr sys idl wai hiq siq|__1__ __3__ __11_ __12_ __14_ __15_|_read write:_read write:_read write:_read write:_read write:_read write|__in_ _out_|_recv _send
  0   0   2| 27  10  27   1   6  30|  28    26   186     0     3     0 |7633B 1078B:3250B   17k:  29B  819B: 6.2B  0.7B:4245B 3095B:  16k   23k| 942B 1011B|   0     0
  1   0   0|  8   4  47   0  13  28|   9     8   180     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 104B  882B
  3   0   0|  8   2  47   0  14  29|  28    17   203     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |1324B 1778B
  4   0   0| 61   2   0   0  11  26|  12     6   178     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0| 62   5   0   0   3  30|  14     8   197     0     1     0 |   0     0 :   0     0 :   0  1024B:   0     0 :   0     0 :   0  1024B|   0     0 |  84B  866B
  3   0   0| 60   6   0   0   3  31|  10     8   188     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 104B  866B
  4   0   0| 64   5   0   0   2  29|  18    11   190     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 160B  980B
  3   0   0| 64   1   0   0   1  34|  18    11   198     0     2     0 |   0     0 :   0    16k:   0     0 :   0     0 :   0     0 :   0    16k|   0     0 | 160B  980B
  2   0   0| 68   0   0   0   1  31|   8     6   182     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 65   4   0   0   0  31|   7     6   196     0     2     0 |   0     0 :   0     0 :   0  7168B:   0     0 :   0     0 :   0  7168B|   0     0 | 148B  866B
  3   0   0| 67   0   0   0   0  33|  15     7   181     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 61   0   0   0  14  25|   8     5   199     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 61   1   0   0  12  26|  13     6   182     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  96B  752B
  2   0   0| 58   1   0   0  13  29|  10     5   196     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 64   1   0   0  11  24|   6     5   187     0     1     0 |   0     0 :   0  4096B:   0     0 :   0     0 :   0     0 :   0  4096B|   0     0 |  48B  752B
  3   0   0| 61   4   0   0   2  33|  16     6   192     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  96B  752B
  3   0   0| 63   1   0   0   4  32|   7     5   195     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 70   1   0   0   1  28|   9     5   184     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0| 66   0   0   0   0  34|   9     5   196     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 63   2   3   0   1  31|  44    54   184     0     7     0 |   0     0 :   0    40k:   0     0 :   0     0 :   0     0 :   0    40k|   0     0 |2344B   17k
  2   0   0| 64   5   0   0   0  31|  12     5   194     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  3   0   0| 60   8   0   0   0  32|   6     5   188     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 |  48B  752B
  2   0   0| 41   6   8   0  18  28|  21    47   191     0     0     0 |   0     0 :   0     0 :   0     0 :   0     0 :   0     0 :   0     0 |   0     0 | 584B   23k

Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 6:25 pm    Post subject: Reply with quote

Ist in beiden Fällen eines der Geräte auf Interupt 11. Du kannst über cat /proc/interrupts herausfinden, welche Geräte das sind.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 6:36 pm    Post subject: Reply with quote

Also das sagt es:

Code:

 11:        401          XT-PIC  ohci_hcd:usb1, eth0


Nun, eth0 ist meine Netzwerkkarte auf PCI, die NICHT benutzt wird ...
eth1 ist meine WLAN Karte, die für LAN und Internet sorgt ...

usb1, da ist meine Webcam dran, die ins Internet mit Camsource Bilder reinstellt ...
Nach entfernen der USB Webcam ist immer noch USB1 da, wieso `?

Hmm, ok ich werde mal beide Geräte ausbauen und schauen was passiert.

[EDIT]
Ok, ich habs wohl ... camsource ist ein Programm für meine Webcam, das verursacht nen hohen Last auf IRQ 11 ... aber trotzdem, phpMyAdmin ist immer noch so langsam!
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 6:46 pm    Post subject: Reply with quote

Mir ist aufgefallen, dass camsource ja ein Zombie ist. Ich nehme daheran, dass das zur Zeit sowieso gar nicht funktioniert?

Auf jeden Fall müßte die Interrupt-Last sofort wegfallen, wenn das Gerät entfernt wird.

Und was den Userspace angeht: Ich kann dir nur empfehlen, den Apache mal neuzustarten, weil das mit der Zeit dieses einen Apache-Prozesse/Threads so merkwürdig gewesen ist. Und wenn das nicht hilft, dann fällt mir nicht mehr ein, als das, was ich schon gesagt habe: Das Problem mit der hohen Interrupt-Last lösen und ggf. die PHP-Skripte mittels eAccelerator beschleunigen. Aber letzteres sollte wirklich nur optional sein, denn bei zworK läuft es ja auch ohne (zumindest nehme ich das mal an) brauchbar.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 7:32 pm    Post subject: Reply with quote

Hi!
Also folgender Stand:

1) Das entfernen der USB Camera hilft nicht! Das Programm Camsource selbst ist daran schuld an der hohen Last! Wenn ich das Programm beendet sind die Werte bei IRQ11 fast null ...

2) Warum ist Camsource ein Zombie? Bei mir rennt das Programm ohne Probleme ...

3) Die Ausgabe von top sagt nun, dass erst apache2 einige Zeit knapp 90% CPU Last nutzt ... dann knapp 90% mit MySQL und dann wieder mit 90% apache2 ...

4) Neustart von Apache2 hat nicht geholfen. Auch nicht der Neustart von Gentoo ...

5) Ich habe keine Idee mehr, wie ich das Problem lösen könnte *heul*
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 7:52 pm    Post subject: Reply with quote

Hast du denn mal eAccelerator benutzt? Versuch das doch mal.

Bei MySQL kann man auch einiges tunen. Standardmäßig ist da IIRC beispielsweise kein Query Cache aktiviert. Du könntest mal die Ausgabe vom mysqlreport-Skript posten. Dann bitte mit Query Cache, also mit "--qcache". Einmal vor der benutzung von phpmyadmin und einmal danach.

Wenn du eine top-artige Ansicht der MySQL-Aktivitäten haben willst, dann kannst du auch mtop oder mytop emergen.

Spontan fällt mir ersteinmal nicht mehr ein.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sun Apr 16, 2006 8:03 pm    Post subject: Reply with quote

Hallo!

Übrigens, durch stoppen von Camsource rennt nun Webmin sehr gut, ca.5 Sekunden um eine Seite zu laden, was voll ok ist.

1) Wie nutze ich den MySQL Report? Soll ich jeweils beides vor und nach phpMyAdmin durchführen

2) Ich habe kein mtop und mytop ?

3) Ich teste gleich mal eAccelerator
Back to top
View user's profile Send private message
sschlueter
Guru
Guru


Joined: 26 Jul 2002
Posts: 578
Location: Dortmund, Germany

PostPosted: Sun Apr 16, 2006 8:13 pm    Post subject: Reply with quote

mtop oder mytop kannst du auch emergen, wenn du möchtest. Also, ich meine, die ebuilds heissen auch so.

Ich bräuchte aber nur die Ausgabe des mysqlreport-Skripts. Einfach das Skript ausführen.
Das Skript verwendet einen Standard-Benutzer ein Standard-passwort und eine Standard-Datenbank. Du kannst die Default-Werte natürlich überschreiben. Am besten legst du dir für diese Monitorung-Tools einen speziellen MySQL-Benutzer an, der keine datenbank-spezifischen Rechte beseitzt, und von den globalen Rechten auch nur reload und process

Und wenn du das mysqlreport Skript ausführst, dann bitte mit der Option "--qcache".



Mir ist da noch etwas anders eingefallen: Du könntest auch mal versuchen, persistente Datenbank-Verbindungen zu benutzen. Bei phpmyadmin kann man dazu in der config.inc.php

Code:
$cfg['PersistentConnections']   = TRUE;


einfügen. Bin mir jetzt im Moment nicht sicher, ob das allein bereits ausreichend ist, aber man kanns ja mal versuchen.



Und vielleicht sollten wir mach checken, ob eure Rechner wirklich so vergleichbar sind. Mh, postet doch mal eure BogoMips oder so.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum