[Twisted-Python] [RFC] Drop support for Python 3.5 sometime after May 2021?
Glyph
glyph at twistedmatrix.com
Fri May 22 23:42:05 MDT 2020
> On May 19, 2020, at 5:41 AM, Jean-Paul Calderone <exarkun at twistedmatrix.com> wrote:
>
> On Tue, May 19, 2020 at 8:33 AM Barry Scott <barry.scott at forcepoint.com <mailto: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.
In case it is not clear from context - we used to do exactly this. It broke a lot of stuff. The current approach is slow, but robust.
-g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200522/4b4b62cc/attachment-0001.htm>
More information about the Twisted-Python
mailing list