my epoll_wait() is consuming too much CPU, a simple strace shows that:
strace -c -f -p 3655
Process 3655 attached with 5 threads
^CProcess 3655 detached
Process 3656 detached
Process 3657 detached
Process 3658 detached
Process 3659 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
64.43 32.228205 596819 54 epoll_wait
35.31 17.661939 17 1063312 195547 futex
0.26 0.131803 0 448140 gettimeofday
0.00 0.000090 3 27 write
0.00 0.000050 1 54 epoll_ctl
0.00 0.000000 0 54 27 read
0.00 0.000000 0 9 sendmsg
0.00 0.000000 0 90 54 recvmsg
------ ----------- ----------- --------- --------- ----------------
100.00 50.022087 1511740 195628 total
there are just 54 epoll_wait() calls, but usecs/call of epoll_wait() is 596819, why?