nerdctl commit taking long time possibly because of fs.Changes walking through all files

Open
#236 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@gogasca is already working on this.

Since Jan 31, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, linux

Research direction

Read fs/diff.go around fs.Changes and fs/diff_unix.go at the linked entry point, then compare the current file walk with overlayfs diff capabilities. Confirm whether this causes the slow nerdctl commit, and validate that the resulting approach avoids walking every file for overlayfs while preserving change detection.

Written by the indexing model from the issue text.

Description

enhancement

We have an 8GB image we are trying to commit with nerdctl. It takes a long time for this to happen. It seems to be because fs.Changes implemented in continuity is not using the diff functionality from overlayfs but just walking every file.

https://github.com/containerd/continuity/blob/206f576332bc85557835d77bc18166adbe761f4e/fs/diff.go#L101

It seems like this needs to be implemented here:

https://github.com/containerd/continuity/blob/main/fs/diff_unix.go#L34

Could someone please take a look to see if our understanding is correct. If it is, what would it take to fix this code so it can work more effectively for overlayfs?

Dominant language
Go
Stars
155
Forks
77
Avg merge
4d 11h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/continuity

All issues in containerd/continuity

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.