High CPU usage (need help)

david touzeau david.touzeau at fr.kaspersky.com
Mon Apr 25 14:31:46 CEST 2011


Using 2.6.5 20110407 + Postfix 2.8.2 in post-queue filter mode.
Hardware : 4 cpus + 4Go memory

Has you can see every time amavisd child turn to more than 60% when
analyze messages
After several times, postfix was unable to send messages trough amavisd
and message turn into queue indefinitely 

Is there a way to tune amavisd in order to release mail after several
seconds or any tips (configuration examples) in order to fix this
issue ?

Please really help No answers in my last email :
http://www.mail-archive.com/amavis-users@amavis.org/msg00234.html



here it is the top result
--------------------------------------------------
top - 13:31:23 up 44 days, 19:08,  2 users,  load average: 2.04, 2.27,
2.21
Tasks: 215 total,   3 running, 212 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.6%us,  2.1%sy, 12.4%ni, 83.5%id,  0.3%wa,  0.0%hi,  0.1%si,
0.0%st
Mem:   3114836k total,  2220384k used,   894452k free,   260520k buffers
Swap:  2945016k total,   153384k used,  2791632k free,   920508k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+
COMMAND                                                                                                                                                                                                            
 9296 postfix   39  19 90324  74m 3468 R  100  2.4   9:54.35
amavisd                                                                                                                                                                                                            
 9297 postfix   39  19 93432  78m 4044 R  100  2.6   9:48.64 amavisd 



here it is the ps results
--------------------------------------------------

postfix   9268  0.5  2.2  85804 71484 ?        SNs  13:17   0:02 amavisd
(master)
 * postfix   9296 47.2  2.4  90324 76236 ?        RN   13:18   3:00
amavisd (ch1-09296-01-5)
*  postfix   9297 45.8  2.5  93432 79920 ?        RN   13:18   2:55
amavisd (ch1-09297-01-24)
postfix   9298  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9299  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9300  0.0  2.2  85804 69340 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9301  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9302  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9303  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9304  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9305  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9306  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9307  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)
postfix   9308  0.0  2.2  85804 69304 ?        SN   13:18   0:00 amavisd
(virgin child)


-- 




More information about the amavis-users mailing list