Hi,
I found that if there is any connection to timsieved it causes high
cpu load.
Steps to reproduce:
1. start daemon
strace -f dbmail-timsieved -D -vvvv -p /var/run/dbmail/dbmail-timsieved.pid
2. it prints
[pid 27431] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x7fa233c6c000
[pid 27431] write(15, "27431\n", 6) = 6
[pid 27431] epoll_wait(10,
3. connect to this daemon
telnet host 2000
4. epoll* syscalls called frequently and cpu usage is about 100% until
you close connection
[pid 27431] epoll_wait(10, {?} 0x23d1ad0, 32, 60000) = 1
[pid 27431] epoll_ctl(10, EPOLL_CTL_MOD, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_DEL, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_ADD, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_MOD, 16, {...}) = 0
[pid 27431] epoll_wait(10, {?} 0x23d1ad0, 32, 60000) = 1
[pid 27431] epoll_ctl(10, EPOLL_CTL_MOD, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_DEL, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_ADD, 16, {...}) = 0
[pid 27431] epoll_ctl(10, EPOLL_CTL_MOD, 16, {...}) = 0
May be problem is in libevent.
dbmail 3.0.2-8
libevent 2.0.21-1
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev