Skip to content

Commit 6331715

Browse files
authored
Merge pull request #1233 from thaJeztah/go_kmem_deprecated
specs-go: mark LinuxMemory.Kernel as deprecated
2 parents ab29785 + cabeea7 commit 6331715

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

specs-go/config.go

+6
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ type LinuxMemory struct {
375375
// Total memory limit (memory + swap).
376376
Swap *int64 `json:"swap,omitempty"`
377377
// Kernel memory limit (in bytes).
378+
//
379+
// Deprecated: kernel-memory limits are not supported in cgroups v2, and
380+
// were obsoleted in [kernel v5.4]. This field should no longer be used,
381+
// as it may be ignored by runtimes.
382+
//
383+
// [kernel v5.4]: https://github.com/torvalds/linux/commit/0158115f702b0ba208ab0
378384
Kernel *int64 `json:"kernel,omitempty"`
379385
// Kernel memory limit for tcp (in bytes)
380386
KernelTCP *int64 `json:"kernelTCP,omitempty"`

0 commit comments

Comments
 (0)