Skip to content

systemd's service unit should set LimitNOFILE to 1048576 like docker does #3201

@zaa

Description

@zaa

Description

I've just checked the limit on the max number of opened files for the containerd process on recent version of Container Optimized OS and saw that the process has the limit set to 65536.
I believe it should be set to 1048576 like docker does right now: moby/moby@428d733

Steps to reproduce the issue:

$ cat /usr/lib/systemd/system/containerd.service | grep LimitNOFILE
LimitNOFILE=infinity
$ systemctl show containerd | grep LimitNOFILE
LimitNOFILE=18446744073709551615
$ cat /proc/$(pgrep containerd | head -1)/limits | grep files
Max open files            65536                65536                files

Describe the results you expected:

$ cat /proc/$(pgrep containerd | head -1)/limits | grep files
Max open files            1048576              1048576              files

Output of containerd --version:

containerd github.com/containerd/containerd 1.2.5 bb71b10fd8f58240ca47fbb579b9d1028eea7c84

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions