News for hackers. Stuff that matters.
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by DennisP on Saturday March 10, 2018 @08:23PM (#16561157)
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.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by vageli on Saturday March 10, 2018 @08:41PM (#16561225)
As 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-suspende...

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by LordDragonfang on Sunday March 11, 2018 @04:56AM (#16562250)
The 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.
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by imhoguy on Sunday March 11, 2018 @05:30AM (#16562315)
Well, it is opensource so anyone can fix it for fun or profit: https://github.com/deanoemcke/thegreatsuspender
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by TheOtherHobbes on Sunday March 11, 2018 @04:52AM (#16562243)
Seconded. 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.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by EGreg on Sunday March 11, 2018 @08:06AM (#16562678)
At this point why not just use something like OneTab? It also syncs the tabs across many computers.
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by Klathmon on Saturday March 10, 2018 @10:51PM (#16561611)
Well chrome will "suspend" tabs when it sees your system is running low on memory, and will resume them when you switch to them.

But it's a much harder problem to solve than many think. For example, if they start "suspending" my slack tab, or my email tab, and I begin missing messages I'm going to be quite upset...

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by mkl on Sunday March 11, 2018 @12:23AM (#16561813)
That doesn't sound like a reason for it to be hard - just provide a way to mark tabs as "don't suspend". I have only a couple I would put in that category, and I really wish Chrome would stop burning up all my resources and battery on the rest (often it's not a specific tab, just the "Browser" process, so I can't do it manually).
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by askmike on Sunday March 11, 2018 @12:37AM (#16561834)
I'm pretty sure the amount of users that actually like this opt-out behaviour (everything gets suspended by default) is a minority.

Instead what they choose to do is not worry about memory until it you actually run out of it. I don't mind my applications taking up 90% of my memory if that keeps everything fast and I don't have to worry about keeping track and thinking about what I actually want to suspend and what I dont't.

If you really do mind, just run any of the plugins that implements your exact required behaviour (like the great suspender).

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by tinus_hn on Sunday March 11, 2018 @08:00AM (#16562662)
Next step: Limit the amount of memory available to Chrome so it thinks your system is running low on memory earlier.

> I'm going to be quite upset...

You'll get over it, I promise.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by Klathmon on Sunday March 11, 2018 @10:10AM (#16563059)
I'd just end up using another browser that doesn't purposely slow itself down or make me miss notifications or stop background activity unnecessarily.

Why the extreme majority would want that from their browser all the time baffles me. Just to see a lower number in a resource monitor window?

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by MrMid on Sunday March 11, 2018 @08:31AM (#16562746)
Firefox keeps alive pinned tabs, don't know about chrome
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by TheSpiceIsLife on Sunday March 11, 2018 @05:47AM (#16562360)
If one tab uses about 100MB of memory then does two hundred tabs use 20GB of RAM?

You say you sometimes have "hundreds" of tabs open, I've done this too, but my laptop doesn't have 20GB of RAM, but it just seems to work anyway.

What I ended up doing was: just stop looking at resource monitors.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by DennisP on Sunday March 11, 2018 @09:53AM (#16562990)
I don't know but it eventually bogs down the computer. Fan starts running hard and everything's slow until I close down a bunch of tabs.
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by epigramx on Sunday March 11, 2018 @01:11AM (#16561897)
> I'm perfectly willing to wait a second

I'm not. I open dozens of pages simultaneously routinely. 1 second here, one second there, it adds up.

Sure, it's not the end of the world, but those differences were why Chrome was better than Firefox.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by Dylan16807 on Sunday March 11, 2018 @01:34AM (#16561934)
You cut off the "if I haven't touched the tab in an hour" part.

How many times does that pretty-narrow situation happen to you in a day?

If you had such a memory-saving mechanism, boosted by prefetching the tabs adjacent to my current tab, it would barely cost me any seconds in an average week. Running low on memory is a big hassle taking a lot of seconds to deal with.

Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by qrbLPHiKpiux on Sunday March 11, 2018 @04:10AM (#16562154)
That one second makes me want to smash my device to pieces.
[dead]
Re:Ask HN: One tab on Chrome takes about 100MB memory, why? by teh_klev on Sunday March 11, 2018 @04:42AM (#16562227)
And stop being quite so snarky to users who may not know about these hidden settings.