On Mon, 2010-11-08 at 19:07 +0000, Timo Sirainen wrote:

> I'm currently seeing in my test machine where imaptest is runnng
> something like:

Well, that was stupid. Looks like I suck at Perl and couldn't write an
actually working script. I was looking at the low user/sys CPU usages,
but since they looked ok for some processes, I just thought that Dovecot
is so awesomely fast elsewhere too :) So the problem was that it
reported only the first process's values, which worked well for long
running processes but not for short lived processes..

Attached a new script. Here's another output of what I get myself:

type    real    user    sys     reclaims faults swaps   bin     bout    signals 
volcs   involcs count
master  1252.14 0.58    2.70    138271   0      0       0       16      0       
30101   69      1
anvil   1252.13 0.27    0.23    336      0      0       0       0       0       
16739   6       1
imap    21566.3 2166.63 2718.56 17362595 124    0       14088   6512656 0       
212187  771221  9224
imap-lo 2271.96 4332.52 3043.32 5730026  3      0       328     0       0       
59963   187152  9220
auth    3585.92 3.52    2.58    1729     54     0       5904    0       0       
145214  244     2
log     1252.84 0.86    1.12    347      0      0       8       4560    0       
47245   27      1
config  3590.06 36.98   1.89    2739     366    0       20872   0       0       
103559  2052    2
lmtp    604.16  2.16    1.04    2749     11     0       2328    264     0       
235     42      4

Most of this data is for running "rm -rf mdbox;imaptest secs=2" in a
loop and looks like imap-login was with service_count=1.

Attachment: logparse.pl
Description: Perl program

Reply via email to