On Sat, 28 Dec 2019 12:19:30 -0300
Guillermo <gdiazhartusch_at_gmail.com> wrote:
> El vie., 27 dic. 2019 a las 20:56, Oliver Schad escribió:
> >
> > Sorry, I have to correct that a bit: you can use the freezer cgroup
> > as I did, but there is no guarantee, that you can successfully kill
> > a freezed process.
>
> You can't? So the 'kill -9' command in your script might not work
> while the cgroup's state is "FROZEN"?
There are corner cases, where frozen processes can't be killed. Systemd
has the race condition implemented.
Maybe you can react on that, unfreeze these processes and kill them
with the race-condition.
> > So you can decide:
> >
> > 1) race-condition
> > 2) unkillallable processes without race-condition
>
> AFAIK systemd does not (and will not?) use the freezer cgroup
> controller, so I guess it's 1) in that case :)
Exactly. I've checked the code as well. Read through PID list and kill
them one by one with time windows in between, where $SOMETHING could
happen.
Best Regards
Oli
--
Automatic-Server AG •••••
Oliver Schad
Geschäftsführer
Turnerstrasse 2
9000 St. Gallen | Schweiz
www.automatic-server.com | oliver.schad_at_automatic-server.com
Tel: +41 71 511 31 11 | Mobile: +41 76 330 03 47
Received on Sat Dec 28 2019 - 18:16:09 UTC