#29833·podman

podman build layer finalization slows in 5.8.7 vs 5.8.4 with fuse-overlayfs in Kubernetes

Author: kamkieCreated Sep 24, 2026Updated Sep 29, 2026
Labelskind/bugregression

Issue Description

In a Kubernetes CI executor running rootful Podman inside a container, podman build using the official quay.io/podman/stable image became about 3 times slower between Podman 5.8.4 and 5.8.7. The slowdown is concentrated in the silent period after a RUN command finishes and before the next STEP appears. The measured build does not include a registry push or CI artifact creation/upload.

We compared the same immutable application source and Dockerfile on the same Kubernetes worker, using these pinned image digests:

  • 5.8.4: quay.io/podman/stable@sha256:3c99be9108dacd2b25d2f343c91386abd14a5ceaca68aa3e8d7f6ee2ebd50a16
  • 5.8.7: quay.io/podman/stable@sha256:0da679a76d0ec35880419caeaf89b3627c3fbbc8e6cbf5456b69368b58bac628

Both images use the overlay storage driver with fuse-overlayfs 1.17, ext4 backing storage, and Native Overlay Diff: false. This may involve Buildah or containers/storage layer finalization; the timing evidence alone does not establish which component is responsible.

Steps to reproduce the issue

The generic probe below runs in two sequential Kubernetes CI pods, once per image digest above. Both pods use the same runner configuration. The 128 MB single-file layer alone finishes quickly on both versions. Adding 50,000 small files makes the difference visible.

dockerfile
FROM alpine:3.20
RUN dd if=/dev/zero of=/blob bs=1M count=128 && date -u '+payload_finished=%Y-%m-%dT%H:%M:%SZ'
RUN mkdir /small-files && i=0; while [ "$i" -lt 50000 ]; do printf '%08d\n' "$i" > "/small-files/file-$i"; i=$((i + 1)); done; date -u '+small_files_finished=%Y-%m-%dT%H:%M:%SZ'
RUN date -u '+next_step_started=%Y-%m-%dT%H:%M:%SZ'

Run podman build --no-cache -t localhost/podman-probe:latest . with timestamped CI logs. No registry push is involved.

Describe the results you received

Measurement 5.8.4 5.8.7
Full application podman build 586 s 1,782 s
yarn install command itself 151 s 203 s
Quiet period after yarn install until next STEP 142 s 764 s
yarn build command itself 186 s 193 s
Quiet period after yarn build until next STEP 82 s 569 s
Generic probe: 50,000-file RUN completion to next STEP 21 s 36 s
Generic probe: final COMMIT to build_finished 14 s 27 s

The application image is approximately 1.69 GB. The actual application commands changed much less than the inter-step pauses. The generic probe showed the same direction but a smaller effect: total CI job time was 57 s versus 84 s. A single 128 MB file without the many-file layer took only about 12 s versus 14 s per CI job.

Describe the results you expected

Layer finalization on 5.8.7 should be comparable to 5.8.4 for the same source and storage configuration, or the difference should be explained by an intended change.

podman info output

Relevant sanitized fields from both runs:

yaml
host:
  os: linux
  arch: amd64
  kernel: 6.8.0-1067-azure
store:
  graphDriverName: overlay
  graphOptions:
    overlay.mount_program: /usr/bin/fuse-overlayfs
    overlay.mountopt: nodev,fsync=0
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  backingMountFilesystem: ext4
fuse-overlayfs: "1.17"

Podman in a container

Yes, in a Kubernetes CI pod.

Privileged Or Rootless

Rootful Podman in the CI container.

Upstream Latest Release

No. The latest upstream release is 6.1.2. This report compares the supported 5.8 series supplied by the official quay.io/podman/stable image; v6.1.2 is not available as a tag on that image. We tested the latest 5.8 image available to this pipeline.

Additional environment details

Linux amd64 Kubernetes executor; the Podman container runs on a Linux worker with an ext4-backed writable container layer. The regression was observed with unchanged application build inputs and then checked with the generic Dockerfile above. The exact application repository and private CI logs are not public; sanitized timestamps and timings are included here.

Source: podman-container-tools/podman