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

Limit filesystem grow to a % of the available RAM disk #63

Open
equetzal opened this issue Apr 25, 2023 · 0 comments
Open

Limit filesystem grow to a % of the available RAM disk #63

equetzal opened this issue Apr 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@equetzal
Copy link
Owner

Problem

During the TCMX 2023 it happend a case in which a team implemented a brute force solution in order to find a pattern in a given sequence. This is a common behavior in competitive programming.
This team generated many automated files which overloaded the filesystem, easily creating tons of files and reaching the limit of the RAM disk.
Even if OOMD exists, it prevents processes from taking all the RAM, but as the filesystems lives on the kernel-space there was no way for the system to prevent the RAM to be floaded.

Proposed solution

Investigate a way to limit the size at which the filesystem can grow. This should not be a fixed-size because that would left too few space for the system, but we can set the dynamic size to never reach more than e.g. 90% of the RAM total space, or to always keep at least 500MiB free of RAM so that the system is responsive and user is able to delete their files.

@equetzal equetzal added the enhancement New feature or request label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant