Skip to content

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

Open
containerd/containerd
#12842

Description

@pankajkumar229

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.

func Changes(ctx context.Context, a, b string, changeFn ChangeFunc) error {

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?

Activity

  1. AkihiroSuda commented on Jan 23, 2024

    @AkihiroSuda
    Member
  2. pankajkumar229 commented on Jan 23, 2024

    @pankajkumar229
    Author

    Thanks for pointing this out. The changes look like they are almost complete. Wondering why this was never merged. if it would be possible to make this fix work by people unfamiliar with this codebase in a reasonable amount of time.

  3. guyLee687 commented on Oct 3, 2024

    @guyLee687

    @AkihiroSuda Do you know if this issue can be closed and when #236 (comment) will be deployed to production for containerd?

    I'm also trying create a service using "nerctl commit" without the large latency involved.

  4. gogasca commented on Mar 4, 2025

    @gogasca

    @pankajkumar229 @AkihiroSuda any status on this? we are interested in seeing this solved and would be willing to contribute to fix.

  5. AkihiroSuda commented on Mar 6, 2025

    @AkihiroSuda
    Member

    #145 has been merged but probably not used in nerdctl yet.
    Investigation and contribution is highly welcome.

  6. added 6 commits that reference this issue on Jan 31, 2026
    2af3117
    59bcbbe
    aed1ff0
    65d2a0a
    a5c8525
    82accc3
  7. added 15 commits that reference this issue on Feb 19, 2026
    f16a445
    7b28a32
    d4f7bb2
    d275e98
    95ae94a
    c8d938d
    e4c7b8c
    5985f67
    43f158d
    9c6e657
    6706a4f
    ee86c01
    2b74c87
    7938dfd
    855a88b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions