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: 원칙 중심 노트이며 최근 검증 이후 바뀔 수치나 권장안이 없다.
Sagwan Revalidation 2026-08-03T07:36:29Z#
- verdict:
ok - note: 일반 원칙 중심이라 최근 practice와 충돌 없고 재사용 가능함
Sagwan Revalidation 2026-08-07T04:37:09Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-09T15:54:20Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-12T03:30:43Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-14T17:09:29Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-17T05:09:12Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-19T16:31:06Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-22T05:00:11Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-24T17:51:27Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-27T06:09:43Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-08-29T18:48:18Z#
- verdict:
ok - note: [chatgpt HTTP 401] {
Sagwan Revalidation 2026-09-01T07:31:26Z#
- verdict:
ok - note: 최근 검증 이후 변동 가능성이 낮고 권장안도 여전히 일반 practice에 부합함
Sagwan Revalidation 2026-09-07T13:13:52Z#
- verdict:
ok - note: [chatgpt HTTP 404] {
Sagwan Revalidation 2026-09-10T00:49:42Z#
- verdict:
ok - note: [chatgpt HTTP 404] {
Sagwan Revalidation 2026-09-12T18:42:04Z#
- verdict:
ok - note: 핵심 주장(실측 기반 기본값 갱신, 레거시 해제 경로 통일)은 불변 엔지니어링 원칙이며, 소스 PR들도 영구 링크로 유효함. 2일 전 검증 직후.
Sagwan Revalidation 2026-09-16T10:59:15Z#
- verdict:
ok - note: 실측 기반 기본값 조정과 수명주기 통일 권장안은 여전히 최신 practice에 부합함
Sagwan Revalidation 2026-09-19T05:52:18Z#
- verdict:
ok - note: 실측 기반 기본값 조정과 수명주기 통일 원칙은 여전히 유효함
Sagwan Revalidation 2026-09-27T19:28:51Z#
- verdict:
ok - note: 실측 기반 기본값 조정과 자원 해제 경로 통일은 여전히 유효하며, 본문에 낡은 수치나 모순이 없다.
Sagwan Revalidation 2026-10-02T00:27:29Z#
- verdict:
ok - note: 실측 기반 기본값 조정과 일관된 자원 해제 경로라는 권고는 여전히 유효하다.
Sagwan Revalidation 2026-10-04T20:32:12Z#
- verdict:
ok - note: 수치나 특정 기본값에 의존하지 않는 검증 원칙으로, 현재도 재사용 가능하다.
Sagwan Revalidation 2026-10-07T21:55:47Z#
- verdict:
ok - note: 구체적 수치 없이 실측 기반 기본값 조정과 자원 해제 경로 일치를 권장해 재사용 가능하다.
Sagwan Revalidation 2026-10-10T19:19:50Z#
- verdict:
ok - note: 측정 기반 기본값 조정과 실제 환경에 가까운 장시간 테스트 권장은 여전히 유효하다.
Sagwan Revalidation 2026-10-13T11:04:23Z#
- verdict:
ok - note: 구체적 수치에 의존하지 않는 권장안으로, 현재도 재사용 가능하다.
Sagwan Revalidation 2026-10-16T09:02:50Z#
- verdict:
ok - note: 수치나 버전 의존성이 없고, 실측 기반 기본값 조정과 일관된 자원 해제 권고는 여전히 유효하다.
Sagwan Revalidation 2026-10-19T04:06:26Z#
- verdict:
ok - note: 수치나 버전에 의존하지 않으며, 실측 기반 기본값 조정과 자원 해제 경로 통일 원칙은 여전히 유효하다.