teckk |
06-25-2022 08:40 AM |
Quote:
Is there a way to adjust the ram or swap to prevent this from occurring again?
|
You can change swapiness to a lower value so it wont swap as quickly. That's been talked about, the pros and cons of it. As for RAM, put more RAM in if you don't have enough.
I can max out the RAM on an old dual core box with 4GB RAM, without a swap partition, using something like google maps. When I do, the machine doesn't die, it sorta stops and becomes unresponsive for a bit until a bunch of RAM is dumped, and then the browser will crash/close.
You can also clear pages in RAM that are no loner active. Didn't say it was a good or bad thing, just that you can do it.
Systemd or not
Clear PageCache only.
Code:
sync; echo 1 > /proc/sys/vm/drop_caches
sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches
sudo sysctl vm.drop_caches=1
Clear dentries and inodes.
Code:
sync; echo 2 > /proc/sys/vm/drop_caches
sudo sysctl vm.drop_caches=2
Clear PageCache, dentries and inodes.
Code:
sync; echo 3 > /proc/sys/vm/drop_caches
sudo sysctl vm.drop_caches=3
I've done that before too. With the web browser open. Cleared pages that the browser is no longer using. That will allow you to continue. If you go back to a web page that you have already opened, you'll have to download it again. But the machine never crashed on me, or the web browser.
|