Skip to content

cgroup v1 metrics waste memory on excessive calls to isCgroupNSPrivate #182

@swiatekm

Description

@swiatekm

I was investigating memory consumption of the metricbeat system metrics in Kubernetes, and saw the following heap profile in a cluster using cgroup v1:

Image

These calls happen in a loop here, and look like they can be safely moved out of it. In fact, this call checks the running binary's cgroup, so we should be able to do it once per Fetch, rather than once per target PID.
profile.pb.gz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions