The work left on the node after the image is downloaded

To run AI workloads on Kubernetes, you first have to pull images such as CUDA, vLLM, or NeMo to the node. Even without model weights, these images are 4.9GB to 20.0GB compressed. When you think of pulling an image this large, download time is what comes to mind first, but after the download the node still has to unpack the image: decompress the compressed layers and store them on disk. In this measurement, the NeMo image (20.0GB compressed) took 243 seconds to download from a registry on the same host, and unpack took another 128 seconds on overlayfs.

In containerd, the component that unpacks layers onto the node disk this way and mounts them as the container’s root filesystem is the snapshotter. The default is overlayfs, which unpacks each layer into a directory and presents the layers stacked on top of each other, but the official containerd binary also includes 6 other snapshotters. erofs stores layers as filesystem images, zfs and btrfs keep them as filesystem snapshots, and devmapper and blockfile store them as block devices. There is also native, which copies the whole parent snapshot for every layer.

What the snapshotter does in containerd, and the 7 candidates compared
[Figure 1] How containerd and the snapshotter relate, and the 7 candidates compared

AI images are much larger than typical images, and they are also used somewhat differently; the note below sums up how. So for images like these, might there be a better option than overlayfs? I was curious about this myself, which is why I started this measurement. A different way of storing layers should also change unpack time, disk usage, memory usage, and file read speed, but how large the differences are with large images was something I could only find out by measuring. The scope is environments that use containerd directly, and Docker Engine 29 or later, which uses the containerd image store by default on a fresh install. CRI-O and Podman, on the other hand, use a separate storage layer called containers/storage, so I left them out of scope.

Before I go into the details, here is the conclusion: no snapshotter was better than overlayfs on every metric. Each of the 4 candidates I measured to the end after the screening (erofs, devmapper, blockfile, zfs) had metrics where it beat overlayfs, but it paid for them on other metrics. On the image with 100 layers, some combinations could not pull the image or could not create a container. So rather than which candidate is fastest, this post focuses on the cases that failed and what to check before switching snapshotters. The full numbers and how to reproduce them are in the GitHub repository.

[Note] How do AI images differ from typical images?
  • Size: a single layer can reach several GB (one vLLM layer is 5.97GB compressed). The images I measured are 4.9 to 20.0GB compressed, while nginx:alpine, measured alongside as a control, is 0.03GB.
  • Files read at startup: when a container starts, it reads large files such as the CUDA libraries and many small files such as the torch package.
  • Where the weights live: AWS EKS best practices recommend keeping large model weights out of the image and fetching them from object storage at run time, so what a node pulls is often a runtime image with CUDA, PyTorch, and an inference engine but no weights. The images I measured are like that too.
  • When nodes are added: every new node has to pull that image from scratch. Each cloud offers a separate feature to pull images faster, GKE Image streaming, AKS Artifact Streaming, and SOCI parallel pull on EKS, which suggests that image pull time matters in real operations.

What I measured and how

The candidates are the 7 snapshotters in the official containerd 2.4.1 binary. In a screening run of 1 run per candidate, btrfs and native could not pull NeMo and were dropped, and I measured the remaining 5 (overlayfs, erofs, devmapper, blockfile, and zfs) 5 times each. I built the devmapper thin-pool with the example values in the containerd docs (64KiB data blocks), and zfs used lz4 compression. erofs was configured to convert layers directly on the node, without compression or the pre-converted cache (layer_content_caches). The pre-converted cache is a feature that converts layers to erofs in advance and keeps them on a separate disk; if every layer of an image is in the cache, the node does no download or conversion at pull time.

The images are CUDA 13.3.1 (cudnn-devel, 4.9GB compressed, 15 layers), vLLM 0.29.0 (10.7GB, 37 layers), and NeMo 26.08 (20.0GB, 100 layers), all for linux/arm64. On the node, I first fetched the layer content with ctr content fetch and then measured unpack time on its own with crictl pull. After that I measured container start time, large-file reads (4.56GB of CUDA libraries), small-file reads (the whole torch package), import torch time, image deletion time, disk usage, and memory consumption during unpack, dropping the page cache before every read. On Kubernetes, I created 8 pods from the same vLLM image at once and, after all of them finished import torch, compared the memory left in the kubelet view and in the kernel view.

The measurement node is 1 VirtualBox VM (arm64, 8 vCPU, 16GB memory) running on a MacBook Pro M4 Pro 48GB, and the registry is also a VM on the same host. Download time differed between snapshotters only within the range of the repeated measurements, and the approaches that shorten it, such as lazy loading, P2P (Peer-to-Peer) distribution, and baking images into the node image, are outside the scope. Unless noted otherwise, the numbers in this post are medians of 5 runs measured on October 26 to 27, 2026, and the Kubernetes numbers are medians of 3 runs on October 24.

[Note] Terms used in this post
  • Kernel MemAvailable: the value in /proc/meminfo, an estimate of the memory available for new use, including cache that can be reclaimed.
  • Memory consumption during unpack: kernel MemAvailable just before unpack minus its lowest value during unpack. Reclaimable cache also counts as consumption.
  • Working set: a container’s memory usage minus inactive file cache. Part of the page cache is included in it.
  • kubelet available memory: the node’s availableBytes in the kubelet summary API (/stats/summary), calculated from working set. I confirmed in 1 demonstration run that pod eviction under memory pressure follows this value.
  • memory.peak: the peak memory usage recorded in the container’s cgroup, including page cache charged to the container.
  • thin-pool: the pool that hands out space to the thin devices the devmapper snapshotter creates for each snapshot. From here on I refer to a pool by its data block size, as in “64KiB pool”.
  • read_ahead: how much the kernel reads ahead from a device in anticipation of sequential reads.
  • ARC (Adaptive Replacement Cache): the memory cache zfs uses. It keeps blocks compressed.

Results: every candidate was better on some metrics and fell short on others

Comparing the 4 candidates with overlayfs on each metric, with one cell per image, gives the figure below. Cells where the effect is good are blue, and cells where it is bad are red.

Each candidate compared with overlayfs
[Figure 2] Difference from overlayfs by candidate (containerd 2.4.1)

In the figure, the metrics that were clearly better than overlayfs come down to image deletion time, zfs disk usage, and erofs small-file reads. Specifically, deleting the NeMo image took 10.6 seconds on overlayfs, but 0.17 seconds on erofs, 0.13 seconds on blockfile, and 0.81 seconds on devmapper. zfs used 34 to 46% less disk thanks to lz4 compression, and erofs read the whole torch package in about 1/4 of the overlayfs time (vLLM 0.50s vs 1.96s).

Unpack time, on the other hand, which you pay every time you pull an image, was shorter than overlayfs only for NeMo pulled with erofs (-12%); the rest were the same or longer. devmapper in particular was +19 to 42%, blockfile +18% on CUDA and NeMo, and erofs was also 35% longer on vLLM. And even though erofs cut small-file reads to 1/4, its import torch time stayed at +1% on vLLM and -6% on NeMo, and in the Kubernetes measurement that created 8 pods at once, import time was the same on overlayfs (2.71 seconds) and erofs (2.72 seconds). So, personally, I think this is the result to look at first when considering erofs. The sections below go through the combinations that failed and the costs specific to each candidate, one at a time.

Finding 1. Some combinations failed on the image with 100 layers

In the screening run, btrfs could not pull NeMo within the 90-minute measurement limit. When I raised the limit and pulled it again, the download finished in 4 minutes, but the time to commit 1 layer grew from 10 seconds at first to an average of 123 seconds after the 80th layer, and at 102.5 minutes only 98 of the 100 layers had been committed.

The slowdown comes from fs.DiffUsage, which the btrfs snapshotter runs on every layer commit to calculate usage and which compares the parent snapshot with the new one. Because each subvolume has a different device number, the same file is not recognized as the same file, and when size and modification time match and the nanosecond value is 0, it reads the file contents to the end to compare them. The comparison covers every layer stacked so far, so commits take longer the later the layer. Indeed, 93% of the goroutine dumps I took every 30 seconds during the diagnosis were reading file contents, and the CRI (Container Runtime Interface) snapshot stats collection was comparing the same tree at the same time, so most of the unpack time appears to have gone into this comparison. That the files in this image have a nanosecond value of 0 is my inference from these dumps; I did not check the files separately with stat.

native copies the whole parent snapshot for every layer, so on an ext4 disk the disk filled up while pulling NeMo. Copying and stacking all 100 layers works out to about 2,200GB, a size a 120GB disk could never hold. On xfs (reflink), which shares blocks, the disk did not fill up, but it processed only 59 layers in 5,400 seconds. The containerd docs say native is similar to Docker’s vfs driver, and the Docker docs say vfs is meant for testing or for situations where no CoW (Copy-on-Write) filesystem is available. Given this, native looks hard to use for pulling large images on production nodes.

In fact, what cancelled the first btrfs and native pulls in the screening run was not the snapshotter but CRI’s image_pull_progress_timeout (default 5 minutes). CRI cancels a pull when the bytes received do not grow for 5 minutes. Sometimes, however, a layer that has finished downloading is still counted as an in-progress request (containerd #13909), and then the last progress time is not updated, so when unpack after the download went past 5 minutes, the pull was treated as making no progress and was cancelled. That day, requests were left behind in 6 of the 7 first NeMo pulls. The other candidates were not cancelled only because their unpack after the download took less than 5 minutes. So on nodes where unpack after the download can exceed 5 minutes, it seems best to raise this value to something large enough regardless of the snapshotter. It should not be 0, because when I set it to 0 during the diagnosis, the pull never started at all (the same symptom as containerd #14158).

erofs also failed on NeMo when its layers were compressed with lz4hc or zstd. The pull succeeded, but creating a container failed with a mount options is too long error both with ctr run and through CRI, which Kubernetes uses, and the compressed pre-converted cache could not create a NeMo container either. Unlike the uncompressed case, containerd’s mount manager did not finish shortening the paths in the overlay mount options, so the options went over the length limit; I could not determine why this happens only when compressed. vLLM, with 37 layers, succeeded, but the layer count at which failures start is outside the scope of this measurement.

Since every failed combination came from NeMo, with its 100 layers, if your images have many layers it is a good idea to check once, with the images you will actually use, everything from pull to container creation before changing the snapshotter or the erofs settings.

Finding 2. On erofs, devmapper, and blockfile, kubelet counted less available memory

On Kubernetes, before creating the 8 pods from the same vLLM image, kubelet available memory was the same in every condition, at 15.99 to 16.19GB. After all 8 pods finished import torch, kubelet available memory and kernel MemAvailable side by side look like this.

Memory left after creating the same 8 vLLM pods
[Figure 3] Memory left after creating 8 vLLM pods (kubelet view and kernel view)

Kernel MemAvailable was the same at 12.99 to 13.03GB except on zfs, but kubelet available memory was lower than overlayfs (12.53GB) by 2.16GB on erofs, 1.51GB on devmapper, and 4.31GB on blockfile. These differences were the same size as the differences in the sum of pod working sets (erofs +2.27GB, devmapper +1.59GB, blockfile +4.55GB), and matched the order of how much page cache (Cached) the node held. In other words, memory that the kernel counts as reclaimable cache was counted by kubelet as memory in use. Why more of this cache builds up is covered in “Why these results?” below.

To see whether this difference actually affects eviction, in a separate measurement on October 15 (where the pods kept a python process running after import torch), I set the eviction threshold between the kubelet available memory of overlayfs and erofs (10,954Mi), and only 2 pods on the erofs side were evicted (1 run). Reaching the default eviction threshold (100Mi), however, requires the node’s memory to be almost full, so what this demonstration shows goes only as far as the direction: on a node close to the threshold, the side using erofs comes under memory pressure first. In addition, pods with memory limits (768Mi to 1536Mi) were not killed by OOM (Out Of Memory) on either overlayfs or erofs, because what grew was reclaimable page cache, and the kernel shrank the cache when a pod reached its limit. Instead, the memory.peak of erofs containers was higher at the 1Gi and 1536Mi limits (1.46GB vs 0.63GB for pods with a 1536Mi limit) and the same at 768Mi.

So if you use these 3 snapshotters on nodes that run several pods from the same image, first check whether alerts and eviction thresholds based on working set or memory.peak can keep the same values as with overlayfs.

Finding 3. On devmapper, read time and available memory changed together with the thin-pool settings

With devmapper configured with the thin-pool example values in the containerd docs (64KiB data blocks), reading 4.56GB of CUDA libraries took 3.84 seconds, 2.6x overlayfs’s 1.46 seconds (October 26 to 27). The read requests sent to the device numbered about 70,500, close to 4.56GB divided by 64KiB (about 69,500), so the reads can be seen as reaching the device in data-block units.

A pool with the data block raised to 512KiB did cut the requests to about 9,540, and its reads were 30% shorter than overlayfs, but in the October 27 Kubernetes measurement its kubelet available memory was 1.87GB lower than the 64KiB pool. Raising the data block also raises the thin device’s read_ahead, which the kernel sets to 2x the data block (minimum 128KiB; 1,024KiB on the 512KiB pool), so to separate the 2, I also measured conditions with only read_ahead fixed by a udev rule over three days starting October 28.

As a result, kubelet available memory changed with the read_ahead size. On the pools measured on Kubernetes, kubelet available memory was the same within 0.08GB whenever read_ahead was the same, regardless of data block size, and compared with the 64KiB pool it was lower by 1.80 to 1.92GB at read_ahead 1,024KiB and by 4.90 to 4.95GB at 8,192KiB (October 30 to 31). The amount the pods read from the device, the node’s page cache, and the sum of pod working sets grew by the same amount, so I concluded that the cache grew by the amount read ahead and that this reduced kubelet available memory.

Read time, on the other hand, got shorter only when the data block and read_ahead were raised together. With read_ahead fixed at 128KiB, read time was within 10% of the 64KiB pool at any data block size from 64KiB to 1,024KiB. Conversely, raising only read_ahead on the 64KiB pool to 1,024KiB or 8,192KiB brought 3.80 seconds down to 2.09 and 2.31 seconds, but that was still longer than overlayfs on the same night, at 1.49 seconds (October 29 to 30). Only on pools with data blocks of 256KiB or more and read_ahead of 1,024KiB were reads faster than overlayfs, at 1.06 to 1.16 seconds (October 30 to 31).

Small-file reads and import torch time, in addition, stayed longer than or equal to overlayfs even with the data block raised to 1,024KiB. So with devmapper it is better to choose the data block and read_ahead together rather than keep the example values from the docs, but the pools where read_ahead was raised to 1,024KiB to shorten large-library reads had at least 1.8GB less kubelet available memory than the 64KiB pool on Kubernetes. Also, the combination of a 256KiB pool with read_ahead 1,024KiB was not measured on Kubernetes.

Finding 4. zfs cut disk usage by 34 to 46%, but MemAvailable dropped by up to 12.9GiB during unpack

zfs used less disk thanks to lz4 compression, and containers from the same image also shared the page cache. During unpack, however, kernel MemAvailable dropped by 6.0 to 12.9GiB depending on the image, close to how much the ARC grew during unpack (a peak of 12.6 to 13.2GiB for vLLM and NeMo in the October 23 measurement). The node has 16GB of memory, so while unpacking NeMo, most of the available memory was gone.

Setting the ARC cap (zfs_arc_max) to 4GiB before creating the zfs pool brought this drop down to 4.3 to 4.5GiB, and the other metrics were the same as without the cap. I did not measure whether the ARC is actually reclaimed under memory pressure, though, so on nodes where unpack runs alongside other workloads, setting a cap seems the safer choice.

After creating 8 pods on Kubernetes, zfs’s kernel MemAvailable was about 1.2GB lower than in the other conditions (October 24), but its kubelet available memory was the highest after overlayfs. In the October 27 measurement, the ARC size (1.0GB) was close to that day’s MemAvailable difference (1.04 to 1.07GB), but I did not check whether the ARC is subtracted from MemAvailable. Unlike memory, reads and start time were longer than overlayfs: small-file reads were 32 to 46% longer and import torch 22 to 25% longer, and import across the 8 pods was 1.17x on October 24 and 1.06x on October 27. So if you are considering zfs, set an ARC cap and also check the start time of your real workloads.

Finding 5. In some combinations, the image disk values in the kubelet summary API differed from the actual values

The kubelet summary API reports the image filesystem’s capacity (capacityBytes), free space (availableBytes), and usage (usedBytes), and depending on the snapshotter, these values differed from the actual ones.

On blockfile, usedBytes was 320GiB, 2.7x the device capacity (128.8GB), and it was already 256GiB before pulling vLLM; both 256GiB and 320GiB are integer multiples of the scratch file size in the blockfile settings (64GiB). Checking the kubelet 1.37 source, image GC (Garbage Collection) and the eviction signal imagefs.available do not read usedBytes, though I did not confirm this through actual GC and eviction behavior. Monitoring that reads this value, on the other hand, shows it as is.

With the erofs pre-converted cache, too, usedBytes was 80GB, while actual usage of the working disk holding the containerd root was 0.9GB. This is because cache blobs on another disk were counted in snapshot usage. Even with usedBytes at 80GB, image GC did not run, and the cache disk is not subject to kubelet GC in the first place, so that space has to be managed separately.

On devmapper, capacityBytes matched the capacity of the working disk (157.4GB), not the thin-pool, so this value could not tell how full the thin-pool was.

Since some combinations report image disk values that differ from the actual values, before switching snapshotters it is worth checking which of these 3 values your monitoring and disk alerts read.

On the pre-release development version of containerd 2.5 (main), erofs unpack time changed

From containerd 2.5 (planned for January 6, 2027), the default way to build erofs layers changes from mkfs.erofs to a Go converter inside containerd (go-erofs) (containerd #13589). As “Why these results?” below explains, the long erofs unpack of vLLM on 2.4.1 came from mkfs.erofs. So to check early whether this delay goes away, I measured erofs alone again on main, the development branch before the 2.5 release. The commit I used is 9f3f084b43b2 (December 1, 2026), and I ran 5 rounds per condition on the night of December 2. The conditions are official 2.4.1, main with the existing settings unchanged (mkfs_options is set, so it uses mkfs.erofs; called main + mkfs.erofs from here on), and main’s default with mkfs_options removed (the Go converter).

erofs unpack time: containerd 2.4.1 and pre-release main
[Figure 4] erofs unpack time (containerd 2.4.1 and pre-release main)

In the December 2 measurement, main + mkfs.erofs matched 2.4.1 within 2% on unpack time and containerd CPU usage. With the Go converter, on the other hand, vLLM unpack was 12% shorter than main + mkfs.erofs (from 114.5 seconds to 101.1 seconds) and containerd CPU usage was 34% lower. Testing the converter on its own, 70,651 entries in one directory took about as long as the same entries split across 70 directories, so the cost that came from entries piling up in one directory can be seen as gone with the Go converter.

CUDA and NeMo, however, actually took 18% longer to unpack than with main + mkfs.erofs (December 2 measurement; NeMo from 120.5 seconds to 142.6 seconds). containerd CPU usage stayed the same or dropped while only the time grew, and I could not determine the cause. main is not a release, so 2.5.0 may give different results, and overlayfs was not measured on the same night, so every ratio in this section compares erofs conditions with each other. If I measure again with 2.5.0, I will update the repository.

Note also that on main, setting mkfs_options or enabling use_mkfs makes containerd use mkfs.erofs instead of the Go converter. This includes a configuration that sets -T0 --mkfs-time, which the containerd docs list for reproducible builds, so if erofs unpack time stays the same after you upgrade to 2.5, start by checking whether mkfs_options is still there.

Why these results?

First, erofs on 2.4.1 took 35% longer to unpack only on vLLM because 1 layer of the vLLM image (5.97GB compressed) holds 70,651 flashinfer kernel files in a single directory, and mkfs.erofs 1.9.4 scans that directory from the start every time it adds an entry. In a test with a synthetic tar, 70,000 entries in one directory took 29.7 seconds, and the same number split across 70 directories took 0.28 seconds. Microsoft’s LLM container cold start measurement, published in April 2026, also found that the EROFS snapshotter pulled the vLLM image more slowly than overlayfs. That measurement had 2 to 3 runs per condition, so it only shows a direction.

erofs did not cut unpack time much on the other images either, because gzip decompression takes up a large share of unpack time. In the earlier phase that compared only overlayfs and erofs (on the ext4 containerd working disk), NeMo unpack with erofs was 11% shorter than overlayfs, and when I only decompressed the same layers, 63 to 70% of NeMo unpack time (overlayfs 63%, erofs 70%) was decompression, which does not depend on the snapshotter. So even though erofs was 29% shorter on the remaining part, building the filesystem, the overall difference stayed at 11% (an approximation, since containerd overlaps decompression and writing).

Read time was generally shorter with fewer requests sent to the device. For example, when reading the torch package, erofs read the layer blob files directly (0 loop device reads), with 694 requests, far fewer than overlayfs (13,380), and a large 1,805KiB per request. I could not determine, however, why this difference did not carry over to import torch time.

The difference in kubelet available memory seen in Finding 2 was related to whether containers share the page cache. When I had 2 containers from the same image read the same file (1.10GB) one after the other (October 22, 3 runs), on overlayfs and zfs the cache barely grew when the second container read it, but on erofs and devmapper the cache grew by the amount read for each container, and on blockfile by 2x that amount. On erofs, even the first container used 2x the amount read, because both the layer blob file cache and the erofs file cache got filled. Merging the 37 layers each container mounts into 1 mount (fsmeta.erofs) did not reduce the cache either, so the duplication on erofs appears to come from each container mounting the layers separately, rather than from the number of mounts.

I also looked at ways to reduce this duplication on erofs. With the kernel’s page cache sharing option (CONFIG_EROFS_FS_PAGE_CACHE_SHARE) and a containerd patch for measurement, the erofs file cache did not grow as containers were added, but the 2x on the first container remained. This approach cannot be used with the current official setup, because the Ubuntu kernel has this option disabled and containerd 2.4.1 cannot change erofs mount options. I also tried a directio mount: the blob file cache disappeared, but small-file reads took 4.3x as long.

With zstd-compressed layers, does erofs do better than overlayfs?

After publishing this post, I received the opinion that erofs is efficient at extracting large layers of several GB. As shown above, much of the unpack time in this measurement is gzip decompression, which has nothing to do with the snapshotter, so the advantage of erofs could have been hidden inside it. I therefore recompressed the layers of the same images with zstd (level 3), which is cheaper to decompress, and measured 3 runs on December 4. The unpacked layer contents are the same as with gzip. Here is the unpack time as the median of the 3 runs.

Imageoverlayfs (gzip)overlayfs (zstd)erofs (gzip)erofs (zstd)
CUDA22.6s11.0s21.5s11.3s
vLLM82.0s39.8s111.0s77.2s
NeMo132.8s71.2s115.0s63.4s

The compression format made the difference, more than the snapshotter. Switching to zstd shortened unpack by 46 to 51% on overlayfs and by 30 to 48% on erofs. The gap between erofs and overlayfs, on the other hand, stayed small with zstd: about the same for CUDA (+3%), 11% shorter for NeMo as with gzip, and 94% longer for vLLM. For vLLM, overlayfs got shorter by the decompression cost while erofs appears to have still paid the conversion cost of the entries crowded into one directory, so the gap widened. With zstd, erofs also used 24% (CUDA) and 8% (NeMo) more containerd CPU than overlayfs.

So at least in this environment (containerd 2.4.1, mkfs.erofs 1.9.4, a VM with 8 vCPUs), erofs did not turn out to be noticeably more efficient on large layers. If you build the images yourself, compressing the layers with zstd had a much larger effect on unpack time than changing the snapshotter. This is a preliminary result from 3 runs, and 5 repeated runs, the other snapshotters, parallel unpack, and the Go converter of containerd 2.5 are not included, so I will run a separate measurement that covers them too.

So what should you do?

Organized by node situation, what I have covered so far comes down to the table below. The table rests on the measurements, but what to consider is my interpretation.

If the nodeConsiderWhat to check
runs several pods from the same image, or has little spare memoryKeep overlayfserofs, devmapper, and blockfile had 1.51 to 4.31GB less kubelet available memory with 8 pods
is short on diskzfs (lz4 compression)MemAvailable drops by up to 12.9GiB during unpack, so set zfs_arc_max; small-file reads +32 to 46%
pulls images with many layers (100 in this measurement)Rule out btrfs, native, and compressed erofsCheck pull through container creation with your real images

In terms of cost, zfs had the smallest disk usage of the 5 measured. In the earlier phase, compressing erofs blobs also cut disk usage by 34 to 46%, but it could not create a NeMo container and containerd CPU usage went up to 2.2 to 2.8x. Even on a node that replaces images often, I would not switch snapshotters just because overlayfs took 10.6 seconds to delete 1 NeMo image, because every replacement also repeats the unpack, and depending on the image, unpack can get longer, as with vLLM on erofs.

If you do switch snapshotters, it is worth checking the following 4 things in advance.

First, the containerd CRI pull settings. The default unpack_config in containerd 2.4.1 lists only overlayfs and erofs, so for other snapshotters CRI pull works only after you add them yourself. As described in Finding 1, set image_pull_progress_timeout to a value that is large enough and not 0.

Second, monitoring that reads kubelet metrics, and eviction thresholds. As Findings 2 and 5 showed, working set and image disk values are counted differently depending on the snapshotter, so review your alerts and the memory.available eviction threshold again.

Third, memory-related settings for each snapshotter. If you use zfs, set the ARC cap with zfs_arc_max before creating the zfs pool. With devmapper, you have to tune the thin-pool data block and the thin device read_ahead together to choose whether read time or available memory comes first.

Fourth, erofs setting combinations. Enabling the tar index (enable_tar_index) only made unpack longer than the default configuration, and nothing improved on the measured metrics. The pre-converted cache cut pull time to 0.1 to 0.44 seconds, but building the cache took 5 to 9x the unpack time, it needed 75GB of cache disk, and it could not be used together with set_immutable or fs-verity. Given these results, it seems best to keep erofs at its default configuration and consider the pre-converted cache only when you can afford the time to build the cache and 75GB of disk.

Caveats when reading the numbers

The snapshotter disk was a VDI (VirtualBox Disk Image) file on the host SSD, so device latency and costs that depend on request size may differ from a real server. Also, there was no GPU or inference: I measured only up to import torch, the Kubernetes and page cache measurements have 3 runs, and the eviction demonstration 1 run. Where this post says values differ or are the same, I judged that by whether the ranges of the repeated measurements do not overlap and the median difference is at least 5% for time, 0.1GiB for memory, and 1% for disk; it is not a statistical test. I did not apply this criterion to the Kubernetes results, which have only 3 runs. The results are for containerd 2.4.1, erofs-utils 1.9.4, kernel 7.0, and kubelet 1.37.0.

Closing

The opening question was “for images like AI images, which are much larger than typical images and are used somewhat differently, might there be a better option than overlayfs?” The answer within the scope of this measurement was “no snapshotter is better than overlayfs on every metric.” The metrics where the 4 candidates beat overlayfs came with costs such as lower kubelet available memory, a MemAvailable drop during unpack, or longer times on other reads. On the image with 100 layers, some combinations also failed: btrfs and native could not pull the image, and compressed erofs could not create a container.

So for now, it seems best to keep the default, overlayfs, and switch only on nodes where a specific metric such as disk is a real burden, after testing the candidates yourself with that node’s images. For erofs, results may change as the conversion method changes in containerd 2.5, so check again after the release comes out.

The full numbers for each condition, the results of the configuration variants, and the scripts for reproducing the measurement are in the GitHub repository.