Repository navigation
Reap the whole process group of generator commands - #16284
autumn-mck wants to merge 1 commit into
Conversation
|
Hi, thanks for looking into this! Before going further I'd like to understand the problem a bit better. Do you have a concrete case where it happens? A reproducer, a JIRA ticket or even just a log of a job where the generator's CPU time went missing would help a lot. The description mentions EPOS4 jobs on Hyperloop, so a job ID or a train link would already be great. I'm asking because the fix adds a fair bit of machinery (subreaper, group-wide reaping, a new kill timeout), and I'd like to see how big the effect actually is before we take that on. One small thing: the commit message tells a slightly different story than the PR description and has no body. Commit messages are the thing that survives in the code, so it's important they tell a good story. Could you make it say what the PR says, i.e. what goes wrong and how this fixes it? Thanks! |
Currently when a group is killed after the 5 s grace period (seen with some EPOS4 jobs on Hyperloop), the generator's CPU time is lost from the metrics, as the shell that started it is killed before it can reap it.
On Linux, this changes the device to be a child subreaper and reaps the command's whole process group.