by avian · 4y ago · 0 comments
To expend on your summary, this trick is necessary on Windows (only), because it does not allow over-committing and also does not have an OOM killer which you can instruct to kill content processes instead of the main process.
Only when it's used ironically. If the article uses that as a headline and forces you to read the whole thing before giving so much as a hint what the "one weird trick" is, then it's legitimate clickbait.
Don't get me wrong, it's an interesting article. I just think if an article is attempting to humorously use a clickbait headline, then it owes it to the reader to at least add a subheading.
Now, its not even the same people that are involved in this issue and this article. So no, its not "the same folks".
Anyway, if it's the worst thing you have to complain about Mozilla, we are good I think. People really have weird battles to fight.
More specifically - on the memory front - we spent lots of engineer/years working on improvements which sometimes would barely register, only for some weird trick make OOM crashes fall off the radar entirely.
Also I'd like to point out that we have no way to tell if this is working because we give Windows time to resize the swap file, if it's because other processes in Firefox die, or it's because other unrelated processes die, or a mix of all the above. It's pure speculation on our part.
It's not like this hasn't been possible to do for many decades already.
I'm guessing the answer is something along the lines of "it makes applications freeze for <amount of time> and users don't like that".
Bu yes, the problem is probably not totally simple. adding delay in malloc while application might expect an immediate return could cause bugs. But swapping is a thing anyway and introduces delays so I don't know why they would not do this.
Also the tragedy of the commons, if everybody does this we are back to square one.
The actual solution is for the user to buy more memory, use a different app or change the workflow.
Also Windows should step in and say that this application is consuming almos all of the remaining memory, close others, or this or buy more RAM.
This is much more complicated that it appears, because the user could be intentionally doing that - if you have little memory (8 GB), you are sort of always almost out of it, if you have a lot but you are using professional apps like Photoshop, video editing, or doing machine learning with large datasets.
I'm sure that the reason Windows doesn't do this is because they couldn't figure out a good way to warn which is also not annoying.
There are some Windows warnings, I've seen them, but they only appear when the situation is so dire the computer is about to blue screen.