Skip to content

[v0.26] contentutil: avoid defaulting to ReadAt for fetch - #6367

Merged
tonistiigi merged 1 commit into
moby:v0.26from
tonistiigi:v0.26-picks
Nov 17, 2025
Merged

[v0.26] contentutil: avoid defaulting to ReadAt for fetch#6367
tonistiigi merged 1 commit into
moby:v0.26from
tonistiigi:v0.26-picks

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

cherry-pick #6366

Containerd v2.2 updated the ReadCloser returned from Fetcher to implement ReadAt, but it works by making a separate HTTP request for each read. This means lots of requests depending on the buffer size used by copy. In containerd content pkg buffer is 1MB.

(cherry picked from commit d5b7dda)

Containerd v2.2 updated the ReadCloser returned from Fetcher
to implement ReadAt, but it works by making a separate HTTP request
for each read. This means lots of requests depending on the buffer
size used by copy. In containerd content pkg buffer is 1MB.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit d5b7dda)
@tonistiigi
tonistiigi merged commit 29fc55f into moby:v0.26 Nov 17, 2025
170 of 171 checks passed
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.

2 participants