Re: NOTE_TRACK, EVFILT_PROC, kqueue, and subreapers

2016-12-14 Thread Martin "eto" Misuth
On Tue, 13 Dec 2016 10:49:19 + Jonathan de Boyne Pollard wrote: > Martin "eto" Misuth: > > Subreaper won't even wake when it acquires new child. > > You're following the other discussion about this, ne? I hope meant you this one. No my trips into kqueue/kvent land are very very simple o

Re: NOTE_TRACK, EVFILT_PROC, kqueue, and subreapers

2016-12-13 Thread Jonathan de Boyne Pollard
Jilles Tjoelker: This should probably be fixed. There's another more insidious bug hiding inside kevent() somewhere that causes a kernel abend complaining about a sleeping thread holding a non-sleepable lock. One needs to make fairly heavy use of kevent() in order to trigger it, I believe,

Re: subreapers

2016-12-13 Thread Jonathan de Boyne Pollard
Martin "eto" Misuth: Subreaper won't even wake when it acquires new child. You're following the other discussion about this, ne?

Re: subreapers

2016-12-12 Thread Martin "eto" Misuth
On Sun, 11 Dec 2016 18:00:46 + Jonathan de Boyne Pollard wrote: > What M. Misuth is doing is the most imaginative use of local reapers > that I have come across. Thanks, it's sometimes hard to defend this idea. Many people see it as "wacky" for milion reasons. I am not really persuaded my

subreapers

2016-12-11 Thread Jonathan de Boyne Pollard
Martin "eto" Misuth: Point of tool is simple: it always runs marking itself as "subreaper", thus any descendants who lose parent, that was running under it, will get reparented (and their attached process subtrees as well) under it's process. Once "main", the important and original, child ex

Re: subreapers

2016-12-11 Thread Jonathan de Boyne Pollard
What M. Misuth is doing is the most imaginative use of local reapers that I have come across. What I wrote in the nosh doco back in version 1.0 was: > This yields a slightly more informative process tree. This was presented as a mere side-effect by Poettering and Sievers in 2012. The main i

NOTE_TRACK, EVFILT_PROC, kqueue, and subreapers

2016-12-08 Thread Jonathan de Boyne Pollard
Martin "eto" Misuth: I think that might be the reason why my PID1 s6-svscan on FreeBSD is accumulating zombies sometimes (seems like it is affected by dead descendants of ssh and my experiments). [...] Anyway as you are probably much closer to FreeBSD team than I am, [...] I'm not. You have

Re: subreapers

2016-12-08 Thread Laurent Bercot
Jonathan, since you have implemented that mechanism, could you please shed some light on the goal of subreapers? What is the point? Your post in the stackexchange forum talks about the history and the mechanism of subreapers, but remains silent on why we should have that functionality in the

subreapers

2016-12-08 Thread Jonathan de Boyne Pollard
Martin "eto" Misuth: I think Mr Jonathan de Boyne Pollard might be cooking, or even already has, something similar in nosh. Long since. (-: It was in version 1.0 . Martin "eto" Misuth: at some point I was interested in digging out whether systemd had "subreapers&q