mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[GH-ISSUE #118] Windows, 16 GB GPU, SATA models (fast_disk=False): model start stalls for minutes at 100% util / ~60 W with VRAM pinned at 15.4–15.8 GB after "0 models unloaded" (MiniMax H3) #43
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-aimdo#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mark9009 on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Comfy-Org/comfy-aimdo/issues/118
Summary
With dynamic VRAM on (default), a model that starts executing while VRAM is almost full sometimes stalls for 1.5–20 minutes before doing any work.
nvidia-smishows 100 % utilization at ~57–63 W (the same card draws 210–245 W while sampling normally). During the stall disk reads, paging and RAM usage stay flat. When the stall ends, sampling runs at its normal speed (≈33–36 s/it). It affects the video VAE (encode) as well as the DiT, it lands on a random clip, and it can happen in a freshly started process. Right before one stall, ComfyUI logs0 models unloadedwhile VRAM is at 15.8 / 16 GB, so something the model manager cannot see is still holding that memory.This looks close to #117 (lost residency after multi-segment generation). The "~4 GB
get_total_vram_usage()with every vbar at watermark 0" loose end in that thread may be the same thing we see.Environment
a8686f2b, 2026-09-18), comfy-aimdo 0.5.5, comfy-kitchen 0.2.35, torch 2.9.1+cu128, sageattention 2.2.0--windows-standalone-build --use-sage-attention --listen --disable-pinned-memory(without
--disable-pinned-memorywe hithostbuf_file_reader_read failed, the same as ComfyUI#16223)Model storage policy: fast_disk=FalseWorkload
A custom node renders a long video as several H3 clips inside one node execution. For each clip it runs VAE encode (reference video), text encoder, DiT (4 steps), then VAE decode. Between phases it calls
unload_all_models()+soft_empty_cache().Measurements (5 s sampling of nvidia-smi / perf counters)
0 models unloaded)Stall durations we logged today: 6:45, 4:00, 1:25, 3:50, and one still stuck after 20 minutes that we had to kill.
Before we changed the node, the second job in the same process was slow from its first clip onwards: sampling 12 min instead of 2:40, reference VAE encode 8 min instead of 36 s, and then it hung. Unloading all models at the start of each node execution fixed that part (both jobs now take 15–17 min instead of hanging), which matches the "
vbar_prioritize()only on load" analysis in #117. The random stalls described above still happen.Also:
--disable-dynamic-vramis not a workaround hereWith
--disable-dynamic-vram(with or without--disable-pinned-memory) the process dies while loading the models, right after the VAEs:0xc0000005intorch_cpu.dll. This looks like ComfyUI#15424 / #15397 (large mixed-precision quantized safetensors). With these quantized H3 files there is currently no stable way to turn aimdo off on Windows.Related
hostbuf_read_file_slicefailures, fast_disk=False path, 64 GB machine)We can supply full logs, the probe CSV, or run a debug build / extra logging.