Page 4 of 4

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Wed Oct 07, 2020 7:10 pm
by therube
If you disable NoScript, does the issue subside?

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Thu Oct 08, 2020 6:42 am
by Guest
therube wrote:
Wed Oct 07, 2020 7:10 pm
If you disable NoScript, does the issue subside?
It does. With NoScript enabled, 'about:performance' stalls or is slow to update, tab clicking is delayed for seconds, and youtube playback and window rendering stutter or are very delayed. Disabled, all interactions and rendering are very rapid. (Using the link and instructions I provided 3-4 replies back.) It isn't a matter of minutes as had happened before but it is now in the 10-20 second range which is higher than experienced in recent releases of FF/NS.

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Sat Oct 17, 2020 4:39 pm
by Guest
I can confirm the issue is deteriorating. It isn't as bad as originally, but something like 1/3 to 1/2 as long freeze. While v80 reduced the impact into useable levels it has since gone to bad enough freezing that Youtube is basically unuseable with 8000 tabs in the session. Also the time the session has been on affects the slowdown/freeze. Even in v80 it would start as slowing down for 1-2 seconds or so but after a week or two of session uptime it would be freezing for 1-2 seconds and causing slowing down for 10 seconds or so. With v81 it starts at around 20 second freezing and still goes worse as time goes on.

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Sun Oct 18, 2020 11:17 am
by nacho
Also confirming the issue back. Was gone for a solid month. Disabling no script completely fixes the freezing/lock-ups.

Noscript 11.1.2rc1
Firefox 81.0.2 (64-bit)

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Tue Oct 20, 2020 6:15 pm
by Guest
Now with Firefox 82.0 (64-bit) and NoScript 11.1.3 it is even worse than before. 8400 tabs and just resumed session causes *90* seconds of freeze loading any Youtube page. Tons of random pages have embedded YT video in them and loading any such page causes the issue as well. With Ryzen 9 3900X that long freeze is really bad. Unless the issue gets fixed sometime soon, I really don't have any other options to just not use NoScript.

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Tue Oct 20, 2020 8:16 pm
by therube
Are tabs being loaded "on demand"?
IOW, you are not loading them all on browser start up, correct?

About how many browser windows do you have?

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Tue Oct 20, 2020 9:19 pm
by Guest
therube wrote:
Tue Oct 20, 2020 8:16 pm
Are tabs being loaded "on demand"?
IOW, you are not loading them all on browser start up, correct?

About how many browser windows do you have?
On demand yes. So by just restored session it means that less than 10 tabs are loaded which is also shown in about:performance. 5 windows one of which has over 7000 tabs while the rest are smaller. Previously the window with 7k tabs had notably longer freeze than windows with less tabs, but with FF 82 there doesn't seem to be notable difference anymore.

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Tue Oct 20, 2020 11:34 pm
by M-R
I have 7 windows with 11.000 tabs that I keep from session to session (I am slowly reducing them, they were 15.000 last year, but I didn't have the problems I have now...), and a window in incognito mode that I use now for the things that made me read 11.000 tabs (a lot of them are things that I kept "because I will read them tomorrow", and then forgot, using the incognito mode window removes them if I don't read them before closing firefox)

I don't know what you mean with "on demand", but when I start up firefox the 7 windows come up rather quickly these days (years ago it took a really long time), when I change tab in one of these windows afterward sometimes (if I have visited that tab in the previous few days or even less) it's "already there" (but it's not "current", meaning that it's the copy in cache), if not Firefox has to reload it again. if there is a you tube video somewhere in the page at this point Firefox freeze, simply by going on that tab

I have noticed the worsening of the problem, so I still have not upgraded to Firefox 82, I am waiting to hear from other people if it does make firefox (or noscript) unusable again...

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Wed Oct 21, 2020 3:21 pm
by therube
and a window in incognito mode ... using the incognito mode window removes them if I don't read them before closing firefox)
But that is expected, isn't it.
Private Windows are not expected to be restored (from Session Restore) on a FF restart (or even if closed during the same session).
on demand
Only restore tabs when I need them (or however it reads in FF).
IOW, you are not restoring 11,000 tabs when starting FF.
Only 1 tab, per window (10 windows noted above), so only 10 tabs actually load (fully).
The others will only load (fully) "on demand" - if you actually click the tab in question.


Also worth knowing, would be (Firefox, & total "firefox", not just a particular process of it's) CPU & memory usage during these times.


And I'll also note that over time, different browser versions have worked better/worse with... huge numbers of tabs... And as you can no longer expect consistence between any FF release, no telling what may or may not happen, work better/worse... And, if you were to bring up 11,000 in bugzilla, they'd simply laugh that off & say it's not realistic. ["sorry, but that's just absurd", is a direct quote I've gotten.] (I'm a tab user, but don't believe I've hit those kinds of numbers.)

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Wed Oct 21, 2020 7:11 pm
by Guest
therube wrote:
Wed Oct 21, 2020 3:21 pm
and a window in incognito mode ... using the incognito mode window removes them if I don't read them before closing firefox)
But that is expected, isn't it.
Private Windows are not expected to be restored (from Session Restore) on a FF restart (or even if closed during the same session).
Yes, it's the reason I use it, to avoid adding to the number of tabs carried over from session to session..
on demand
Only restore tabs when I need them (or however it reads in FF).
IOW, you are not restoring 11,000 tabs when starting FF.
Only 1 tab, per window (10 windows noted above), so only 10 tabs actually load (fully).
The others will only load (fully) "on demand" - if you actually click the tab in question.
Yes, and this is the reason I STILL have 11.000 tabs: to check (or read) one and the close it, I have to load it, adding to my PC problems with Firefox and noscript. And a lot of these tabs have movie clips or other youtube content inside...
Also worth knowing, would be (Firefox, & total "firefox", not just a particular process of it's) CPU & memory usage during these times.
I have 10 firefox processes going on at any given time (1 "Main Thread", 8 "Web Content" and 1 "webextensions"). When I reboot the PC and stant firefox the CPU and memory use is low (I never did the addition of the total cpu and memory use, but for the entire PC and all the ongoing processes usually is less than 20% (3 GB) at the start, and I seldom have only Firefox going). With use the memory occupied by the main thread and webcontant increase, but in a reasonable way (at this moment, after days from the last reboot and heavy use, each webcontent is around 1GB, MainThread is 2GB). Webextension stays low even after days, it's at around 0,1 GB now.

But if I load as tab with a youtube video on it, both MainThread and Webextensions would spike by around 2 GB each, freezing firtefox for almost a minute (it was 10-15 minutes at the time the problem was worse) and at this moment such and increase would hang the PC, too (so I can't risk opening old tabs to close them, until I have finished work and can reboot). If I try to save any web page, it still freeze for 5-10 minutes, with the same memory use increase.
And I'll also note that over time, different browser versions have worked better/worse with... huge numbers of tabs... And as you can no longer expect consistence between any FF release, no telling what may or may not happen, work better/worse... And, if you were to bring up 11,000 in bugzilla, they'd simply laugh that off & say it's not realistic. ["sorry, but that's just absurd", is a direct quote I've gotten.] (I'm a tab user, but don't believe I've hit those kinds of numbers.)
It's very easy to reach that number if:
1) You follow one or more social network where people post a lot of links
2) You usually open a tab for that content "for later" instead of putting it on pocket or among the bookmarks
3) You end up not looking at it until you reboot and the you forgot about ut.

It was a behaviour facilitated by the fact that, for years, Firefox "didn't mind", it gave me no problem at all, Firefox would stay reactive no matter how many tabs I added to it, so I had the sense that all I needed to do was a sweep of useless tags "any day" and remove most of them (but I had to look at each one of them, because among them there are tabs I use regularly)

Then, one day, I don't remember the exact Firefox version, it became a problem, and an additional problem was that at that point looking at older tabs increased the problems too much to do a big sweep, so I was limited to examine and close a few tabs each time, not hundreds. And only at that time I realized how many tabs i had opened (count 20-30 tabs every day for almost 2 years, as I said I have closed lots of them in the last years, but in only a couple of years I had gotten more that 15.000 open tans, many probably repeated in multiple windows

And I started to use incognito mode for these "I want to look at them but If i don't find the time I don't want them to keep returning after every reboot" tabs.

If people on mozilla think that having so many tabs it''s absurd, they don't know how people really used Firefox when that tactic was problems-free, and how they "broke" Firefox for a lot of people when they suddenly made it a problem.

Re: Stall/high cpu usage with youtube, high tab count, win7 firefox

Posted: Fri Oct 23, 2020 2:13 pm
by Nacho
I feel like this thread is getting de-railed. This happens even if you have only 1 tab. The only factor is having Noscripted enabled or not.