[Twisted-Python] [RFC] Drop support for Python 3.5 sometime after May 2021?

Jean-Paul Calderone exarkun at twistedmatrix.com
Tue May 19 06:41:05 MDT 2020


On Tue, May 19, 2020 at 8:33 AM Barry Scott <barry.scott at forcepoint.com>
wrote:

> On Monday, 18 May 2020 22:21:16 BST Tom Most wrote:
>
> >
> > If looking improve process management in Twisted, I think that the
> > lowest-hanging fruit is to watch children with pidfd, rather than reaping
> > all children on SIGCHLD. This O(n) reaping --- one waitpid() call per
> > running process --- starts to consume substantial CPU. IIRC it pegged a
> > core at 20,000 processes or so.
>
> Why not waitpid for all children (pid=0 or pid=-1) in a single call?
>
> Barry
>

Because then you might reap a child process someone launched with a
different API - eg the Python subprocess module.

Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200519/38dd9724/attachment.htm>


More information about the Twisted-Python mailing list