=== cpaelzer_ is now known as cpaelzer [14:30] hello 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:31] what about OOM-killer? [14:32] what about it ? it randomly kills processes if you run out of ram [14:33] (it is a blindfolded berserk ...) [14:34] ogra_, apparently it did not work at all [14:36] 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:38] ogra_, maybe it was, but the music stopped, the cursor froze, and keyboard was dead [14:38] I'd prefer to completely disable swap then, how would I do that? [14:39] generally it will remain locked up for a while before it recovers (the situation is a bit sad, yes) [14:39] a while = could be hours [14:39] lol..can this somehow be tuned to agressively kill havoc processes? [14:39] iirc if you disable swap the kernel uses a completely different code path for memory mgmt ... not sure thats a good idea [14:40] (not sure if it still does it ... it was around 3.x times i looked at that last) [14:41] there must be a way to fix this [14:42] I mean, any shitty website can mess up my system as it appears [14:42] systemd is working on fixing it by trying to add an "intelligent" oom killer ... but not sure how far out that is [14:43] but yeah ... DOSing isnt easy to work against ... [14:43] generally, disabling overcommit helps - but there also plenty of things that expect to overcommit a lot, so. [14:46] I'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 reached [14:46] how hard can it be to implement something like that? [14:48] try it ? [14:50] (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] the bad thing is, I've been using linux for over a decade and cannot remember something like this was happening in all that time [14:51] well, then facebook came aroud and created full apps inside your browser windows [14:52] (and filled the remaining free ram with ads) [14:53] maybe that is the problem [14:53] web bloat [14:53] tell mark zuckerberg 😛 [14:53] but still, this should not tear down my system [14:54] it should just be handled properly (e.g. killed) when it gets too nasty