Taras Savchuk
2006-Sep-22 00:38 UTC
Dovecot 1.0 rc7 on FreeBSD 6.1-RELEASE/i386 with kqueue eats much CPU
I have a problem with dovecot eating sometimes up to 90% CPU. While making such high cpu load, dovecot calls gettimeofday() more than 20000 times per second: mail2# cat k.dov.l.txt | grep CALL | grep gettimeofday | wc -l 1195552 mail2# head -n 1 k.dov.l.txt 20910 imap 0.000000 CALL gettimeofday(0x80c2c60,0x80c2c68) mail2# tail -n 1 k.dov.l.txt 20910 imap 51.826065 RET gettimeofday 0 Here is my kdump: http://www.elantech.ru/kdump-dovecot.txt.gz top shows high system load (~50%) and small user load (~0-5%). We discussed this problem in dovecot@ mailing list ( http://www.dovecot.org/list/dovecot/2006-September/016096.html ), and people from dovecot@ recomended me to send this problem also to freebsd-stable@ and freebsd-current@. Thanks for help in advance! -- ? ?????????, ?????? ????? ??? "???????" : ?????????? ??, WEB-?????????? http://www.elantech.ru +7 (495) 589 68 81 +7 (926) 575 22 11
Pete French
2006-Sep-22 03:09 UTC
Dovecot 1.0 rc7 on FreeBSD 6.1-RELEASE/i386 with kqueue eats much CPU
> I have a problem with dovecot eating sometimes up to 90% CPU.Are you using kqueue support ? I also had this problem and the solution for me was to recompile it without kqueue support. Now it runs fine. -pete.