[issue6397] Implementing Solaris "/dev/poll" in the "select" module

Jesús Cea Avión report at bugs.python.org
Mon Nov 7 15:56:49 CET 2011


Jesús Cea Avión <jcea at jcea.es> added the comment:

Please, review.

With current code, each devpoll object has capacity for managing 256 fds, by default. This is about 2048 bytes. The cost seems reasonable, since a normal program will have only a few devpoll objects around. I have considered an optional parameter to tune this, but interaction with rlimit is messy. Even if we manage 65536 fds, the memory cost is about 512Kbytes per devpoll, and you surely can affort it if you are actually managing 65536 descriptors...

The code is not threadsafe. It doesn't crash, but concurrent use of a devpoll has undefined results.

Please, review for integration.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6397>
_______________________________________


More information about the Python-bugs-list mailing list