Huge use of RAM Topic is solved

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

User avatar
Aztec
Hobby Astronomer
Hobby Astronomer
Posts: 25
Joined: 2018-09-08, 18:02

Huge use of RAM

Unread post by Aztec » 2021-02-02, 13:32

Basilisk 2021-1-5 uses A LOT of RAM even after the tabs were closed (for some reason all browsers based on firefox including firefox itself do this)

Image
Core i7 3770 3.4 Ghz - 16 GB RAM - Win10 x64 - Intel HD Graphics 4000

Image

New Tobin Paradigm

Re: Huge use of RAM

Unread post by New Tobin Paradigm » 2021-02-02, 13:49

How long has your session been and what types of sites have you been to? What have you been doing? How long has it been since you closed the last tab?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Huge use of RAM

Unread post by Moonchild » 2021-02-02, 13:51

1 GB is not strange for a modern browser visiting current heavy websites.
Also, understand that immediately after closing tabs, memory will not instantly reduce because of the various caching mechanisms in play and the fact that JS memory needs to be garbage-collected.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 783
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Huge use of RAM

Unread post by jobbautista9 » 2021-02-03, 08:10

Moonchild wrote:
2021-02-02, 13:51
Also, understand that immediately after closing tabs, memory will not instantly reduce because of the various caching mechanisms in play and the fact that JS memory needs to be garbage-collected.
Ah, so that's why memory doesn't immediately reduce after I close a tab.

Does that also explain why when I close a tab, memory temporarily spikes up then goes down after a few seconds? This usually happens when I close a Facebook or YouTube tab after browsing there for a long time.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Huge use of RAM

Unread post by Moonchild » 2021-02-03, 09:03

jobbautista9 wrote:
2021-02-03, 08:10
Does that also explain why when I close a tab, memory temporarily spikes up then goes down after a few seconds?
When visiting those sites? yes, that's expected. It will most likely trigger a run which basically moves memory to a fresh block to get rid of fragmentation, that temporarily increases memory use.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Huge use of RAM

Unread post by New Tobin Paradigm » 2021-02-03, 10:19

Now there is a known but unsolved issue of some sites, mostly google/youtube/github/twitter that can cause a pile up of ghost windows leading to eventual memory usage that won't ever be released or may take even longer before it gets forced out of memory but after a few days you can just close and reopen the application.

I don't normally do anything about it unless it starts impacting performance. Also, hasn't been that severe imo since early 2019.

User avatar
Aztec
Hobby Astronomer
Hobby Astronomer
Posts: 25
Joined: 2018-09-08, 18:02

Re: Huge use of RAM

Unread post by Aztec » 2021-02-03, 12:28

Also, understand that immediately after closing tabs, memory will not instantly reduce because of the various caching mechanisms in play and the fact that JS memory needs to be garbage-collected.
I see, thanks for the explanation Moonchild, although surely is strange to see the RAM so high, some time ago something like this would be unthinkable.
Core i7 3770 3.4 Ghz - 16 GB RAM - Win10 x64 - Intel HD Graphics 4000

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Huge use of RAM

Unread post by Moonchild » 2021-02-03, 12:31

Aztec wrote:
2021-02-03, 12:28
some time ago something like this would be unthinkable.
Some time ago we also didn't have games taking 50GB of disk space or requiring 8 cores to run smooth.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4971
Joined: 2015-12-09, 15:45
Contact:

Re: Huge use of RAM

Unread post by moonbat » 2021-02-04, 02:17

Moonchild wrote:
2021-02-03, 12:31
Some time ago we also didn't have games taking 50GB of disk space or requiring 8 cores to run smooth.
Off-topic:
Difference being those games also have massive improvements in graphics and physics to go with the increased resource usage, as compared to websites that have bloated beyond belief while stripping away and dumbing down features for 'simple' mobile interfaces.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Huge use of RAM

Unread post by Moonchild » 2021-02-04, 11:00

Off-topic:
moonbat wrote:
2021-02-04, 02:17
Difference being those games also have massive improvements in graphics and physics to go with the increased resource usage, as compared to websites that have bloated beyond belief while stripping away and dumbing down features for 'simple' mobile interfaces.
Excuse me, but web browsers are very much akin to 3D games.
Whether sites are being wasteful (a la making a pixel-graphics game in the Unreal engine or what not -- plenty of such things exist so don't just polarize this as games good vs. web bad) or not is besides the point.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4971
Joined: 2015-12-09, 15:45
Contact:

Re: Huge use of RAM

Unread post by moonbat » 2021-02-04, 12:23

Off-topic:
Moonchild wrote:
2021-02-04, 11:00
Excuse me, but web browsers are very much akin to 3D games.
Never disputed that, was pointing out that the games at least give you visual bang for the buck as a tradeoff, modern bloated websites are often worse and less featured than their older versions from a decade ago. I'd even say the modern browser is forced to be like this thanks to feature creep in HTML/Javascript 'living' standards in a bid to use them to replace every other possible application as opposed to rendering documents with a little interactivity.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Locked