Skip to content

Deprecate and remove kernel memory tcp#51066

Merged
thaJeztah merged 2 commits intomoby:masterfrom
austinvazquez:deprecate-and-remove-kernel-memory-tcp
Sep 30, 2025
Merged

Deprecate and remove kernel memory tcp#51066
thaJeztah merged 2 commits intomoby:masterfrom
austinvazquez:deprecate-and-remove-kernel-memory-tcp

Conversation

@austinvazquez
Copy link
Contributor

@austinvazquez austinvazquez commented Sep 29, 2025

- What I did

Kernel v6.12 has deprecated memory.kmem.tcp.limit_in_bytes along with all other kernel memory TCP accounting for cgroups v1. [1]

This change deprecates and removes support for KernelMemoryTCP from the API module.

[1] torvalds/linux@d046ff4

- How I did it

- How to verify it

- Human readable description for the release notes

api: remove support for kernel memory TCP accounting (`KernelMemoryTCP`)

- A picture of a cute animal (not mandatory but encouraged)

@austinvazquez austinvazquez self-assigned this Sep 29, 2025
@austinvazquez austinvazquez added this to the 29.0.0 milestone Sep 29, 2025
@austinvazquez austinvazquez force-pushed the deprecate-and-remove-kernel-memory-tcp branch from c57dda4 to 56b8226 Compare September 29, 2025 20:05
@austinvazquez austinvazquez added kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. kind/refactor PR's that refactor, or clean-up code and removed kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. labels Sep 29, 2025
@austinvazquez austinvazquez marked this pull request as ready for review September 29, 2025 20:34
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I'll do a quick push of the markdown, just in case docs.docker.com doesn't like it.

Comment on lines +53 to +56
* Deprecated: The field `KernelMemoryTCP` as part of `POST /containers/{id}/update` and
returned by `GET /containers/{id}/json` is deprecated and will be removed in the next API version.
* Deprecated: The field `KernelMemoryTCP` as part of `GET /info` is deprecated and will be removed
in the next API version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation looks off here; looks like GitHub renders it OK, but I may do a quick push, just in case docs.docker.com isn't able to render it correctly.

Images int
Driver string
DriverStatus [][2]string
SystemStatus [][2]string `json:",omitempty"` // SystemStatus is only propagated by the Swarm standalone API
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot we still had this one; this field was never set by the docker daemon, but was something that was augmented by the swarm v1 API, which. It's possible that Mirantis is still using this, but not sure if they need this to be in the API types from this repository, or if they use their own types to (un)marshal the response.

cc @corhere

Starting with kernel v6.12, kernel memory TCP accounting is deprecated for cgroups v1.
Note: kernel memory TCP accounting is not supported by cgroups v2.

See torvalds/linux@d046ff4

Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
@thaJeztah thaJeztah force-pushed the deprecate-and-remove-kernel-memory-tcp branch from 56b8226 to a7edbe8 Compare September 30, 2025 08:14
@thaJeztah thaJeztah merged commit 4ca8aed into moby:master Sep 30, 2025
56 checks passed
@austinvazquez austinvazquez deleted the deprecate-and-remove-kernel-memory-tcp branch September 30, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate / remove KernelMemoryTCP

3 participants