[Dovecot] imap daemon consuming all the cpu (with patch to fix the problem)

Rui Lopes rgl at ruilopes.com
Sat Aug 26 03:42:16 EEST 2006


Hi,

Rui Lopes wrote:
> I've tried to do a full text search on the inbox, it run fine, but the 
> imap daemon started to eat all the CPU until I closed the email client.
> 
> I'm running dovecot 1.0.rc7 [using kqueue] on FreeBSD 6.1.
> 
> ktrace shows this pattern over and over (its seems to be looping):
> 
>  49021 imap     CALL  kevent(0x4,0,0,0x80df000,0x5,0xbfbfe988)
>  49021 imap     RET   kevent 1
>  49021 imap     CALL  gettimeofday(0x80d0b00,0x80d0b08)
>  49021 imap     RET   gettimeofday 0
>  49021 imap     CALL  gettimeofday(0x80d0b00,0x80d0b08)
>  49021 imap     RET   gettimeofday 0
>  49021 imap     CALL  kevent(0x5,0,0,0xbfbfe930,0x1,0xbfbfe928)
>  49021 imap     RET   kevent 1
>  49021 imap     CALL  gettimeofday(0xbfbfe990,0)
>  49021 imap     RET   gettimeofday 0
> 
> Maybe this is useless to track the cause... :(
> 
> Unfortunately(?) I can't reproduce this again, because searches run OK.

I'm was able to reproduce this problem.  The attached patch will fix the 
problem.


Best regards,
Rui Lopes

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot-1.0.rc7-fix-ioloop-notify-kqueue-cpu-spin.patch
Url: http://dovecot.org/pipermail/dovecot/attachments/20060826/efb64813/attachment.asc 


More information about the dovecot mailing list