Skip to content
Discussion options

You must be logged in to vote

Pinned memory is not a general "more speed, no downside" switch. For the video workflows you mention, disabling it being more stable is a useful signal.

In ComfyUI's current code, pinned memory is used as a host-side buffer for model/offload transfers. The pin_memory() path allocates host buffer space, asks the memory manager for pin budget/registerable size, releases extra RAM headroom first, and then calls CUDA host registration (cudaHostRegister). If those checks fail, it tries to reuse/steal an existing pin instead of making an unlimited new one. The CLI flag --disable-pinned-memory bypasses that path.

So the likely reason is system-RAM pressure, not only VRAM pressure. Pinned host me…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NeverOccurs
Comment options

@NeverOccurs
Comment options

@yudin-s
Comment options

Answer selected by NeverOccurs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants