Browsers can just suspend tabs. If they are separate processes, just send a SIGSTOP except for the actual active tab and run SIGCONT upon switching.
Re:Do not buy RAM, compress
by isthatafact on Thursday November 19, 2026 @04:07PM
(#50566372)
First, it seems like browsers should have some kind of setting similar to "do not try to use all of the RAM on the system because that will either crash the browser or crash or severely retard the system if it decides to start swapping" -- maybe limit usage to XGB or X% of total ram.
I think of memory compression as being like swap or pre-emptive multitasking. The OS should manage it by default and then the problem is solved for almost everything on the system.
And then if you're literally Postgres or something like that you can opt out and DIY.
I find that the ratio of browserish memory use to that of other programs is enough to render the latter insignificant most of the time.