Experience with EarlyOOM?

Chat about Linux in general
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Experience with EarlyOOM?

Post by Pjotr »

Who has any experience with EarlyOOM? This is what triggered me:
https://distrowatch.com/weekly.php?issue=20211129#qa

Looks promising, but first I'd like to hear some hands-on experiences from others....
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Experience with EarlyOOM?

Post by Pjotr »

I'm testing it right now. If you wish to test it as well, see this how-to:
https://easylinuxtipsproject.blogspot.c ... .html#ID13
(item 13)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
cliffcoggin
Level 8
Level 8
Posts: 2300
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Experience with EarlyOOM?

Post by cliffcoggin »

The linked article suggests that running out of memory is usually caused by lack of swap space if I understand correctly. Would it not be better to leave swappiness at its original setting of 60, instead of reducing it to 10 and then having to install more software to deal with the consequent problem? Or have i still not understood the concept of swap?
Cliff Coggin
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Experience with EarlyOOM?

Post by Pjotr »

cliffcoggin wrote: Thu Dec 02, 2021 7:44 pm The linked article suggests that running out of memory is usually caused by lack of swap space if I understand correctly. Would it not be better to leave swappiness at its original setting of 60, instead of reducing it to 10 and then having to install more software to deal with the consequent problem? Or have i still not understood the concept of swap?
Well, even a swappiness reduction to 10 or 20 does not disable swapping, because swappiness is only the inclination to use the swap. So OOM issues shouldn't be able to arise because of such a reduction. Only when you disable swapping entirely. :)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Experience with EarlyOOM?

Post by Pjotr »

After one day of testing: so far no adverse results.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
gittiest personITW
Level 12
Level 12
Posts: 4289
Joined: Tue May 28, 2019 4:27 pm

Re: Experience with EarlyOOM?

Post by gittiest personITW »

Well, even a swappiness reduction to 10 or 20 does not disable swapping, because swappiness is only the inclination to use the swap. So OOM issues shouldn't be able to arise because of such a reduction. Only when you disable swapping entirely. 
Hypothetically (in general for EarlyOOM or Mint) - If, for example, the swappiness is reduced to 1, wouldn't that be better as you still have the swapfile if needed but ideally would prefer for RAM to be utilised before using the drive.
If there is lots of RAM in the system (32GB ish) that shouldn't be a problem anyway as swap should barely be used (depending on what applications are being used) but would it be generally ok to try reducing swappiness to 1 even in lower end systems as you are telling the system to only use swap if really needed?
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Experience with EarlyOOM?

Post by Pjotr »

gittiest personITW wrote: Sat Dec 04, 2021 8:41 am
Well, even a swappiness reduction to 10 or 20 does not disable swapping, because swappiness is only the inclination to use the swap. So OOM issues shouldn't be able to arise because of such a reduction. Only when you disable swapping entirely. 
Hypothetically (in general for EarlyOOM or Mint) - If, for example, the swappiness is reduced to 1, wouldn't that be better as you still have the swapfile if needed but ideally would prefer for RAM to be utilised before using the drive.
If there is lots of RAM in the system (32GB ish) that shouldn't be a problem anyway as swap should barely be used (depending on what applications are being used) but would it be generally ok to try reducing swappiness to 1 even in lower end systems as you are telling the system to only use swap if really needed?
It's rather off topic, but I recommend a swappiness of 20 in all cases of desktop use. Best compromise.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
gittiest personITW
Level 12
Level 12
Posts: 4289
Joined: Tue May 28, 2019 4:27 pm

Re: Experience with EarlyOOM?

Post by gittiest personITW »

Only a tiny eeny bit off-topic.
Thanks Pjotr
User avatar
Grayfox
Level 4
Level 4
Posts: 333
Joined: Sun May 21, 2017 5:10 am
Location: In a hole

Re: Experience with EarlyOOM?

Post by Grayfox »

I have never had any Memory Issues as I have 32GiB of RAM.
I have also disabled the swap since I am using an SSD and have a large amount of RAM.
RAM: total: 31.31 GiB used: 4.74 GiB (15.1%)
I've gotten to 18GiB, but that is with multiple video tabs open in Firefox and with a game minimized.
PC: Intel i5 6600K @4.5Ghz, 1TB NVMe SSD, 32GiB 3000Mhz DDR4, GTX1080 running Mint 21.3
Laptop: Asus UM425UAZ running LMDE 6
User avatar
Pjotr
Level 23
Level 23
Posts: 19927
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Experience with EarlyOOM?

Post by Pjotr »

Cool, but let's get back to EarlyOOM, folks.... :wink:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Locked

Return to “Chat about Linux”