Live data from Hacker News

The Great Suspender: Free up memory by suspending inactive Chrome tabs

chrome.google.com

21–30 of 94 posts

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#21
post #2

https://developers.google.com/web/updates/2015/09/tab-discar...

I think this feature would be much more useful if, instead of waiting for the system to run low on memory, I could define a memory usage threshold at which Chrome starts discarding tabs.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#23
post #12

What I do, when Chrome, or rather, my abuse of it (14 windows, 735 tabs at the moment, Ubuntu 14.04 64 bit on a 32 GiB system) becomes onerous is to go to the task manager and kill groups of tabs taking up "too much" memory, and very occasionally, too much CPU. (I get away with that abuse, which it a bit higher right now because I'm in the process of buying a house, by killing all tabs after launching, and only enabl…

My god, I feel much better with my puny abuse.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#25
The best use of this is for saving battery life. Chrome will absolutely destroy your battery. You can configure it to auto-suspend tabs after X minutes of inactivity only when you are on battery. (Alternatively you can switch to Safari to save battery life.)

Like others have said, The Great Suspender will often break web pages and force them to completely reload. This ruins infinite scroller pages too. So thats the trade off.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#26
post #12

What I do, when Chrome, or rather, my abuse of it (14 windows, 735 tabs at the moment, Ubuntu 14.04 64 bit on a 32 GiB system) becomes onerous is to go to the task manager and kill groups of tabs taking up "too much" memory, and very occasionally, too much CPU. (I get away with that abuse, which it a bit higher right now because I'm in the process of buying a house, by killing all tabs after launching, and only enabl…

Ah, good, it's not just me! One anecdote - 5 years ago FF was the clear winner for coping with tab abuse. Stable and coped with hundreds of tabs happily, Chrome started crashing pages beyond 50 or so. Now it's the perfect reverse, FF hates a lot of tabs open and Chrome is stable with apparently limitless numbers.

Personally I have both working fine with hundreds of tabs, but chrome uses 5-10 times the ram.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#27
post #12

What I do, when Chrome, or rather, my abuse of it (14 windows, 735 tabs at the moment, Ubuntu 14.04 64 bit on a 32 GiB system) becomes onerous is to go to the task manager and kill groups of tabs taking up "too much" memory, and very occasionally, too much CPU. (I get away with that abuse, which it a bit higher right now because I'm in the process of buying a house, by killing all tabs after launching, and only enabl…

Ah, good, it's not just me! One anecdote - 5 years ago FF was the clear winner for coping with tab abuse. Stable and coped with hundreds of tabs happily, Chrome started crashing pages beyond 50 or so. Now it's the perfect reverse, FF hates a lot of tabs open and Chrome is stable with apparently limitless numbers.

Anybody knows what changed in Firefox?

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#28

Turned that off almost immediately. Sounds good in theory, but if a suspended page has a heartbeat of any sort, it has to reload when you return to it. If that page is an infinite scroller, or if you've hit the "load more" button a couple of times, well, so much for starting up again where you left off.

Mobile browsers already suspended most background stuff, and it occasionally does cause issues like that, but usually it just works.

I learned this out a few years ago when trying to figure out why my metrics sometimes reported mobile visitors with load times of hours or even days... Turns out that they opened the site and then switched tabs/apps before it finished loading. Everything except that metric worked fine. I added a heartbeat just to detect that, and it worked without introducing any extra reloads.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#29
post #12

What I do, when Chrome, or rather, my abuse of it (14 windows, 735 tabs at the moment, Ubuntu 14.04 64 bit on a 32 GiB system) becomes onerous is to go to the task manager and kill groups of tabs taking up "too much" memory, and very occasionally, too much CPU. (I get away with that abuse, which it a bit higher right now because I'm in the process of buying a house, by killing all tabs after launching, and only enabl…

I'm amazed you can load that many tabs in Chrome. I got to 608 in Firefox (in 4GB) but that's with most of them suspended. And Firefox makes it much easier to find the tabs you want.....

Incidentally, recent builds of the Chromium-based Vivaldi browser had this suspend feature before Chrome did. As did some Chrome extensions, of course.

Re: The Great Suspender: Free up memory by suspending inactive Chrome tabs

#30
post #8

Idea: What if there was an OS interface to mark memory regions as "throwaway"? Throwaway in the sense that it's less costly to recalculate than to recall it from swap. So the OS would throw such memory regions instead of swapping out and signal the process about it to recalculate it if needed. I don't usually bump into heavy swap usage except when I wake my laptop from hibernate. I tend to close browsers before hiber…

There has been some thoughts about implementing this for linux, but I don't think it got very far. The idea is that you mark a range of memory as "volatile", and the OS will free that when it's running low on memory. In most cases where you're running out of memory though, swapping out pages or killing a program using the memory is probably the right thing to do though.

https://lwn.net/Articles/522135/

Post reply on HN