Recommended Posts

Everyone has encountered this unstoppable memory eater called web browser. I've been using it myself you know for ALOT of time and it's not very pleasing.

I've made some analysis and saw that the main page of neowin isn't so big and the browser doesn't have to download much code, images and other needed files for displaying the page, but why does 600KB of data stretch to 100MB for example in Chrome?

Does anyone know what eats the whole memory? The rendering, displaying, storing data structures of the page or the V8 engine with it's JavaScript interpretation or the Flash Player or some other memory eating beast? I suspect V8 for that. Even without all the flash player instances in a webpage it still uses an awful lot of memory, if I use a flash player blocking extension for example or check the Chrome task manager and see how much memory all flash player instances use.

What's the oppinion of the neowin community? Where goes all our precious memory?

Link to comment
https://www.neowin.net/forum/topic/1149408-the-memory-eater-called-web-browser/
Share on other sites

I think OP is just trying to figure out why this site is so dang slow the majority of the time when there really isn't much to it?

I know I'd like to know as would a whole bunch of other people as there is a topic here devoted totally to that which is multiple pages long.

Lets use this image as an example

hIbDHbul.jpg

On-disk it's 299KB but decompressed in memory it's 5.3MB. And that's just one image, every single image used takes up memory (Scaled copies, headers, pointers, temporary surfaces used for drawing, etc.), along with the actual screen contents used for rendering (Browsers these days don't draw web pages as a single screen sized image, they split it up into segments and overlay them, meaning you could easy be using 3 or 4 large images to represent a single page, using even more memory, etc.) And then you just have stuff like the DOM (A DOM elemeent takes up more memory than the compressed text that represents it, etc.) CSS information, scripts (compiled and uncompiled), script memory usage, etc.

First off, plugins and extensions aside. We're concentrating on the page itself. Even without them it still takes alot of memory and CPU resources. I agree with The_Decryptor about the decompressed images and the big rendered images. It's a good explanation, but still there was one time a page which took almost 700MB of my memory and it was just a simple article. Probably a memory leak, dunno. How much memory does the JavaScript portion of the neowin page take? Are there tools avaliable to acquire this information?

Remember, the browser does a lot of other stuff in the background... HTTP pipelining, JIT javascript compilation (which eats up quite a lot of memory just by itself) , and other stuff. Unless you're running critically low on memory it's not worth panicking about, memory is there to be used it does no good sitting idle and empty ;)

I think the major problems (especially with Firefox in the past) is that the memory management wasn't all that good, for example after more than a day with the browser open and in that time countless tabs opened and closed, the only way to flush the memory footprint taken up by the browser was to close and restart it.

I use Chrome now, so I don't know how much has changed there, all I know is what I had to do everyday with it :p

I use Chrome now, so I don't know how much has changed there, all I know is what I had to do everyday with it :p

Firefox, now, plays very well with RAM, and in a past, there was problem mostly with addons leaking memory then with Firefox it self, most addon devs made their home work. For example Ad Block Plus still rise overall RAM usage in some about 100MB, but in times with PC +4GB RAM this is small price ;)

It's "time vs space" trade-off. The interpreted nature of webpages is not of the efficient sort to begin with. In browsers you have all too many of these - various attempts at HTML and CSS versions, both usually full of workarounds, leeways, lax attitude and generally shyte code, and then the awesome JS, being previous two plus getting compiled so it doesn't have to interpret it all over again for each little event that happens to run some JS.

They're all actually doing a really good job with a totally backasswards technology in the first place.

Thus it clogs up your RAM. RAM is intended to be used exactly in this way, though. If it sits empty, you've wasted your money.

This topic is now closed to further replies.
  • Posts

    • Most of UK Gov are involved in pedophelia and satanic cults/rituals aka epstein mossad agent.
    • Nvidia outs hotfix driver for BSOD, wake from sleep, G-SYNC, Smooth Motion, NV-Failsafe by Sayan Sen Nvidia today rolled out a new hotfix driver in order to fix various issues related to monitors and displays. The company notes G-SYNC-related frame pacing troubles should now be resolved on Ada Lovelace GPUs, ie, RTX 4000 series graphics cards. For anyone not familiar, G-SYNC is Nvidia's in-house proprietary adaptive synchronization tech that syncs the GPU's framerate output with the monitor's refresh rate in order to match them and eliminate screen tearing. On the topic of synchronization, Nvidia claims improved stability when gaming with Vsync or vertical sync on multi-monitor displays. The company also finally fixes a bug wherein displays would fail to wake up from sleep mode. Another bug has been resolved when certain monitors were identified as "NV-Failsafe" since the EDID information was incorrectly read by the GPU. EDID or Extended Display Identification Data of a monitor essentially contains the necessary metadata that lets a GPU understand the features and capabilities of a connected monitor. Ghosting and jittering problems as well as game crashes during the use of the Smooth Motion functionality have also been fixed with this release. Nvidia Smooth Motion feature is a driver-based AI model that delivers a seemingly "smoother" gameplay experience by inferring an additional frame between two rendered frames. Here is the full changelog for the new GeForce hotfix driver 610.52: [Ada] Resolves a frame pacing issue on certain monitors when G-SYNC is enabled Resolved an issue that prevented the EDID from being read on certain monitors causing them to be identified as "NVIDIA NV-Failsafe” Improved gaming stability in multi-monitor configurations when using V-SYNC with DLSS Frame Generation Resolved an issue where certain monitors would not wake from sleep mode [World of Warcraft] Gaming stability improvements Resolved an issue that could cause jittering or ghosting in some DirectX 11 games when Smooth Motion is enabled Resolved an issue that could cause some games to crash when launched with Smooth Motion enabled General stability improvements when the system fails to create a new allocation Others in the feedback thread also point out that the hotfix patches a blue screen of death (BSOD) issue. You can provide your own feedback there too after downloading the new 610.52 driver from Nvidia's official website at this link. Keep in mind that this hotfix is not essential to install unless you are having any or all of these issues. As such you can stay on the latest available GameReady driver version 610.47.
    • Those persons has complete control over the internet right now. They do see everything what we do regardless.
    • Everyone and every country who doesn't support Israel's aggression, terrorism and hypocrisy is their immediate enemy. You can definitely see how many innocent people they are killing almost everyday. In fact they're the actual Neo-Nazi who holds Hitler's ideology.
    • Just pull a 4Chan and ignore the UK gov, or better troll them. It's not like they can enforce the fine across border.
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      PsYcHoKiLLa
      219
    3. 3
      ATLien_0
      92
    4. 4
      +Edouard
      88
    5. 5
      Steven P.
      83
  • Tell a friend

    Love Neowin? Tell a friend!