Live data from Hacker News

Ask HN: One tab on Chrome takes about 100MB memory, why?

news.ycombinator.com

101–110 of 210 posts

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#101
post #67

Earlier quoted context omitted.

>Google devs use 16-32 core machines, often with hundreds of gigabytes ram You obviously have no idea what you are talking about. Most devs at Google use MacBook Pros.. which cannot even be upgraded to hold hundreds of gigs of ram.

Chrome devs are given both a laptop (most choose a MacBook Pro) and a fairly beefy desktop. My one had 64G of RAM, and that was given to me six years ago.

Are those 64GB for browsing the web as parent poster claims, or for compiling software, leaving much less for web browsing?

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#102
post #14

Earlier quoted context omitted.

1 is entirely possible. Opera 12.x takes ~3-10MB per TAB (+the weight of the media used on the page). There is zero latency, opening new/switching tabs is instantaneous. Google devs use 16-32 core machines, often with hundreds of gigabytes ram. Why would they bother optimizing?

The standard machine has 32 GB. So I guess 0.32 hundreds... And for completeness, 6 physical cores, 12 logical with HT. Still beefy, but nothing out of the ordinary.

Surely 16Gb was more common at least until recently? Haven’t seen many 32gb ram mbp in the wild. Actually, I’ve never seen one.

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#104

Earlier quoted context omitted.

The standard machine has 32 GB. So I guess 0.32 hundreds... And for completeness, 6 physical cores, 12 logical with HT. Still beefy, but nothing out of the ordinary.

I would venture to say that most of the world isn't using computers with 32GB RAM...

I consider 2GB acceptable, 4GB normal, and 8GB high-end (maybe even overkill).

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#105
post #87

To my overly long TODO-list I added a web browser project. I would like to see something akin to Links [0] or Lynx [1] with a bit of Dillo [2], but also for mobile. Features & non-features: - it would generally work like the reader mode (no other modes) trying to place navigation links in a predictable place - user can easily select text size and color schemes - night mode (Android does not have one) - because of it'…

What's the use of night mode? Even if someone needs to browse web in the darkness (which is a bad idea anyway), it should be implemented somewhere in the OS, not in applications.

Sometimes you need to browse in the darkness. It should be implemented in the OS, but it isn't. I don't have a mobile OS on my TODO list.

The night mode would be just a small additional setting on top of a color scheme selection.

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#106
post #34
post #4

> One tab on chrome takes about 100MB memory, why? Two reasons 1) Because, Chrome is ready to do something with that tab: browse the web. Do this, create a browser that doesn't use much memory when a tab is idle. Switch back to that tab and interact with the page or go to a new page. You will experience latency. It will feel slow. That's why the tab uses a lot of memory. It is staying ready at all times to be interac…

I'm perfectly willing to wait a second for the page to be reloaded from solid-state storage, if I haven't visited the page for an hour or more. Some people might say I shouldn't keep hundreds of tabs open for weeks. But I'm an old guy, and by my standards my laptop is a freakin supercomputer, so in my mind it should be able to handle all the web pages I can manually throw at it.

> I'm perfectly willing to wait a second for the page to be reloaded from solid-state storage, if I haven't visited the page for an hour or more.

Great, then set vm.swappiness = 100

And stop complaining about about virtual memory usage.

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#107
post #34
post #4

> One tab on chrome takes about 100MB memory, why? Two reasons 1) Because, Chrome is ready to do something with that tab: browse the web. Do this, create a browser that doesn't use much memory when a tab is idle. Switch back to that tab and interact with the page or go to a new page. You will experience latency. It will feel slow. That's why the tab uses a lot of memory. It is staying ready at all times to be interac…

I'm perfectly willing to wait a second for the page to be reloaded from solid-state storage, if I haven't visited the page for an hour or more. Some people might say I shouldn't keep hundreds of tabs open for weeks. But I'm an old guy, and by my standards my laptop is a freakin supercomputer, so in my mind it should be able to handle all the web pages I can manually throw at it.

That one second makes me want to smash my device to pieces.

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#108
post #12

(I have worked as an engineer on both Ubuntu and Chrome) > One tab on chrome takes about 100MB memory, why? It probably doesn't. Much of that apparent memory usage is shared between all tabs, and the browser renderer process, etc. in the form of shared memory. Quite a bit of it will be the executable code itself, which is "mapped" into memory, given an address, and allocated the full size but doesn't actually consume…

Okay, may be OP's estimation of that being a per tab usage was not quite right, but why does ~30 tabs result in 3GB+ of usage?

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#109

Earlier quoted context omitted.

The standard machine has 32 GB. So I guess 0.32 hundreds... And for completeness, 6 physical cores, 12 logical with HT. Still beefy, but nothing out of the ordinary.

You are so wrong. Check here http://store.steampowered.com/hwsurvey/ these are gaming, most powerful PCs people are using. 8gb is 44% of all users.

yeah, sorry, I was referring specifically to the Google developer standard workstations.

Re: Ask HN: One tab on Chrome takes about 100MB memory, why?

#110
post #86
post #80

Earlier quoted context omitted.

OP is talking about the machines Google devs use, and I am betting they are definitely not desktop machines.

He was describing the standard desktop workstation at Google. My understanding is that they have rMBP laptops and slightly beefier desktops.

some people have macs, some other people have thinkpads (at other points in time, there have been dells or HPs as well). But only desktops are actually used for any development.
Post reply on HN