intel / intel/gprofiler

Limit gProfiler memory & CPU usage

Open
#529 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.