Hello, 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. Best regards, Rui Lopes
Rui Lopes
2006-Aug-26 00:42 UTC
[Dovecot] imap daemon consuming all the cpu (with patch to fix the problem)
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.pl>
Seemingly Similar Threads
- Patch: ioloop using kqueue/kevent for FreeBSD
- dovecot bug - kevent(EV_DELETE, 9)
- imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
- dovecot-1.0b3 kevent error/warning message
- PATCH Add support for kqueue in ioloop subsystem