-
Notifications
You must be signed in to change notification settings - Fork 47
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
Run plugin: add memory limit #1226
base: main
Are you sure you want to change the base?
Conversation
This might not be a great idea, because if I understand the |
I have a better idea for implementing a memory limit, but it will require some changes. First, we should change Once that is done we can simply add a |
Personally I think the idea of swap for RAM that's not used as often is kinda smart, I just feel like it could be implemented a bit better. |
On linux, it's annoying when my dumb program allocates so much memory that the entire computer freezes. This is because linux decides that it's a good idea to use swap for more memory. Swap basically means using the hard drive as if it was RAM, and that's really really slow.
To help with this, add a setting that limits how much memory the program can allocate. The setting shows up in the run dialog, but it's saved to Porcupine's settings so that it won't change if you run a different command.