Skip to content

ctr -n k8s.io c ls use much memory #12858

@ningmingxiao

Description

@ningmingxiao

Description

ctr c ls use much memory

Every container has over 4000 environment variables (because user use default value enableServiceLinks:true on k8s and has many services) ctr c ls will use about 523m memory

Image

pprof
ctr01.pb.gz

Steps to reproduce the issue

1.create many service on a node
2.ctr -n k8s.io c ls
3.[root]$ ps -auxf|grep ctr|grep k8s.io
root 668412 64.0 0.1 1197256 535788 pts/4 Sl+ 22:58 0:00 | _ ctr -n k8s.io c ls

Describe the results you received and expected

ctr c ls use less memory

What version of containerd are you using?

any

Any other relevant information

No response

Show configuration if it is related to CRI plugin.

any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions