Massively-improved memory use of Firefox 3
It’s great to see the massively-improved memory use of Firefox 3. It far excels anything that we offered, previously, and seems to best all other browsers on the platform.
Now, obviously, Windows Vista isn’t the only platform available. I, personally, use Debian (Linux) and am interested to see the memory numbers there as well.
The short summary is Windows Vista (Commit Size) and Linux (RSS) provide pretty accurate memory measurement numbers while Windows XP and Mac OS X do not.

On Mac, If you look at Activity Monitor it will look like we’re using more memory than we actually are. Mac OS X has a similar, but different, problem to Windows XP. After extensive testing and confirmation from Apple employees we realized that there was no way for an allocator to give unused pages of memory back while keeping the address range reserved.. (You can unmap them and remap them, but that causes some race conditions and isn’t as performant.) There are APIs that claim to do it (both madvise() and msync()) but they don’t actually do anything. It does appear that pages mapped in that haven’t been written to won’t be accounted for in memory stats, but you’ve written to them they’re going to show as taking up space until you unmap them. Since allocators will reuse space, you generally won’t have that many pages mapped in that haven’t been written to. Our application can and will reuse the free pages, so you should see Firefox hit a peak number and generally not grow a lot higher than that.
I think it’s great to see these numbers come in. In many ways Firefox 3 is going to be a very different browser from its previous instantiations. I’ve, personally, been using it as my primary browser for a while now and have enjoyed the increased performance. It really does feel – and really even look – like a whole new browser.
It’s great to see the massively-improved memory use of Firefox 3. It far excels anything that we offered, previously, and seems to best all other browsers on the platform.
Now, obviously, Windows Vista isn’t the only platform available. I, personally, use Debian (Linux) and am interested to see the memory numbers there as well.
The short summary is Windows Vista (Commit Size) and Linux (RSS) provide pretty accurate memory measurement numbers while Windows XP and Mac OS X do not.

On Mac, If you look at Activity Monitor it will look like we’re using more memory than we actually are. Mac OS X has a similar, but different, problem to Windows XP. After extensive testing and confirmation from Apple employees we realized that there was no way for an allocator to give unused pages of memory back while keeping the address range reserved.. (You can unmap them and remap them, but that causes some race conditions and isn’t as performant.) There are APIs that claim to do it (both madvise() and msync()) but they don’t actually do anything. It does appear that pages mapped in that haven’t been written to won’t be accounted for in memory stats, but you’ve written to them they’re going to show as taking up space until you unmap them. Since allocators will reuse space, you generally won’t have that many pages mapped in that haven’t been written to. Our application can and will reuse the free pages, so you should see Firefox hit a peak number and generally not grow a lot higher than that.
I think it’s great to see these numbers come in. In many ways Firefox 3 is going to be a very different browser from its previous instantiations. I’ve, personally, been using it as my primary browser for a while now and have enjoyed the increased performance. It really does feel – and really even look – like a whole new browser.
Related posts:
1 Comment to “Massively-improved memory use of Firefox 3”
Post comment
Archives
Recent Posts
- Installing Linux Mint 5 LTS into a Pen-Drive
- BlackBerry SSH: Connect to the remote Linux Server using MidpSSH on BlackBerry Curve 8520
- How to hack or crack Wi-Fi Password Using Debian Linux
- Cracking Wi-Fi Password with Debian Linux
- Speed Up Your Web Browsing with OpenDNS
Recent Comments
- janav on BlackBerry SSH: Connect to the remote Linux Server using MidpSSH on BlackBerry Curve 8520
- sandeep on Speed Up Your Web Browsing with OpenDNS
- Rakesh on BlackBerry SSH: Connect to the remote Linux Server using MidpSSH on BlackBerry Curve 8520
- Marc Paradise on BlackBerry SSH: Connect to the remote Linux Server using MidpSSH on BlackBerry Curve 8520
- Rakesh on CairoDock on Debian Lenny (like dock in Mac OS X)
Blog Sponsor
Tags
Switch site
Blogroll
- Debaira: Debian Blog
- Ian Murdock: Debian
- Linus Torvalds
- Mark Shuttleworth: Ubuntu
- Naba: Anjuta (IDE)
- TechCrunch


Posted by Rakesh in
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=510b471d-0cc3-4f47-8fe8-49c09144b1d3)


Greg K. says:
Your blog post is inspiration that i can learn more about this topic. I must admit your clarity broadened my sentiments and I’ll right away take your rss feed to stay up to date on any future content you will write. You deserve gives thanks for the job well done!