[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: BaseProactorEventLoop._loop_self_reading() uses an overlapped read of 4096 bytes. I don't understand how it wakes up the event loop. When the operation is done, _loop_self_reading() is scheduled with call_soon() by the Future object. Is it enough to wake up th

[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread STINNER Victor
STINNER Victor added the comment: "Exception ignored when trying to write to the signal wakeup fd" message comes from the signal handler in Modules/signalmodule.c. The problem is that Python gets a lot of SIGCHLD signals (the test scripts creates +300 processes per second on my computer). The

[issue21595] Creating many subprocess generates lots of internal BlockingIOError

2014-05-28 Thread Sebastian Kreft
New submission from Sebastian Kreft: Using the asyncio.create_subprocess_exec, generates lost of internal error messages. These messages are: Exception ignored when trying to write to the signal wakeup fd: BlockingIOError: [Errno 11] Resource temporarily unavailable Getting the messages depene