Skip to content

The containerd-shim consume 8M memory. #2020

@yanxuean

Description

@yanxuean

Description
The containerd-shim consume 8M memory when we do e2e-node-test for k8s.

Steps to reproduce the issue:

  1. k8s e2e-node-test (kubelet + cri-containerd + containerd)
    command:
    make test-e2e-node FOCUS="regular resource usage tracking-yan" SKIP="" PARALLELISM=1 RUNTIME="remote" CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/cri-containerd.sock" TEST_ARGS='--container-runtime-process-name="cri-containerd" --container-runtime-pid-file=""'

Describe the results you received:

cloud@ubuntu:cribench$ ps -eo "pid,vsz,rss,comm" | grep container
 1978 3597408 57448 containerd
 1989 2642220 50956 cri-containerd
26112  12164  5260 containerd-shim
26176  12164  5724 containerd-shim
26774  12164  5532 containerd-shim
26795  12228  5696 containerd-shim
26897  12164  5660 containerd-shim

cloud@ubuntu:cribench$ ps -eo "pid,vsz,rss,comm" | grep container
 1978 3597408 63784 containerd
 1989 2642220 51220 cri-containerd
26112  12228  7884 containerd-shim
26176  12228  8352 containerd-shim
26774  12228  8608 containerd-shim
26795  12228  8332 containerd-shim
26897  12228  8296 containerd-shim
26936  12484  7696 containerd-shim

Describe the results you expected:

Output of containerd --version:

cloud@ubuntu:cribench$ containerd --version
containerd github.com/containerd/containerd v1.0.0-139-g90553ef 90553efdef0678b2609aed74926a487f8ff58d1a
cloud@ubuntu:cribench$ which containerd-shim
/usr/local/bin/containerd-shim
cloud@ubuntu:cribench$ ll /usr/local/bin/containerd-shim
-rwxr-xr-x 1 root root 4320064 Jan 16 09:56 /usr/local/bin/containerd-shim*

@containerd/containerd-maintainers @containerd/containerd-reviewers

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions