Добрый день comp,
Приветствую!
Есть простой сервак PIII 600, 256M RAM, 40G HDD, 2 сетевухи, FreeBSD 4.11
apache-php-mysql, tpop3d, postfix-2.1.5 - drweb - spamassasin, squid, BIND 9.3.0,
ipfw
И еще куча по мелочи...
Проблема в том, что perl от spamassasin есть память и много,
так же ведет себя squid :(
Может кто мне объяснить что происходит или направить мои поиски
в нужное русло?
Спасибо.
Вот состояние до рестарта:
last pid: 29671; load averages: 0.08, 0.06, 0.02 up
7+22:31:26 15:49:50
55 processes: 1 running, 54 sleeping
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 350M Active, 41M Inact, 87M Wired, 14M Cache, 60M Buf, 7088K Free
Swap: 2316M Total, 290M Used, 2027M Free, 12% Inuse
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
67657 squid 2 0 191M 61356K poll 7:44 0.00% 0.00% squid
15749 root 2 0 120M 0K accept 3:36 0.00% 0.00% perl5.6
15747 root 2 0 118M 0K accept 3:25 0.00% 0.00% perl5.6
15748 root 2 0 107M 0K accept 2:50 0.00% 0.00% perl5.6
15746 root 2 0 105M 62288K accept 3:43 0.00% 0.00% perl5.6
15745 root 2 0 88728K 33780K accept 3:27 0.00% 0.00% perl5.6
437 mysql 2 14 54496K 2472K select 9:19 0.00% 0.00% mysqld
436 mysql 2 14 54496K 2472K select 7:22 0.00% 0.00% mysqld
426 mysql 2 11 54496K 2472K poll 0:11 0.00% 0.00% mysqld
425 mysql 2 11 54496K 2472K select 0:04 0.00% 0.00% mysqld
439 mysql 18 11 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
434 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
433 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
438 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
435 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
427 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
440 mysql 18 12 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
15744 root 18 0 26324K 0K pause 0:02 0.00% 0.00% <perl5.
70632 clamav 2 0 11848K 212K poll 0:03 0.00% 0.00% clamd
420 www 2 0 8064K 0K accept 0:01 0.00% 0.00% <httpd>
537 www 2 0 7952K 0K accept 0:00 0.00% 0.00% <httpd>
378 root 2 0 7784K 376K select 0:22 0.00% 0.00% httpd
244 root 2 0 5976K 3476K select 1:41 0.00% 0.00% named
28853 root 2 0 5564K 0K sbwait 0:00 0.00% 0.00% <sshd>
28856 spider 2 0 5552K 1844K select 0:00 0.00% 0.00% sshd
70290 drweb 2 0 5548K 4580K poll 0:47 0.00% 0.00% drwebd
Вот после перезапуска сквида:
last pid: 29781; load averages: 0.23, 0.09, 0.03 up
7+22:32:19 15:50:43
56 processes: 1 running, 55 sleeping
CPU states: 0.4% user, 0.4% nice, 0.4% system, 0.4% interrupt, 98.4% idle
Mem: 336M Active, 43M Inact, 81M Wired, 9660K Cache, 60M Buf, 29M Free
Swap: 2316M Total, 164M Used, 2153M Free, 7% Inuse
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
15749 root 2 0 120M 0K accept 3:36 0.00% 0.00% <perl5.
15747 root 2 0 118M 0K accept 3:25 0.00% 0.00% <perl5.
15748 root 2 0 107M 0K accept 2:50 0.00% 0.00% <perl5.
15746 root 2 0 105M 0K accept 3:43 0.00% 0.00% <perl5.
15745 root 2 0 88728K 0K accept 3:27 0.00% 0.00% <perl5.
437 mysql 2 14 54496K 964K select 9:19 0.00% 0.00% mysqld
436 mysql 2 14 54496K 964K select 7:22 0.00% 0.00% mysqld
426 mysql 2 11 54496K 964K poll 0:11 0.00% 0.00% mysqld
425 mysql 2 11 54496K 964K select 0:04 0.00% 0.00% <mysqld
439 mysql 18 11 54496K 964K pause 0:00 0.00% 0.00% <mysqld
434 mysql 18 14 54496K 964K pause 0:00 0.00% 0.00% <mysqld
433 mysql 18 14 54496K 964K pause 0:00 0.00% 0.00% <mysqld
438 mysql 18 14 54496K 964K pause 0:00 0.00% 0.00% <mysqld
435 mysql 18 14 54496K 964K pause 0:00 0.00% 0.00% <mysqld
427 mysql 18 14 54496K 964K pause 0:00 0.00% 0.00% <mysqld
440 mysql 18 12 54496K 964K pause 0:00 0.00% 0.00% <mysqld
29776 squid 2 0 41888K 40912K poll 0:08 44.20% 23.34% squid
15744 root 18 0 26324K 0K pause 0:02 0.00% 0.00% <perl5.
70632 clamav 2 0 11848K 164K poll 0:03 0.00% 0.00% clamd
420 www 2 0 8064K 0K accept 0:01 0.00% 0.00% <httpd>
537 www 2 0 7952K 0K accept 0:00 0.00% 0.00% <httpd>
378 root 2 0 7784K 376K select 0:22 0.00% 0.00% httpd
244 root 2 0 5976K 2788K select 1:41 0.00% 0.00% named
28853 root 2 0 5564K 0K sbwait 0:00 0.00% 0.00% <sshd>
28856 spider 2 0 5552K 668K select 0:00 0.00% 0.00% sshd
70290 drweb 2 0 5548K 0K poll 0:47 0.00% 0.00% <drwebd
Вот после перезапуска spamassassin:
last pid: 29950; load averages: 0.24, 0.13, 0.05 up
7+22:34:18 15:52:42
62 processes: 2 running, 60 sleeping
CPU states: 0.4% user, 0.4% nice, 0.4% system, 0.0% interrupt, 98.8% idle
Mem: 158M Active, 36M Inact, 88M Wired, 8580K Cache, 60M Buf, 208M Free
Swap: 2316M Total, 20M Used, 2296M Free
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
29889 root 2 0 72296K 65264K accept 0:04 2.77% 2.59% perl5.6
437 mysql 2 14 54496K 2472K select 9:19 0.00% 0.00% mysqld
436 mysql 2 14 54496K 2472K select 7:22 0.00% 0.00% mysqld
426 mysql 2 11 54496K 2472K poll 0:11 0.00% 0.00% mysqld
425 mysql 2 11 54496K 2472K select 0:04 0.00% 0.00% mysqld
439 mysql 18 11 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
434 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
433 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
438 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
435 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
427 mysql 18 14 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
440 mysql 18 12 54496K 2472K pause 0:00 0.00% 0.00% <mysqld
29776 squid 2 0 41968K 41008K RUN 0:08 0.05% 0.05% squid
29890 root 2 0 27072K 25788K accept 0:01 2.25% 2.10% perl5.6
29888 root 2 0 27072K 25616K accept 0:01 0.00% 0.00% perl5.6
29887 root 2 0 27072K 25616K accept 0:01 0.00% 0.00% perl5.6
29865 root 18 0 26352K 24908K pause 0:02 0.00% 0.00% perl5.6
29891 root 2 0 26352K 24900K accept 0:00 0.00% 0.00% perl5.6
70632 clamav 2 0 11848K 164K poll 0:03 0.00% 0.00% clamd
420 www 2 0 8064K 0K accept 0:01 0.00% 0.00% <httpd>
537 www 2 0 7952K 0K accept 0:00 0.00% 0.00% <httpd>
378 root 2 0 7784K 376K select 0:22 0.00% 0.00% httpd
244 root 2 0 5976K 3260K select 1:41 0.00% 0.00% named
28853 root 2 0 5564K 0K sbwait 0:00 0.00% 0.00% <sshd>
28856 spider 2 0 5552K 668K select 0:00 0.00% 0.00% sshd
70290 drweb 2 0 5548K 600K poll 0:47 0.00% 0.00% drwebd