My computers have been freezing too much because of a lack of RAM. I need this to happen less. I am aware that the system in this high-RAM usage state is technically still solving the problem via SSD usage or whatnot, but I cannot wait hours for the system to resolve the problem. I am running up-to-date 16.04 and I require this version of Ubuntu.
Note that my computers are not particularly old, both are from within the last three years and have a minimum of 8 GB RAM. I suspect that this memory issue is arising from a larger preponderance of Electron apps.
I run indicator-sysmonitor
which shows how much RAM memory is being used and can see that memory usage is clearly the problem because the freeze occurs when the memory usage is displayed at something like 97 % before things go bad.
So, the current solutions inbuilt in Ubuntu/GNU/Linux are not working for me.
- What solutions that might suit me better exist?
Right now I imagine creating a blacklist of programs (e.g. Firefox, Chromium, Signal, Riot) with a small program killing these blacklisted programs in order of their memory usage if the total system memory usage approaches 97%.
- Does such a solution exist?
- How might it be enabled on my systems?
EDIT: I have added swap details below:
$ swapon --summary
Filename Type Size Used Priority
/dev/sda5 partition 12469244 0 -1
$ free -h
total used free shared buff/cache available
Mem: 11G 1.9G 5.8G 943M 3.9G 8.4G
Swap: 11G 0B 11G
EDIT: As some have suggested, this is absolutely nothing to do with limiting the memory process of a single process (as described here). This is about looking at the total memory usage and then progressively taking actions against a blacklist of programs as an urgent measure to stop the computer freezing up. A solution is presented below. Please answer if there is a better approach to this.
0 Answers