9 ms·
> 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 br
by glibgil 9y ago
> 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 interacted with by the user and the network.
2) The real reason: Chrome either has no memory budget or the memory budget was set to 100 MB. The engineers decided that some amount of memory usage was acceptable and that's what you get. If a new budget was created, say 10 MB, then what you would see is some very clever engineering to overcome the problems in the first reason I gave. Chrome would be responsive at all times and use very little memory per tab, but at great engineering cost. It would be very difficult, but interesting work.
- rasz 9y ago1 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?
- deleted 9y ago[deleted]
- DennisAleynikov 9y agothis is supposed to be exaggerated but who the fuck uses a 32 core computer with hundreds for gigabytes of ram. Do you mean their data centers?
- taspeotis 9y agoThe numbers might be slightly exaggerated. Nonetheless, they’re high-end machines. https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and-i-cant-move-my-mouse/ https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and...
- IncRnd 9y agoMy desktop has 128 GB with 32 cores.
- KindOne 9y agoWhat CPU/mobo you using?
- IncRnd 9y agoThe one I mentioned is a precision w/ 2x2680. These dropped in price and flooded the market after leases finished. There are too many problems and finicky nonsense with adding extra video cards (due to the power supply). I also have an HP w/ 2x2680v2 128GB on the way. Using the HP I'll be able use for some projects a few of the old nanos and 295x2s I have sitting around. These are so cheap now.
- KindOne 9y agoReminds me of this, https://medium.com/@timgasser/build-a-16-core-128gb-server-for-less-than-intels-new-10-core-cpu-c6de4d10a686 https://medium.com/@timgasser/build-a-16-core-128gb-server-f... Looks like from supply and demand those prices increased a bit.
- gravypod 9y agoDo you have any model numbers or suggestions as to where to buy this sort of stuff? I want to get (always wanted really) a dev server for home.
- amzn_82582 9y agoMost amazon employees now use ec2 instances as their development environment so using a x1e.32xlarge with 128 vCPU's (64 cores over 4 sockets), 3,904 GiB of memory, 2 x 1,920 NVMe GB drives, and 14,000 Mbps of EBS bandwidth is possible. Granted, I don't know anyone that uses that much and you would probably get asked by management for using a dev desktop that big but you can if you need to. I myself use just a i3.xlarge with 4 vCPU's, 30.5 or memory, Up to 10 Gigabit of EBS storage and 1 x 0.95 NVMe SSD.
- jjuhl 9y agoMy dev workstation at work has 20 Xeon cores w/ HT (so 40 threads), 64GB RAM and a 1TB NVME SSD. All that hardware sees plenty of use when compiling large C++ applications. My home machine has 4 i7 cores w/ HT, 32GB RAM & a 1TB SSD. Compiling stuff on that one is ok, although quite a bit slower.
- dgquintas 9y agoThe 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.
- Blindedwino 9y agoI would venture to say that most of the world isn't using computers with 32GB RAM...
- foepys 9y agoEspecially since 32GB DDR4 RAM currently cost ~$350.
- meuk 9y agoI consider 2GB acceptable, 4GB normal, and 8GB high-end (maybe even overkill).
- golergka 9y agoStrange, that's the metric I personally used around 2008. Haven't ran into a computer with less than 16GB for the last few years.
- Macha 9y ago8GB is still a pretty common setup * Literally every current MacBook except the 15" MBP * iMacs unless you choose to upgrade the RAM * My local PC retailers website has 34 models with 4GB of RAM, 84 with 8GB and 28 with 16GB. The cheapest 16gb laptop there is €1100. They also sell 3 Chromebooks and 1 windows 10 device with 2GB of RAM..
- oblio 9y agoA rather popular hardware site in a developing country, but one on the upper range of "developing". So probably better off than 60% of the world's population: 399 laptops with 4GB of RAM: https://www.pcgarage.ro/notebook-laptop/filtre/memorie-capacitate-4/ https://www.pcgarage.ro/notebook-laptop/filtre/memorie-capac... 548 laptops with 8GB of RAM: https://www.pcgarage.ro/notebook-laptop/filtre/memorie-capacitate-8/ https://www.pcgarage.ro/notebook-laptop/filtre/memorie-capac... Less than 200 laptops, in total, with 16GB RAM or more. So probably less than 20% of the laptops on sale have that much memory, in 2018. The "real" world is quite different to what us folks in IT see in our corner of the world.
- bsimpson 9y agoFWIW, I'm a Google dev and my only computer is the same 2015 15" MacBook Pro that many of the people reading this have had. Anecdotally, most of the developers I see are in the same boat (using a rMBP as their primary machine). Many of the folks who work in our monorepo have an additional Linux workstation - not sure what the specs are on it, or what the average split is between laptop and workstation surfing. I also haven't paid that much attention to see if the folks I know on the Chrome team have substantially different usage.
- SquareWheel 9y ago>Why would they bother optimizing? Because they're also targeting Android devices.
- Feniks 9y agoThis incidentally is why I chose a OnePlus: for its 6Gb of RAM.
- toephu2 9y ago>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.
- quicklime 9y agoChrome 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.
- mattlondon 9y agoThe standard setup is a Linux desktop workstation - typically 6-8 core and 32-64gig ram depending on age (although there are some special set ups). The required build tools and software for the internal engineering systems aren't usually available on a Mac so you'll need to have a Linux machine (physical or virtual) somewhere to remote into to do any dev work (again some teams are different but the bulk of engineers use the centralised Google infrastructure for source control, builds etc) In addition to the desktop, every engineer gets a choice of laptop (Mac/windows/Chromebook) as well for email, meetings and cat videos. Non-engineering just get a single laptop. Many many people now pick to use Chromebooks.
- akulbe 9y agoAnother implied solution perhaps... don't use so many tabs? (I promise you, I'm speaking to myself as I say that. I use way too many, myself)
- lev99 9y agoI'm currently at 30 Firefox tabs and it's using 1.24gb of memory. Much less than 100mb/tab.
- chalupa-man 9y agoFirefox recently switched to a design that tends towards a higher base memory usage than Chrome, but a lower usage for each new tab. With the same 30 tabs open and no extensions, the current Firefox uses ~30% less memory than Chrome. But opened only to one tab, Chrome uses ~60% less memory than Firefox. It's an interesting tradeoff.
- DennisP 9y agoI'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.
- vageli 9y agoAs a person who also has way too manu tabs open at all times, I've had success with the great suspender [0]. It "suspends" pages after a timeout so they use less memory. [0]: https://chrome.google.com/webstore/detail/the-great-suspender/klbibkeccnjlkjkiokjodocebajanakg?hl=en https://chrome.google.com/webstore/detail/the-great-suspende...
- TheOtherHobbes 9y agoSeconded. I reliably have a few hundred tabs open, and GS keeps them all manageable. It’s not always happy if Chrome crashes or I have to do a cold reboot, but mostly it keeps Chrome’s gluttony under control.
- LordDragonfang 9y agoThe current version also has a bug where it will create so many cookies on google-owned domains that it will exceed the header limit and cause a 500 response. The dev refuses to fix it until he implements a feature to make suspended tabs persist across updates, which is apparently slow going.
- imhoguy 9y agoWell, it is opensource so anyone can fix it for fun or profit: https://github.com/deanoemcke/thegreatsuspender https://github.com/deanoemcke/thegreatsuspender
- EGreg 9y agoAt this point why not just use something like OneTab? It also syncs the tabs across many computers.