Remix.run Logo
dlcarrier 10 hours ago

I'm amazed by how bad web browsers are at handling web pages requests for too much RAM. I have an html files with just a one-line JavaScript command to create a 1 GiB array, that I open a few tabs of, whenever I need to stress test a computer:

    var allocation = new Array(1073741824).fill(0);
For an ecosystem that is so VM-heavy, I'm surprised there isn't a system like Linux cgroups, to limit the CPU and RAM usage of any given page.
kinow 7 hours ago | parent [-]

It'd be useful to have a similar resource control in browsers. Maybe there is a way for an extension to achieve that? I'd be happy now if there was an easier way to find tabs consuming too much memory or cpu, like an alert or an icon.