I recently had data loss because the hard drive was completely used up by virtual memory and some programs couldn’t handle zero free space on the hard drive. How can I prevent this from happening (besides always keeping a few GB as a buffer)?
I can propose you one way to do that, although it is not complete.
You can set memory limit per process using
In real life, few processes are consuming vast amount of memory. Therefore, I would advise you to look at
I would do the following calculation:
Convert the GB into B:
Now try this limit and see if it works (note, this setting will be lost after a reboot, so it is "safe" to perform):
If you are happy with this choice, then you can save them, so they are permanent. Edit the file