[Dovecot] FreeBSD 6.1-RELEASE/kqueue high CPU load

Taras Savchuk taras at elantech.ru
Wed Sep 20 17:47:10 EEST 2006


LI Xin пишет:
> Paul Lathrop wrote:
>   
>> Taras Savchuk wrote:
>>     
>>> Hi to ALL!
>>>
>>> I have dovecot-1.0r7 installed on FreeBSD 6.1, using kqueue and
>>> Maildir (<20 mailboxes, < 0,5 Gb size). Periodically CPU load of imap
>>> processes increasing up to 60-80%.
>>> Is it normall behavior or not? May be somebody had such kind of problems?
>>>
>>>       
>> I have also experienced this behavior, which is quite bothersome because
>> I sold my supervisor on Dovecot by talking about performance and low
>> resource requirements...
>>     
>
> What if you get some output from ktrace/kdump?  Additionally, try to
> force the process to save a coredump and investigate its .core with gdb
> would help tracking down the issue...
>
> Note that because when using kqueue the process should get a "kqread" if
> it is waiting for kqueue event.  If the process is stuck in "RUN" state
> then a coredump would be more helpful.
>
> Cheers,
>   
~20000 calls to gettimeofday() per second. Is it normall?

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

-- 
С уважением, Савчук Тарас
ООО "Элантек" : Аутсорсинг ИТ, WEB-разработка
+7 (495) 589 68 81
+7 (926) 575 22 11
http://www.elantech.ru
info at elantech.ru



More information about the dovecot mailing list