VRAM & CUDA Tuning
NVMe Scratch Sizing & Safetensors Cold-Load Latency
Cut 30 GB Flux + Wan2.2 safetensors cold-load latency from 45 seconds to under 6 seconds using local PCIe NVMe and extra_model_paths.yaml.
3.5+ GB/s NVMe Read · 400 GB Model Pool · mmap Zero-Copy
Why Safetensors Loves Local NVMe + Large System RAM
Safetensors memory-maps (mmap) tensor headers directly from disk. Placing /mnt/nvme/comfyui-models on local NVMe with 64 GB RAM keeps hot weights cached in the OS page cache.
Separating Outputs From Model Storage
Write temporary Wan2.2 PNG sequences and MP4 renders to a separate scratch folder with an automated 24-hour retention sweep so disk never hits 100%.
Measured Thresholds & ComfyUI Configuration Matrix
| Storage Tier | Seq Read Throughput | 24 GB Flux + T5 Cold Load |
|---|---|---|
| Network Block Volume / HDD | 150 - 350 MB/s | 38 - 75 seconds |
| Local Gen4 NVMe (Vultr L4/L40S) | 3,200 - 5,000 MB/s | 5 - 8 seconds |
| Linux Page Cache Warm Reload | 18,000+ MB/s (RAM) | < 1.5 seconds |