disheveledWallaby@lemmy.mltoLinux@lemmy.ml•Auto kill memory leaking processes before swap death loop
0·
6 months agoThis might help.
https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/
You could write a simple bash script to get memory and compare it to your desired memory usage then clear memory when desired usage has been exceeded. Then set your script as a cronjob.
Or you can just setup a cronjob to clear memory at a set interval in a cronjob described in the link.
Sagan did a bit on this.
https://www.youtube.com/watch?v=G8cbIWMv0rI