Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Small Feature] Configurable Temp Directory to fix RAM bloat #3047

Open
1 of 2 tasks
Arcitec opened this issue Nov 3, 2024 · 0 comments
Open
1 of 2 tasks

[Small Feature] Configurable Temp Directory to fix RAM bloat #3047

Arcitec opened this issue Nov 3, 2024 · 0 comments

Comments

@Arcitec
Copy link

Arcitec commented Nov 3, 2024

Motivation
It currently uses os.tmpdir() (which is /tmp) to write all the output. This is a problem because that's a tmpfs by default, meaning that it's RAM-backed storage which wastes system RAM as ChaiNNer fills it with processed temp-images:

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,size=32767284k,nr_inodes=1048576,inode64)

It's also a privacy problem, because as the tmpfs fills up, it can page to swap.

Description

A new option in the settings:

  • ChaiNNer -> Settings -> Environment -> Temp Directory:
    • System Default: /tmp (show os.tmpdir() value here)
    • Custom Location: (...)

Alternatives
There doesn't seem to be any solutions at the moment.

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

No branches or pull requests

1 participant