7 ms·
I'm eager for info too. But while we're waiting, I have a genuine, not snarky, question too: does this ever actually negatively impact people's use of their com
by Waterluvian 9y ago
I'm eager for info too. But while we're waiting, I have a genuine, not snarky, question too: does this ever actually negatively impact people's use of their computer? I can't recall ever feeling like my browser having lots of tabs open has changed the experience. RAM and resource usage hasn't been on my mind in years.
- gnicholas 9y agoSure. I have this issue and I assume others do to, based on the success of the browser extensions that auto-sleep tabs. For my part, whenever my computer is slow, browsers are almost always the cause. I typically restart one or both of my browsers (Chrome/Firefox) when my computer is slow or the fan is whirring like crazy.
- Waterluvian 9y agoSurely my PC usage behaviours are hiding this from me, then.
- ebikelaw 9y agoIndeed, "free memory" is the biggest waste of money and energy imaginable. Unless you lack the memory necessary to do something else, you shouldn't care. If the question really needs answering, the poster should just get a heap profile. Some instructions are here: http://goog-perftools.sourceforge.net/doc/heap_profiler.html http://goog-perftools.sourceforge.net/doc/heap_profiler.html You may also wish to try the memlog flag to chrome, or rebuild chrome with TCMALLOC_SMALL_BUT_SLOW defined. Warning: it does what it says.
- userbinator 9y agoUnless you lack the memory necessary to do something else, you shouldn't care. This is exactly the attitude that leads to such problems. Applications that assume they can use all of the available memory on the machine are hostile to multitasking environments.
- Klathmon 9y agoIIRC chrome actively adjusts its memory usage based on available memory. If you have very little, it will turn off many optimizations, turn on features that reduce memory (like tab suspension built into the browser), and overall adjust the whole browser to use less resources but go slower.
- paulryanrogers 9y agoApplications should use all available RAM they practically can for things like cache. Ideally they will hold on to it lightly so other applications can take what they need. Entirely unused RAM is a waste if never used.
- zeusk 9y agoThe OS should use all available RAM it practically can for things like cache. Not the applications.
- chaboud 9y agoThat may not actually be a practical approach to the problem. Years (and jobs) ago, we rolled significant caching into Vegas (video editor), allowing the app to take up 8GB of RAM in cached frames, even on 32-bit builds. There was no way for the OS to do this sort of work for us. The best that the operating system would have been able to do would have been to cache file reads for us. Caching the output of computation was incredibly valuable to our customers, and the caching that the OS would have done would have had little to no benefit to our customers. The same could be said for Chrome. Maybe there is value to a globally coordinated OS caching manager, but the OS shouldn't have sole responsibility for caching. Such an approach is clearly suboptimal for the user in at least one use-case (see example above).
- zeusk 9y agoYou're talking about a professional software suite meant to work on workstations often solely meant to run that suite. Chrome has to cooperatively share resources with other applications and with aggressive caching at application level, the only strategy at hands of the OS is to start swapping.
- minitech 9y ago> Unless you lack the memory necessary to do something else This is the case. 8 GB of memory, VM takes half of it, Chrome will happily take the rest with few tabs open and lock up my computer.
- poopchute 9y agoI sometimes run into the issue when I'm working on my addons for World of Warcraft. I'll frequently have 2 instances of the game open (~4gb of RAM each) + my editor + whatever else I havn't bothered to close and a ton of chrome tabs. Typcially those extra things are pdf documents, skype, qbittorrent and others I can't recall at the moment. I hit my cap of 16gb RAM pretty consistently.
- tarboreus 9y agoMy laptop has 8 GB of memory and I have to make sure to have no more than 4 or 5 Chrome tabs open when I use a VM.
- SXX 9y agoYou might instead use: --renderer-process-limit=4
- akulbe 9y agoYes, absolutely. I've had Chrome tabs take an inordinate amount of RAM and CPU and make the fans spin up. Enough so that other things were slow.
- panarky 9y ago> inordinate amount of RAM and CPU and make the fans spin up I almost always find that this is caused by a badly behaved website, not Chrome itself. Some sites have horribly written JavaScript, or introduce ads that run their own CPU- and memory-intensive JavaScript. Finding and closing those tabs, or disabling JavaScript, or using uBlock or uMatrix usually solves it for me.
- burfog 9y agoChrome needs to handle a malicious web site. Chrome thus gets the blame when it fails to enforce proper resource limits.
- stordoff 9y agoI find that a long-running Chrome instance will often start using huge amount of CPU time for no good reason (the Chrome task manager currently reports the "Browser" task is using 110% CPU and has used over 18hrs CPU time for my current instance). I've observed this on three different machines, one of which isn't used by me so there shouldn't be too much overlap in terms of sites used etc.
- burfog 9y agoYes indeed. My computer at work has 16 GB. It gets slow. Every now and then, I'll open a web page that pushes things past a limit. The browser becomes completely unresponsive and sometimes I can't even move my mouse. While I'm suffering from running out of memory, the browser decides to use up even more memory to pop up a dialog to taunt me about it. This can even happen without user action, for example when a page automatically loads a new ad. The ads on reddit seem particularly bad in this way. Randomly, one will eat all my RAM. I often end up having to hold down the power button for 5 seconds. That, and pulling the power cord, are the only reasonable recovery. If I get "lucky", as I did a few days ago, Linux will kill the X11 server; this violently shuts down the whole GUI. I really really hate the situation. I blame most of it on Chromium and Firefox, both of which don't make a serious attempt to keep things under control. A bit of blame goes to the fact that resources allocated in the X11 server can not be easily mapped back to web pages and thus kept within page-specific memory quotas.
- lev99 9y agoWhy haven't you switched to wayland yet?
- xbmcuser 9y agoWhy don't you stop opening so many tabs. People complain about memory usage by chrome and other browsers but at the same time they are the ones that are using tabs as bookmarks instead of actually using bookmarks. 100tabs open out which 50 they will probably never go back to.
- minitech 9y agoI don’t use my tabs as bookmarks. I use them as tabs, to switch between and to have open, to group into windows. It works very well.
- minitech 9y ago> I often end up having to hold down the power button for 5 seconds. If you enable the magic SysRq key, Alt+Print Screen+F will trigger the OOM killer. Quick enable for those who want it: kernel.sysrq = 1 in /etc/sysctl.d/90-sysrq.conf. > I blame most of it on Chromium and Firefox I rarely have this problem with modern Firefox, but also block ads so maybe that makes the difference. Chrome is always bad, though.
- fyfy18 9y agoMy laptop (2014 MacBook Air) only has 4GB of RAM. Most of the time it’s usually fine with Chrome, Spotify, Slack, a Terminal, Rails, Webpack and Neovim (with ALE, so another Node process running). However I have to keep the number of tabs open to a minimum, if I have more than 20 it just grinds to a halt. And restarting Chrome usually involves waiting for a few minutes for everything to load up. Starting Docker or Sketch is also painful. Fortunately I have a Linux desktop which is my primary machine, but I do still use this quite a lot when I’m working away from my desk.
- nbsd4lyfe 9y agoYes, I have a noisy fan and if the browser makes it turn on it's distracting.