Benchmarks show ComfyUI in Docker (CUDA 12.4) runs at 0% penalty if you fix the /dev/shm OOM crash

fluxdraw · reddit · 2026-09-13

A detailed benchmark comparing ComfyUI in Docker (Nvidia Container Toolkit, CUDA 12.4) vs bare-metal Ubuntu 24.04 across FLUX.1-dev, SDXL, and SD 1.5 found zero compute overhead and identical VRAM footprint (14.2 GB for FLUX.1 FP8). The catch: Docker's default 64MB /dev/shm causes OOM crashes with multithreaded dataloading — fixed with --shm-size=8g (or shmsize in compose). Full guide and production Dockerfile included.

Original post →

More from Infra

Infra channel →