More Efficient Memory Management

Fire up an IE7 window with 10 tabs in it and you’ll see this in your Task Manager:

A single iexplore.exe process that spawns a number of threads. The same goes for Firefox and Safari. The problem here is that if a single tab causes the process to crash, all of your open websites go with it. Chrome treats each tab as an individual process, which adds a little more overhead but the benefit is a single website won’t cause all of your other browser tabs/windows to crash.


You shouldn't lose all Chrome windows/tabs due to one misbehaving website/app

A single webpage stalling also won’t cause the rest of the tabs to stall, while the tabs in a Chrome window look physically connected, they are as independent as they get.

Chrome, as a result, will take up quite a bit of space in Task Manager:

Making each tab its own process means that you get memory back from closed tabs much quicker and much more efficiently than with other browsers. Consider this test: 1) Visit www.anandtech.com, 2) open tabs for digg.com, docs.google.com (and login) and www.facebook.com (and login), 3) Close the latter three websites.

I performed that exist test, in that order, and measured memory size after each step. The results are below:

Websites Google Chrome 0.2.149.27 Internet Explorer 7.0.6001.18000 Firefox 3.0.1 Safari 3.1.2
Just AnandTech.com 26MB 30MB 30MB 48MB
AT + Digg + Google Docs + Facebook 105MB 97MB 87MB 104MB
AT (After closing 3 tabs) 38MB 78MB 70MB 107MB

 

Just viewing AnandTech alone, Chrome ended up being the most efficient browser with a 26MB footprint compared to 30MB for Firefox 3.0.1, 30.1MB for IE7 and a whopping 48MB for Safari 3.1.2.

Adding the other three sites brings the totals up to 104MB for Chrome, 104MB for Safari, 96MB for IE7 and 87MB for FF.

It’s closing the tabs that’s the most interesting: only Chrome actually frees up memory upon closing tabs. Chrome’s footprint is still larger than its original 26MB at 38MB, but the remaining three browsers continue using at least 70MB. The argument here is that these other browsers already have memory allocated should you open additional tabs, unfortunately you can quickly run into memory fragmentation issues with the conventional approach should the new tabs require more memory than the ones you just closed.

With Chrome, each tab is its own process, when you’re done with a tab - close it and you get all your memory back right away. You get more efficient usage of memory for newly created tabs.

The independent tabs are also physically independent within the UI, you can drag any tab out of a window and into another one or make it a new window by itself.

Chrome’s multi-process approach is also theoretically better for multi-core systems since you don’t have to worry about exploiting parallelism within a process, you’ve got process-level parallelism giving you more than enough threads to distribute across many cores. Thankfully web browsing isn’t the most CPU intensive and this process-level parallelism doesn’t amount to a huge performance benefit.

Index Other Geeky Stuff
POST A COMMENT

106 Comments

View All Comments

  • dickeywang - Thursday, September 4, 2008 - link

    I just hope that they can provide a Linux version that can render the web pages as fast as those browsers in Windows. Reply
  • jvaudio - Thursday, September 4, 2008 - link

    I absolutely hate how tech sites give Google a free pass on their behaviors.

    Taken from Joe Wilcox:

    I've just got to excerpt from this document: "When you type URLs or queries in the address bar, the letters you type are sent to Google so the Suggest feature can automatically recommend terms or URLs you may be looking for."

    Can you say keylogger? What else could "the letters you type" mean?

    Now make sure you read this paragraph at least twice:

    "Your copy of Google Chrome includes one or more unique application numbers. These numbers and information about your installation of the browser (e.g., version number, language) will be sent to Google when you first install and use it and when Google Chrome automatically checks for updates. If you choose to send usage statistics and crash reports to Google, the browser will send us this information along with a unique application number as well."
    WTH? Application numbers? Well, well, browsing is a whole lot less anonymous with Chrome. Why is there no uproar? Microsoft got hammered by the news media in 2001 because Windows XP appeared to send user identifiable activation numbers during setup. Google is identifying your browser with a unique number. What would prevent that number from being associated with a Google ID for Gmail or related service?

    This is a good read on the details of how Google is the Ultimate Big Brother:
    http://www.microsoft-watch.com/content/web_service...">http://www.microsoft-watch.com/content/...r/chrome...

    With that said, I do use it, but as my third browser. I use IE8 and Opera as my main browsers. I use IE for checking email, banking, grad school, and light surfing. I use Opera for everything else. It is a fantastic browser. I was very excited about Firefox 3 because I haven't used it in years (because it sucked hard after 1.5). It works EXTREMELY poorly on Vista 64 bit. I have completely abandoned its use and it has been replaced by Chrome. If Google can show that it can clean up security issues in a timely manner, I intend to use it on occasion and leave it on my system.
    Reply
  • nerdynick - Wednesday, September 3, 2008 - link

    Most innovative new browser features debut in Opera first, ie tabs,
    speed dial, mouse gestures, etc.

    For that reason alone Opera should have been included.
    Reply
  • aeternitas - Wednesday, September 3, 2008 - link

    Very poor not to have included Opera. Reply
  • crimson117 - Wednesday, September 3, 2008 - link

    quote:

    Chrome launches very quickly, bested only by IE7 in start time


    Had you opened IE7 already since your last reboot? I opened IE7 for the first time after a reboot, and it took ~3 seconds (Wolfdale 3.0GHz, 4GB ram, Vista). Then I closed IE7, waited a minute, and opened IE7 again and it was nearly instant (<1.0s)
    Reply
  • Donkey2008 - Wednesday, September 3, 2008 - link

    I've been coming to Anandtech for years now and I always expect a decent technical rundown of software like this. Just because a home has a nice garden and new paint doesn't mean that all is right with the plumbing.

    Why didn't you guys notice that the browser is set to accept ALL cookies by default? Combine that with the DNS Pre-fetching (also on by default) and you have a dangerous combo. One wrong click and you'll have dozens of cookies installed on your machine from sites that you have never even visited (and how many will be a Google ad affiliate by chance?)

    Sorry, but Google is possibly the WORST company on the entire internet to trust when it comes to privacy and this browser wasn't released out of the sheer goodness of their own heart with no strings attached.

    My 2 cents.

    By the way, the Chrome interface is quite nice. I like the simplicity :-)
    Reply
  • crimson117 - Wednesday, September 3, 2008 - link

    1. Google Chrome does not behave well with Vista set to use large fonts.

    2. Chrome plus large vista fonts = this text box (the one I'm typing this comment into) is behaving oddly.

    3. Here are some opera memory numbers:
    Just anandtech: 31.4MB
    All 4: 92MB
    Closed 3: 89.9MB
    Reply
  • xoxor - Wednesday, September 3, 2008 - link

    While Firefox & IE run DHTML Lemmings fine - Chrome does not actually play the game. I've also run into the NVIDIA site glitch as well as a few other sites.

    The TOS also bother me. Additionally, until I understand more about what it is doing with cache (specifically "Safe Browsing" under \Local Settings\Application Data\Google\Chrome\User Data) I'm not comfortable using it.
    Reply
  • roguerower - Wednesday, September 3, 2008 - link

    I'm probably just reiterating what everyone else has already said but I'm very disappointed that AT didn't test this new "Wonder Browser" vs. Opera. I switched from IE7 to Opera as a test run and within 10 minutes scrapped IE forever.

    Some interesting concepts...but some things look like they just took them from the O.
    Reply
  • Matt Campbell - Wednesday, September 3, 2008 - link

    So far my impressions are pretty good, but as Google stated their motto is "launch early and iterate", and I think they have a lot of iterations to go before Chrome will start wooing users away from the existing browsers. I agree with Ryan that the privacy statements in the terms of service worry me. I miss my mouse gestures from FF, my company webmail service still doesn't render properly in anything but IE, and Chrome tabs crashed on me several times on flash-heavy websites (though I could indeed kill that single tab without affecting the rest of the brower). It'll stay on my PC, but it will take a lot of changes to dethrone FF. Reply

Log in

Don't have an account? Sign up now