Google Chrome’s new Meltdown and Spectre safeguard is a memory hog
mobilesyrup.com
mobilesyrup.com
Hopefully in time they find a way to retain safety without furthering to bloat their browser.
But there is an upside to better security. It'd be great if it was a free lunch but apparently it's not.
>Chrome needs to be as efficient as possible.
Chrome needs to make its users as happy as possible. Efficiency only matters when it starts affecting user happiness.
>Creating an ideal situation to make Chrome fit is disingenuous.
Do you know that it's an "ideal" situation rather than typical? I don't either but I also suspect Google wouldn't turn this on if it was going to negatively affect most users because they run the risk of losing market share to Safari/Firefox/Edge. I'm open to evidence to the contrary.
>Hopefully in time they find a way to retain safety without furthering to bloat their browser.
That's most likely going to be in the Intel/AMDs court.
Sure there is. Most complex systems can trade-off between memory usage and CPU. With more memory, the garbage collector doesn't have to work as hard, caches stay warm, etc.
> You don't know what a given system has for memory,
Chrome knows how much memory is available on your system, and it adapts its own memory usage based on this.
V8 is designed to push the garbage collector harder when memory usage is tighter -- reducing usage at the cost of JavaScript running a little slower.
I believe Chrome is also capable of freezing entire background tab states and saving them to disk, to be restored later when you go back to the tab. But there's no reason for it to do that if you have plenty of RAM to spare.
Google focuses very strongly on time, so I’m unsurprised that they are willing to trade space for time.
Of course it’s possible Chrome is also outright wasting space, time, or both, but I have no idea if it is to a nontrivial extent.
That's disingenuous.
Chrome is 1) more secure, but 2) less accessible.
These are separate metrics and you can't really roll them into one.
"on the plus side, each renderer process is smaller, shorter-lived, and has less contention internally, but there is about a 10-13% total memory overhead in real workloads due to the larger number of processes"
We need more information. For instance, it would be enlightening to have an understanding of how, exactly, a "real workload" is defined? How many tabs? What's going on in the tabs? Etc. A definition of "real workload" would at least allow us to compare that workload to our own typical workloads. (Which I assume would likely be different for an administrative assistant vs an executive vs a developer vs a researcher vs etc etc etc.)
Seriously - just this increase is 2x the total memory of a computer I used to browse the internet 20 years ago. People, including programmers, seriously misunderstand how amazingly powerful today's computers are, and how amazingly bloated and inefficient today's applications and websites are.
The bloat of many current desktop apps, each with their own copy of a large-footprint GUI toolkit or rendering engine, is indeed sad by comparison. I hope this situation will change when Windows 7 and IE 11 are finally history, meaning that desktop app developers can count on the OS to provide a modern web rendering engine on all platforms.
(Please tell me it's not number 3!)
Getting there will take a long time. Chrome got lucky - they've been working on this for ages, and they happened to be rolling this out right when Spectre landed.
I'm a fan of Firefox but admit Chrome has an advantage in this situation, while Firefox has had the advantage of resource sharing within the process to keep memory down. Last estimate I saw suggested over a year for it to arrive.
As an illustration of how this approach affects the landscape for all browsers, TechCrunch regularly loads 30 origins on a single page.
I can't recall any another browser maker introducing a change as encompassing as the Chrome Meltdown and Spectre fix.
https://chrome.google.com/webstore/detail/the-great-suspende...
Site isolation is a huge win.
But Site Isolation has been in the works in Chrome for a long time and it brings additional protections because it means that exploiting a renderer process doesn't let you break the SOP, which means you absolutely have to break out of the renderer process to have a meaningful exploit - completely removing the renderer codebase from your trusted computing base.
This depends strongly on how many tabs you normally have open. At higher numbers Firefox tends to do much better.
Sure, it's easy to say "of course it has happened, why wouldn't it have?", but it would be really interesting to know how it is actually being used.
I think that browser developers are making a wrong choice. They increase memory consumption for caches and similar type of data so that complicated and bloated websites work faster; I don't want that. I don't visit such sites anyway and have JS disabled so I would prefer that browser just consumes less memory. Let bloated websites be slow; they deserve it.