Skip to content

Add support for setting swap memory limits via CRI MemorySwapLimitInBytes #6302

@ehashman

Description

@ehashman

What is the problem you're trying to solve

Containerd currently does not appear to have support for setting container swap memory limits via either cgroupsv1 or v2 with the CRI parameter MemorySwapLimitInBytes.

I would like this to be supported in order to have meaningful controls for swap on Kubernetes workloads.

Describe the solution you'd like

See KEP-2400: Node Swap#API Changes for the expected behaviour of this parameter on cgroupsv1 and v2.

Additional context

The CRI-O implementation is here, for reference: cri-o/cri-o@cd8bc4c

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions