[Twisted-Python] epoll reactor problems
Jean-Paul Calderone
exarkun at divmod.com
Wed Apr 11 13:29:11 MDT 2007
On Wed, 11 Apr 2007 11:38:02 -0700, Alec Matusis <matusis at matusis.com> wrote:
>I am now suspecting there is something strange with Twisted 2.5:
>
>Both servers now show 99.9% CPU using top:
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
>6929 alecm 16 0 148m 82m 3588 R 99.9 2.1 414:29.24 twistd
>
>4083 alecm 17 0 135m 70m 3640 R 99.9 1.8 421:00.05 twistd
>
>The first one 6929 is using poll now, 4083 is using epoll. For this time of
>the day with Twisted 2.2 and poll the usual CPU would be 15% for 4083 and
>80% for 6229. These numbers were pretty stable every day over at leats a
>month.
>Both servers seem to be responsive however. There were no code changes.
>
>ps shows different %CPU at the same time:
>
>#ps -C twistd -o pcpu,cmd,pid,size
>%CPU CMD PID SZ
>61.0 /usr/bin/python /usr/local/ 4083 82240
>66.5 /usr/bin/python /usr/local/ 6929 97300
>
>I wonder if we should revert to Twisted 2.2 ASAP
>
I can't speak to whether or not you want to do that, but I can suggest
that if you can provide a more detailed bug report, then any problem in
Twisted will probably be fixed for you.
Jean-Paul
More information about the Twisted-Python
mailing list