Skip to content

Clean up temp files after diff generation#145

Merged
ericmj merged 1 commit intomainfrom
ericmj/cleanup-tmp-files-after-processing
Apr 3, 2026
Merged

Clean up temp files after diff generation#145
ericmj merged 1 commit intomainfrom
ericmj/cleanup-tmp-files-after-processing

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 3, 2026

TmpDir only cleans up on process exit, but LiveView processes are long-lived. Accumulated temp files cause page cache and kernel slab memory to grow, counted against the container's cgroup memory limit.

Add TmpDir.cleanup/0 and call it after diff stream is consumed.

TmpDir only cleans up on process exit, but LiveView processes are
long-lived. Accumulated temp files cause page cache and kernel slab
memory to grow, counted against the container's cgroup memory limit.

Add TmpDir.cleanup/0 and call it after diff stream is consumed.
@ericmj ericmj merged commit bb53f2c into main Apr 3, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/cleanup-tmp-files-after-processing branch April 3, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant