Skip to content

Reap the whole process group of generator commands - #16284

Open
autumn-mck wants to merge 1 commit into
AliceO2Group:devfrom
autumn-mck:generator-cmd-reap
Open

autumn-mck wants to merge 1 commit into
AliceO2Group:devfrom
autumn-mck:generator-cmd-reap

Conversation

@autumn-mck

Copy link
Copy Markdown
Contributor

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.

@sawenzel

sawenzel commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

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!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants