Shane Chrisp wrote:

On Fri, 2005-07-01 at 19:02 +0300, Anton Butsyk wrote:
Hi list!

everything work but 40 qmail-smtpd processes (or less nevermind) eat my
CPU time up to 100 %
(CPU states: 94.5% user,  0.0% nice,  3.1% system,  2.3% interrupt,  0.0%
idle)


Is it actually the Qmail processes that are using the CPU or is it
something else. Whats showing up in top or iostat/vmstat etc. That will
at least give you a clue where to start looking.

Shane


For now only 11 connections to qmail:

97 processes:  11 running, 86 sleeping
CPU states: 95.7% user, 0.0% nice, 2.0% system, 2.3% interrupt, 0.0% idle
Mem: 53M Active, 53M Inact, 46M Wired, 59M Buf, 329M Free
Swap: 1024M Total, 1024M Free

 PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
818 root 124 0 3244K 2332K RUN 0:44 9.08% 9.08% qmail-smtpd 827 root 123 0 3244K 2332K RUN 0:19 9.08% 9.08% qmail-smtpd 820 root 124 0 3244K 2332K RUN 0:29 9.03% 9.03% qmail-smtpd 825 root 123 0 3244K 2332K RUN 0:24 9.03% 9.03% qmail-smtpd 831 root 123 0 3244K 2332K RUN 0:17 9.04% 9.03% qmail-smtpd 833 root 123 0 3244K 2332K RUN 0:16 9.04% 9.03% qmail-smtpd 828 root 123 0 3244K 2332K RUN 0:18 8.99% 8.98% qmail-smtpd 849 root 123 0 3244K 2332K RUN 0:09 8.88% 8.64% qmail-smtpd 851 root 123 0 3244K 2332K RUN 0:06 9.46% 8.64% qmail-smtpd
...
#vmstat 1
procs      memory      page                   disk   faults      cpu
r b w     avm    fre  flt  re  pi  po  fr  sr ad0   in   sy  cs us sy id
12 15 0  188100 331912  324   0   1   0 262   0   0 30957 2829 2426 65  6 29
11 15 0 188100 331900 2484 0 0 0 2129 0 12 31317 7885 2675 84 16 0 11 15 0 188024 332044 3367 0 0 0 2924 0 3 31269 10750 2816 83 17 0 11 15 0 188104 331848 3385 0 0 0 2854 0 0 31270 10704 2797 83 17 0 11 15 0 188056 331904 3568 0 0 0 3064 0 1 31215 11168 2825 79 21 0 11 15 0 188032 331952 3286 0 0 0 2809 0 0 31240 10427 2784 84 16 0 11 15 0 188028 331948 3185 0 0 0 2714 0 1 31238 10107 2765 84 16 0 11 15 0 188104 331828 3493 0 0 0 2965 0 0 31224 11039 2820 83 17 0 11 15 0 189200 331684 3496 0 0 0 2985 0 1 31233 11203 2921 86 14 0 11 15 0 189344 331612 3482 0 0 0 3000 0 0 31231 10870 2795 84 16 0 11 15 0 189524 331548 2775 0 0 0 2358 0 0 31207 8849 2667 84 16 0 11 15 0 190512 331336 2251 0 0 0 1916 0 0 31234 7053 2579 87 13 0 11 15 0 190524 331316 2622 0 0 0 2236 0 0 31207 8397 2643 80 20 0 11 15 0 190520 331316 2354 0 0 0 2003 0 0 31210 7531 2587 83 17 0 11 15 0 190476 331368 2602 0 0 0 2237 0 0 31121 8244 2620 87 13 0 11 15 0 190540 331296 2225 0 0 0 1883 0 0 31211 7416 2590 83 17 0

11 -- procs wating CPU
15 - disk (vpopmail i guess)

#iostat 1
     tty             ad0             cpu
tin tout  KB/t tps  MB/s  us ni sy in id
  1   96  4.48  38  0.17  67  0  4  2 27
  0  129  0.00   0  0.00  82  0 16  2  0
  0   43  0.00   0  0.00  88  0  9  2  0
  0   43  0.00   0  0.00  87  0 10  3  0
  0   43 16.00   5  0.08  85  0 14  1  0
  0   43  0.00   0  0.00  84  0 12  3  0
  0   43 27.20  10  0.27  87  0 10  3  0
  0   43  0.00   0  0.00  86  0 12  2  0
  0   43  2.00   1  0.00  90  0  8  2  0
  0   43  3.20   5  0.02  88  0 11  2  0
#netstat -LSa
Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen         Local Address
...
tcp4  16/0/20        *.smtp
....
16 - connections wait for


Regards,

Anton Butsyk

Reply via email to