Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory-monitor: Simplify cgroup task handling in the handler script.
Simplify the process of extracting PIDs from a cgroup. Instead of using a temporary file and filtering tasks to find unique PIDs based on TIDs, the script now directly reads the `cgroup.procs` file to retrieve the PIDs. This approach reduces complexity, removes the need for intermediate processing, and improves the efficiency of PID retrieval. The redundant temporary task list creation has been removed to streamline the code. Signed-off-by: Nikolay Martyanov <[email protected]>
- Loading branch information