Hastening process cleanup with process_mrelease()
Hastening process cleanup with process_mrelease()
Posted Jul 26, 2021 20:26 UTC (Mon) by josh (subscriber, #17465)Parent article: Hastening process cleanup with process_mrelease()
This doesn't seem like it needs a completely separate syscall. pidfd_send_signal takes flags, and a "reap process memory immediately" flag seems like it would fit well there.
Posted Jul 26, 2021 23:19 UTC (Mon)
by NYKevin (subscriber, #129325)
[Link] (1 responses)
(Why have two? To improve throughput. A can spend all its CPU cycles on identifying useful things to kill, and B can spend its CPU cycles on actual reaping. You can then adjust the relative priorities of those two tasks independently of each other with the usual process-management techniques.)
Posted Jul 27, 2021 1:10 UTC (Tue)
by josh (subscriber, #17465)
[Link]
Posted Jul 30, 2021 14:03 UTC (Fri)
by brauner (subscriber, #109349)
[Link]
In one of the first iterations this has been a flag to pidfd_send_signal() but I really disliked it. I get why it feels appealing but how memory is released has nothing to do with signaling imho. It's better suited as a separate API where it can also be extended in the future.
Hastening process cleanup with process_mrelease()
Hastening process cleanup with process_mrelease()
Hastening process cleanup with process_mrelease()