Skip to content

[Proposal] Include env var to disable kernel memory accounting when kernel <= 3.10 #1898

@ryarnyah

Description

@ryarnyah

When using RedHat or CentOS, base kernel is 3.10 (with some backport and CONFIG_MEMCG_KMEM..).
We encounter on my current project the same error as described is attached issues.

To avoid reboot all ours nodes in production every week (or recompile kernel on every update) we propose to disable it with an env var DISABLE_KERNEL_MEMORY_ACCOUNTING in libcontainer/cgroups/fs/memory.go.

See: https://github.com/ryarnyah/runc/tree/1898-add-optional-kernel-accounting

See: scality/kubernetes@b04b050
See: kubernetes/kubernetes#61937
See: #1350
See: moby/moby#29638

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