Limit gProfiler memory & CPU usage
Open
enhancement
- Dominant language
- Python
- Stars
- 826
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
The easiest way to place a hard limit on the memory used by gProfiler, as gProfiler is a privileged app, is to use cgroups. We have such API in granulate-utils - see [this file](https://github.com/Granulate/granulate-utils/blob/master/granulate_utils/linux/cgroups/memory_cgroup.py). We can use it to place gProfiler in a cgroup & set its limit to e.g 1GB to ensure we don't grow too much, e.g due to https://github.com/Granulate/gprofiler/issues/528
Contributor guide
Assessment
This issue has not been assessed yet.