|
|
Subscribe / Log in / New account

Hastening process cleanup with process_mrelease()

Hastening process cleanup with process_mrelease()

Posted Jul 26, 2021 23:19 UTC (Mon) by NYKevin (subscriber, #129325)
In reply to: Hastening process cleanup with process_mrelease() by josh
Parent article: Hastening process cleanup with process_mrelease()

If you want process A to do the killing, and process B to do the reaping, then you need a new syscall regardless.

(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.)


to post comments

Hastening process cleanup with process_mrelease()

Posted Jul 27, 2021 1:10 UTC (Tue) by josh (subscriber, #17465) [Link]

Interesting point! Technically process B (or thread B) could do the kill as well after A picked out a target, but it does make sense to have a high-priority process do the kill and a lower-priority (but still higher-priority-than-normal) process do the reclamation.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds