Skip to content

Limit max file size to load into RAM by the physical RAM size - #2462

Open
agarmash wants to merge 1 commit into
WerWolv:masterfrom
agarmash:limit_max_file_size_by_ram_size
Open

Limit max file size to load into RAM by the physical RAM size#2462
agarmash wants to merge 1 commit into
WerWolv:masterfrom
agarmash:limit_max_file_size_by_ram_size

Conversation

@agarmash

Copy link
Copy Markdown
Contributor

I find it rather limiting to have the upper limit for the setting of a file size that can be loaded into RAM to be hard-coded as 32 Gb. That's for example how it's done in VirtualBox - the Base Memory slider is limited by the amount of installed physical RAM:

Screenshot_20250927_234050

I really liked this approach, so I implemented it in this PR:

Screenshot_20250927_234311

I was also considering changing the slider to show the percentage of the usable RAM instead of the absolute value, so if more RAM is added later, the upper-limit value will be automatically recomputed accordingly, but decided to stick with the simpler approach.

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