DEV Community

Discussion on: Why don't operating systems and browsers limit shared resources more strictly?

Collapse
 
nektro profile image
Meghan (she/her)

As of right now, Chrome tabs will crash if they use more than 1 GB of RAM. To me, this is actually a bug. Firefox will kill tabs that are block on the main thread for too long. As for RAM. I feel that tabs should be able to use as much as the system is willing to give it. A lot of work has been done to make it feasible for bigger and bigger applications to come to the web. And some applications do need more than 20k to get their job done. If we ever want to see a day where apps like Photoshop etc are web apps, then the browsers need to let them do their thing. Browsers could maybe to better in ways of warning users if a tab goes above a threshold for resources but the user should be the only final gatekeeper of their machine and how its resources are used.

Collapse
 
ben profile image
Ben Halpern

Like the way browsers now make it clearer which sites use https and which do not, I think a resource
hog indication could be useful.

Collapse
 
nektro profile image
Meghan (she/her)

How do you think this might be implemented? As a notification the way mobile does? Or maybe some always-on-screen task manager-esque inidicator?

Thread Thread
 
ben profile image
Ben Halpern

I'd think something like this could be sufficient, with more info on hover and the ability to ignore the warning.

Thread Thread
 
moopet profile image
Ben Sinclair

You know how tabs have a little loudspeaker icon if they're playing sound? Maybe something like that if they go over a threshold of (say) > 50% resources, where "resources" means any of RAM, disk, IO, etc.