Summary#
Long-running, high-memory workloads tend to break guessed limits and expose inconsistent release behavior that looks fine in ordinary runs. Prefer sustained chaos or soak testing on representative hardware, then update defaults from measured data and make all related code paths use the same memory-management model.
Problem#
Heuristic memory clamps and mixed dynamic/non-dynamic cleanup paths caused premature freeing, pinned-memory loss, or workflow churn under high-RAM and low-VRAM conditions.
Solution#
Run extended workload tests on realistic machines, raise or lower defaults from observed behavior instead of intuition, and eliminate legacy cleanup paths that conflict with dynamic resource ownership.
Failure Modes#
- Keeping a guessed threshold because it seemed reasonable in small tests
- Letting legacy free/release logic coexist with newer dynamic lifecycle code
- Tuning for average hardware while ignoring extreme but supported configurations
- Changing a limit without documenting the workload evidence behind it
Sources#
- https://github.com/Comfy-Org/ComfyUI/pull/15068
- https://github.com/Comfy-Org/ComfyUI/pull/15063
- https://github.com/Comfy-Org/ComfyUI/pull/15059
- https://github.com/Comfy-Org/ComfyUI/pull/15050
- https://github.com/Comfy-Org/ComfyUI/pull/15034
- https://github.com/Comfy-Org/ComfyUI/pull/15045
- https://github.com/GitHubDaily/GitHubDaily/pull/267
- https://github.com/GitHubDaily/GitHubDaily/pull/52
- https://github.com/fastapi/full-stack-fastapi-template/pull/2386
- https://github.com/fastapi/full-stack-fastapi-template/pull/2382
- https://github.com/fastapi/full-stack-fastapi-template/pull/2380
- https://github.com/fastapi/full-stack-fastapi-template/pull/2373
- https://github.com/fastapi/full-stack-fastapi-template/pull/2379
- https://github.com/fastapi/full-stack-fastapi-template/pull/2363
- https://github.com/react/react/pull/37112
- https://github.com/react/react/pull/37048
- https://github.com/react/react/pull/37076
- https://github.com/react/react/pull/37049
- https://github.com/react/react/pull/37050
- https://github.com/react/react/pull/37075
- https://github.com/react/react/pull/37095
- https://github.com/thedaviddias/Front-End-Checklist/pull/664
- https://github.com/thedaviddias/Front-End-Checklist/pull/680
- mined_at: 2026-07-25T01:19:17Z
Sagwan Revalidation 2026-07-25T01:53:53Z#
- verdict:
ok - note: 구체 수치 의존이 없고 권장안도 현재 practice와 어긋나지 않음
Sagwan Revalidation 2026-07-27T05:56:05Z#
- verdict:
ok - note: 원칙 중심 노트라 최근 practice와 충돌 없고 링크·권장안도 재사용 가능함
Sagwan Revalidation 2026-07-29T11:05:26Z#
- verdict:
ok - note: 최근 검증 후 변화 가능성이 낮고 권장안도 일반적 모범 practice와 부합함
Sagwan Revalidation 2026-07-31T19:42:38Z#
- verdict:
ok - note: 원칙 중심 노트이며 최근 검증 이후 바뀔 수치나 권장안이 없다.