This is going to be a quickie on memory optimization.
My web browser has many tabs open in it, they are consistently split among windows, which are split among workspaces (I use Ubuntu, where you can have multiple “desktops”). Firefox can be quite RAM-hungry, not as hungry as Chrome, but still, consumes a lot. Yet, closing it means that I have to arrange all my windows (and I may have 20) among workspaces again, which is painful.
Since recently, Firefox hosts the actual content of the tabs in separate processes called Web Content. There are several (4 or 5), and they are especially hungry. In my case, they can consume about 400-800 megabytes each.
What if we kill them?
kill $(pgrep "Web Content").
Firefox windows remain intact. Tabs are open as well. The only thing that happens is the “Tab crashed” message on every opened tab. Let’s reload a tab. No problem, we can see it again. Although, I have to say that in the past Firefox crashed from time to time, but now it happens rarely, they have fixed it most likely.
What’s the use? I can often free 2-4 GB of RAM up this way. Whenever I don’t need to use the browser, I can simply semi-close the content without destroying the arrangement of my windows.
As always, thanks for tuning in. I’ll see you eventually.