Hello, guys,
During our work we face to problem - get events about processes die in
user space (not all but some of them). In the past we had special module
which solve this problem.
But now I think that this task is quite native for cgroups subsystem.
Move interesting PIDs into special group and set event handler. We
investigate how events made in the memcg and implement proof of concepts
patch against mainline (maybe little bit old, but it's just RFC message)
with the same approach to "tasks" file.
So, I see several possible use cases for others with this patch.
1) replace wait4() for processes where we dont need for return status as
well as we want just know about changing status of some group of processes
2) As extension of 1, implementing some balancing mechanism in the user
space between several groups. For example if some process in one group
consume much system resources, processes in other groups will be
protected from slowdown.
3) Extremely useful in the libcgroup (in my mind), because now it's
unprotected against changing state with hands.
Need you opinion about this.
Thank you.
-- Best regards, Alex Nikiforov, Mobile SW, Advanced Software Group,
Moscow R&D center, Samsung Electronics
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html