Skip to content

Pull optimization: unpack largest layers first in pullWith - #3749

Open
Amy (amyxu-08) wants to merge 4 commits into
agent-substrate:mainfrom
amyxu-08:lpt-image-pull
Open

Amy (amyxu-08) wants to merge 4 commits into
agent-substrate:mainfrom
amyxu-08:lpt-image-pull

Conversation

@amyxu-08

@amyxu-08 Amy (amyxu-08) commented Nov 9, 2026 •

Copy link
Copy Markdown

Part of the optimizations outlined in Investigating Substrate Image Pull Speed

Currently, images with skewed layer sizes and a total number of layers > layerPullConcurrency (=4) may have larger layers queue behind smaller ones when unpacking. This PR uses Longest Processing Time (LPT) scheduling based on the size of the image layers.

AI use: AI-assisted, I reviewed and tested it (go test -race -count=3 -shuffle=on ./internal/imagecache andhack/run-e2e.sh against dev cluster).

  • Tests pass
  • Docs updated (none applicable)

Change-Id: I9c8b934f6d220134ca30dc9ace478f3d80bb8784

…ocessed first

Change-Id: I9c8b934f6d220134ca30dc9ace478f3d80bb8784
Signed-off-by: Amy Xu <amywxu@google.com>
Change-Id: I60ae80f216eed307cf76ede3526608f1747ad11a
Signed-off-by: Amy Xu <amywxu@google.com>
@amyxu-08 Amy (amyxu-08) changed the title Unpack largest layers first in pullWith Pull Optimization: unpack largest layers first in pullWith Nov 9, 2026
@amyxu-08 Amy (amyxu-08) changed the title Pull Optimization: unpack largest layers first in pullWith Pull optimization: unpack largest layers first in pullWith Nov 9, 2026
Change-Id: I04d5162c09d874c8317babd1c86fb2bc2b0f734a
Signed-off-by: Amy Xu <amywxu@google.com>
@amyxu-08
Amy (amyxu-08) marked this pull request as ready for review November 10, 2026 01:14
Change-Id: I7fcf3c044be39217f5b027efae52094b072b6986
Signed-off-by: Amy Xu <amywxu@google.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant