HDD qui swap ?

HDD qui swap ? - Linux et OS Alternatifs

Marsh Posté le 26-12-2001 à 01:02:10    

Le disque dur (IDE) de ma passerelle/serveur travaille tout le temps et je me demandais quelle en était la cause ?
 
Apres un top :
 

Code :
  1. 1:01am  up 1 day,  3:49,  2 users,  load average: 0,10, 0,09, 0,08                                                      78 processes: 75 sleeping, 3 running, 0 zombie, 0 stopped                                                                       CPU states:  3,7% user,  2,7% system,  0,0% nice, 93,5% idle                                                                    Mem:   126924K av,  117680K used,    9244K free,       0K shrd,    1192K buff
  2. Swap:  248968K av,     792K used,  248176K free                   52692K cached


 
Pas assez de ram ?
Ou alors je dois m'orienter vers autre chose ?
Merci pour vos réponses

 

[edtdd]--Message édité par die488--[/edtdd]

Reply

Marsh Posté le 26-12-2001 à 01:02:10   

Reply

Marsh Posté le 26-12-2001 à 01:14:47    

En réfléchissant, je me rends compte que celà à commencé plus ou moins en même temps que la mise en place du firewall.
Celà peut-il influencer le HD ?
 
PS: le firewall est celui-ci http://monmotha.mplug.org/firewall [...] 2.3.8-pre2 édité

Reply

Marsh Posté le 26-12-2001 à 10:26:50    

Je trouve que tu as beaucoup de process. Tu peux faire un  :
ps uacx
 
PS: mon firewall tourne dans 10Mo de mémoire et n'appel jamais le disque, donc je pense pas à lui.

 

[edtdd]--Message édité par kadreg--[/edtdd]


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
Reply

Marsh Posté le 26-12-2001 à 10:52:12    

le firewall tourne en mémoire et pas sur le disque dur...
# ps aux stp

Reply

Marsh Posté le 26-12-2001 à 10:52:52    

Fais un 'lsof' pour voir la liste des fichiers ouverts.


---------------
C'est en forgeant qu'on devient con comme un forgeron.
Reply

Marsh Posté le 26-12-2001 à 10:55:47    

lsof est rarement installé par défaut en fait...

Reply

Marsh Posté le 26-12-2001 à 11:15:15    

si le service updatedb tourne, tu peux être sûr que ton disque va swapper pour rien...

Reply

Marsh Posté le 26-12-2001 à 14:13:00    

Code :
  1. # ps aux
  2. USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
  3. root         1  0.0  0.4  1356  528 ?        S    Dec24   0:04 init [3]
  4. root         2  0.0  0.0     0    0 ?        SW   Dec24   0:00 [keventd]
  5. root         3 52.0  0.0     0    0 ?        SW   Dec24 1279:52 [kapm-idled]
  6. root         4  0.0  0.0     0    0 ?        SW   Dec24   0:02 [kswapd]
  7. root         5  0.0  0.0     0    0 ?        SW   Dec24   0:00 [kreclaimd]
  8. root         6  0.0  0.0     0    0 ?        SW   Dec24   0:00 [bdflush]
  9. root         7  0.0  0.0     0    0 ?        SW   Dec24   0:00 [kupdated]
  10. root         8  0.0  0.0     0    0 ?        SW<  Dec24   0:00 [mdrecoveryd]
  11. root       566  0.0  0.0     0    0 ?        SW   Dec24   0:00 [eth0]
  12. root       707  0.1  0.4  1432  572 ?        S    Dec24   2:55 syslogd -m 0
  13. root       716  0.0  0.8  2000 1132 ?        S    Dec24   0:00 klogd -2
  14. named      728  0.0  4.1 13308 5312 ?        S    Dec24   0:00 named -u named
  15. named      732  0.0  4.1 13308 5312 ?        S    Dec24   0:00 named -u named
  16. named      733  0.1  4.1 13308 5312 ?        S    Dec24   2:29 named -u named
  17. named      738  0.0  4.1 13308 5312 ?        S    Dec24   0:00 named -u named
  18. named      739  0.0  4.1 13308 5312 ?        S    Dec24   0:19 named -u named
  19. root       748  0.0  0.8  2596 1052 ?        S    Dec24   0:03 /usr/sbin/sshd
  20. root       764  0.0  0.7  2248  952 ?        S    Dec24   0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
  21. root       777  0.0  0.4  1568  520 ?        S    Dec24   0:04 /usr/sbin/dhcpd eth0
  22. root       873  0.0  1.4  4844 1848 ?        S    Dec24   0:02 sendmail: accepting connections
  23. root       887  0.0  0.3  1428  436 ?        S    Dec24   0:00 gnu-pop3d -d 10 -t 600
  24. root      1032  0.0  2.3  6224 2960 ?        S    Dec24   0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DPERLPROXIED -DH
  25. apache    1039  0.0  2.1  6328 2760 ?        S    Dec24   0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DPERLPROXIED -DH
  26. apache    1040  0.0  2.1  6328 2760 ?        S    Dec24   0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DPERLPROXIED -DH
  27. apache    1041  0.0  2.1  6328 2760 ?        S    Dec24   0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DPERLPROXIED -DH
  28. apache    1042  0.0  2.1  6328 2760 ?        S    Dec24   0:00 httpd-perl -f /etc/httpd/conf/httpd-perl.conf -DPERLPROXIED -DH
  29. root      1047  0.0  2.8 43988 3644 ?        S    Dec24   0:00 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  30. root      1054  0.0  0.9  2620 1148 ?        S    Dec24   0:00 /usr/bin/perl /usr/sbin/advxsplitlogfile
  31. root      1086  0.0  0.5  1576  664 ?        S    Dec24   0:00 crond
  32. root      1097  0.0  0.7  2040 1008 ?        S    Dec24   0:00 /bin/sh /usr/bin/safe_mysqld --datadir=/var/lib/mysql --pid-fil
  33. mysql     1126  0.0  9.3 30108 11920 ?       S    Dec24   0:02 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  34. mysql     1128  0.0  9.3 30108 11920 ?       S    Dec24   0:02 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  35. mysql     1129  0.0  9.3 30108 11920 ?       S    Dec24   0:02 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  36. root      1130  0.0  2.6  5656 3384 ?        S    Dec24   0:00 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/minis
  37. mysql     1131  0.0  9.3 30108 11920 ?       S    Dec24   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  38. xfs       1143  0.0  2.3  4268 2988 ?        S    Dec24   0:00 xfs -port -1 -daemon -user xfs
  39. root      1216  0.0  0.9  2336 1144 tty1     S    Dec24   0:00 login -- root
  40. root      1217  0.0  0.3  1324  448 tty2     S    Dec24   0:00 /sbin/mingetty tty2
  41. root      1218  0.0  0.3  1324  448 tty3     S    Dec24   0:00 /sbin/mingetty tty3
  42. root      1219  0.0  0.3  1324  448 tty4     S    Dec24   0:00 /sbin/mingetty tty4
  43. root      1220  0.0  0.3  1324  448 tty5     S    Dec24   0:00 /sbin/mingetty tty5
  44. root      1221  0.0  0.3  1324  448 tty6     S    Dec24   0:00 /sbin/mingetty tty6
  45. root      1224  0.0  1.2  2760 1632 tty1     S    Dec24   0:00 -bash
  46. irc       1707  0.0  8.0 16852 10172 ?       S    Dec24   0:12 src/ircd
  47. irc       1713  0.0  1.6  3560 2116 ?        S    Dec24   0:02 ./eggdrop
  48. irc       1715  0.0  1.4  2844 1896 ?        S    Dec24   0:06 ./services
  49. root      5264  0.0  0.3  1428  412 ?        S    Dec25   0:00 gnu-pop3d -d 10 -t 600
  50. root      5385  0.0  0.4  1784  628 tty1     S    Dec25   0:00 pure-ftpd (SERVER)
  51. root      5748  0.0  0.3  1428  412 ?        S    Dec25   0:00 gnu-pop3d -d 10 -t 600
  52. root      7596  0.0  0.3  1428  412 ?        S    Dec25   0:00 gnu-pop3d -d 10 -t 600
  53. root      8072  0.0  0.3  1428  412 ?        S    Dec25   0:00 gnu-pop3d -d 10 -t 600
  54. root      9101  0.0  0.3  1428  412 ?        S    Dec25   0:00 gnu-pop3d -d 10 -t 600
  55. apache   10650  0.1  4.6 45496 5908 ?        S    Dec25   1:14 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  56. apache   10661  0.1  5.8 47060 7420 ?        S    Dec25   1:08 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  57. apache   10809  0.1  5.9 47116 7572 ?        S    Dec25   0:54 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  58. apache   10812  0.1  5.8 47044 7488 ?        S    Dec25   1:22 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  59. apache   10895  0.1  4.7 45584 5988 ?        S    Dec25   1:14 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  60. apache   11333  0.1  5.8 47020 7464 ?        S    00:16   0:57 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  61. apache   11403  0.0  5.8 47076 7472 ?        S    00:28   0:45 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  62. apache   11498  0.0  4.8 45708 6148 ?        S    00:55   0:46 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  63. apache   11499  0.1  5.8 47004 7400 ?        S    00:55   1:04 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  64. apache   11500  0.1  5.7 46956 7360 ?        S    00:55   0:57 httpd -DPERLPROXIED -DHAVE_PHP4 -DHAVE_PROXY -DHAVE_ACCESS -DHA
  65. root     11576  0.0  0.3  1428  412 ?        S    01:07   0:00 gnu-pop3d -d 10 -t 600
  66. mysql    12414  0.0  9.3 30108 11920 ?       S    08:43   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  67. mysql    12601  0.0  9.3 30108 11920 ?       S    10:05   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  68. mysql    12603  0.0  9.3 30108 11920 ?       S    10:06   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  69. mysql    12606  0.0  9.3 30108 11920 ?       S    10:08   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  70. mysql    13031  0.0  9.3 30108 11920 ?       S    10:32   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  71. mysql    14362  0.0  9.3 30108 11920 ?       S    11:07   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  72. mysql    14415  0.0  9.3 30108 11920 ?       S    11:11   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  73. mysql    14420  0.0  9.3 30108 11920 ?       S    11:11   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  74. root     14721  0.0  0.3  1428  436 ?        S    11:32   0:00 gnu-pop3d -d 10 -t 600
  75. root     14731  0.0  0.3  1428  436 ?        S    11:33   0:00 gnu-pop3d -d 10 -t 600
  76. mysql    14832  0.0  9.3 30108 11920 ?       S    11:39   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  77. mysql    15557  0.0  9.3 30108 11920 ?       S    12:54   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=my
  78. root     15787  0.0  0.3  1428  436 ?        S    13:39   0:00 gnu-pop3d -d 10 -t 600
  79. root     15837  0.0  1.3  3120 1664 ?        S    13:41   0:00 /usr/sbin/sshd
  80. root     15838  0.0  1.2  2680 1600 pts/0    S    13:41   0:00 -bash
  81. root     15944  0.0  0.3  1428  436 ?        S    13:54   0:00 gnu-pop3d -d 10 -t 600
  82. root     16072  2.0  2.1  5812 2748 ?        S    14:09   0:01 sendmail: ./fBMFH2ZV017790 mailrecv.gohip.com.: user open
  83. root     16078  2.8  2.1  5812 2736 ?        S    14:10   0:00 sendmail: ./fBPKtuHU007563 relay.mx.skynet.be.: client MAIL
  84. root     16080  0.0  0.6  2648  804 pts/0    R    14:11   0:00 ps aux


voilà
 
J'ai installé et exécuté lsof mais la liste est tellement longue que je ne sais la poster...
Si il le faut, je la copie dans un txt et la poste en attachement !
 
Merci pour votre aide

Reply

Marsh Posté le 26-12-2001 à 15:05:43    

limite le nombre d'instances apache et mysql simules. 10 de chaque powah pas utile. 2/3 suffit pour une utilisation "homesque"
 
t'as vraiment besoin de ircd ?? il bouffe vraiment pas mal de ram  
 
gnu-pop3d + sendmail utiles ensemble ?
 
tu edites les fichier /etc/inetd.conf et tu vires tout ce qui te semble pas utile (met en commentaire).
 
c'est une mandrakerie ?


---------------
I'm too old for this shit.
Reply

Marsh Posté le 26-12-2001 à 15:31:26    

merci pour cette réponse claire !
Comment puis-je faire pour limiter les process apache et mysql ?
j'ai besoin d'ircd...
c'est bien une mandrake
 
Ce que je comprends pas c'est que ca fait 6 mois que j'ai tous ces services sur la même config et que ca tournait sans prob (sans que le disque ne travaille à fond). J'aimerais en connaître la cause.
 
le fichier lsof (demandé plus haut) : http://212.68.199.108/html/lsof.gz

Reply

Marsh Posté le 26-12-2001 à 15:31:26   

Reply

Marsh Posté le 26-12-2001 à 19:39:09    

:bounce:

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed