/srv/irclogs.ubuntu.com/2020/07/29/#ubuntu-kernel.txt

=== cpaelzer_ is now known as cpaelzer
linuxrhello anyone..so I've just had this situation where my 4 gigs of memory were exhausted because of firefox, resulting in a complete system freeze. How can this happen in 2020? How can one single process take all the memory and not being prevented by the OS?14:30
linuxrwhat about OOM-killer?14:31
ogra_what about it ? it randomly kills processes if you run out of ram14:32
ogra_(it is a blindfolded berserk ...)14:33
linuxrogra_, apparently it did not work at all14:34
ogra_well, it only kicks in if all your ram *and* all your swap space is used up ... are you sure the system wasnt still swapping ?14:36
linuxrogra_, maybe it was, but the music stopped, the cursor froze, and keyboard was dead14:38
linuxrI'd prefer to completely disable swap then, how would I do that?14:38
trippehgenerally it will remain locked up for a while before it recovers (the situation is a bit sad, yes)14:39
trippeha while = could be hours14:39
linuxrlol..can this somehow be tuned to agressively kill havoc processes?14:39
ogra_iirc if you disable swap the kernel uses a completely different code path for memory mgmt ... not sure thats a good idea14:39
ogra_(not sure if it still does it ... it was around 3.x times i looked at that last)14:40
linuxrthere must be a way to fix this14:41
linuxrI mean, any shitty website can mess up my system as it appears14:42
ogra_systemd is working on fixing it by trying to add an "intelligent" oom killer ... but not sure how far out that is14:42
ogra_but yeah ... DOSing isnt easy to work against ... 14:43
trippehgenerally, disabling overcommit helps - but there also plenty of things that expect to overcommit a lot, so.14:43
linuxrI'd be quite happy with a script that periodically checks memory usage and kills the most agressive process(es) in case a critical level is reached14:46
linuxrhow hard can it be to implement something like that?14:46
ogra_try it ?14:48
ogra_(i'm sure there is prior art though ... and you can always set the oom_score for your processes if needed so they get killed first)14:50
linuxrthe bad thing is, I've been using linux for over a decade and cannot remember something like this was happening in all that time14:50
ogra_well, then facebook came aroud and created full apps inside your browser windows 14:51
ogra_(and filled the remaining free ram with ads)14:52
linuxrmaybe that is the problem14:53
linuxrweb bloat14:53
ogra_tell mark zuckerberg 😛14:53
linuxrbut still, this should not tear down my system14:53
linuxrit should just be handled properly (e.g. killed) when it gets too nasty14:54

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!