On Monday, July 6, 2020 8:47:24 AM MST Przemek Klosowski via devel wrote:
On 7/4/20 8:18 PM, John M. Harris Jr wrote:
> I've never managed to get one of my own Fedora machines to the point of
> OOMing, and, when I have seen others do it, it's a problem that would
> have
> been solved by having more swap space.
I am a tab hoarder so I used to wedge the browser due to memory leaks
(some live ad pages would blow up into gigabytes of RAM). I think recent
browser versions are more resistant to that---I haven't locked up in a
while, although it may be because I also tend to have a Task Manager
open, sorted by Memory size, and I kill pages that keep growing.
Unless you're actively using all of those tabs (I don't know how you would be,
but it's certainly possible), swap sounds like the perfect solution. Unless
Firefox keeps JS running in there, and it's updating the DOM, these would
likely be able to get swapped out.
Firefox will actually unload tabs that you haven't done anything with in a
while under specific circumstances, but I don't know what those are. You may
notice, for example, that the page "reloads" without network traffic, when
going to a tab you haven't had open in a while. I've seen this on my system
recently.
More swap doesn't necessarily solve this problem: remember that
1GB/min
is a ballpark HD speed so if you have 10GB swap that your system is
actually trying to use, you will just sit there for 10 minutes.
I don't really understand how that'd be the case. For that to happen, you'd
have to load all of those into memory, have them swap out, then try to swap
them all back in at the same time.
--
John M. Harris, Jr.