Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Firefox occasionally stalls
Date: Tue, 21 Mar 2017 20:32:35
Message-Id: 20170321212522.5029b991@jupiter.sol.kaishome.de
In Reply to: Re: [gentoo-user] Firefox occasionally stalls by Alan McKinnon
1 Am Tue, 21 Mar 2017 22:11:58 +0200
2 schrieb Alan McKinnon <alan.mckinnon@×××××.com>:
3
4 > On 21/03/2017 22:04, J. Roeleveld wrote:
5 > > On March 21, 2017 8:35:36 PM GMT+01:00, Alan McKinnon
6 > > <alan.mckinnon@×××××.com> wrote:
7 > >> This post is rather vague, sorry about that in advance.
8 > >>
9 > >> I've spent much time on this and gotten absolutely nowhere. So I
10 > >> conclude all my thoughts and assumptions are wrong and not worth
11 > >> even sharing (on account of them being so wrong).
12 > >>
13 > >> I have firefox like this:
14 > >>
15 > >> [I] www-client/firefox
16 > >> Available versions: 45.7.0^d 45.8.0^d (~)51.0.1^d {bindist
17 > >> custom-cflags custom-optimization dbus debug ffmpeg +gmp-autoupdate
18 > >> +gstreamer gtk2 hardened hwaccel jack +jemalloc +jemalloc3 +jit
19 > >> neon pgo
20 > >> pulseaudio rust selinux +skia startup-notification system-cairo
21 > >> system-harfbuzz system-icu system-jpeg system-libevent
22 > >> system-libvpx system-sqlite test wifi L10N="ach af an ar as ast az
23 > >> be bg bn-BD bn-IN br bs ca cak cs cy da de dsb el en-GB en-ZA eo
24 > >> es-AR es-CL es-ES es-MX et eu fa ff fi fr fy ga gd gl gn gu he hi
25 > >> hr hsb hu hy id is it ja ka kk
26 > >> km kn ko lij lt lv mai mk ml mr ms nb nl nn or pa pl pt-BR pt-PT
27 > >> rm ro ru si sk sl son sq sr sv ta te th tr uk uz vi xh zh-CN
28 > >> zh-TW"} Installed versions: 51.0.1^d(21:30:20 21/02/2017)(dbus
29 > >> gmp-autoupdate jemalloc pulseaudio skia startup-notification
30 > >> system-harfbuzz system-icu system-jpeg system-libevent
31 > >> system-libvpx system-sqlite wifi -bindist -custom-cflags
32 > >> -custom-optimization -debug -gtk2 -hardened -hwaccel -jack -neon
33 > >> -pgo -rust -selinux -system-cairo -test L10N="en-GB en-ZA -ach -af
34 > >> -an -ar -as -ast -az -bg -bn-BD -bn-IN
35 > >>
36 > >> -br -bs -ca -cak -cs -cy -da -de -dsb -el -eo -es-AR -es-CL -es-ES
37 > >> -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr
38 > >> -hsb
39 > >>
40 > >> -hu -hy -id -is -it -ja -ka -kk -km -kn -ko -lij -lt -lv -mai -mk
41 > >> -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si
42 > >> -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN
43 > >> -zh-TW") Homepage: http://www.mozilla.com/firefox
44 > >> Description: Firefox Web Browser
45 > >>
46 > >> with these plugins:
47 > >> - adblockplus
48 > >> - flashblock
49 > >> - foxyproxy standard
50 > >> - restart browser
51 > >> - user agent switcher
52 > >> - youtube all html5
53 > >>
54 > >> Occasionally, according to no discernable pattern, all my tabs on
55 > >> all some/most/all Firefox windows stop responding. Clicking and
56 > >> scrolling in
57 > >> the content has no effect. Can't open new tabs, can't close tabs,
58 > >> can't
59 > >>
60 > >> switch to existing tabs. Sometimes it affects only one firefox
61 > >> window, sometimes all firefox windows.
62 > >>
63 > >> Imagine if you will that firefox is coded with one global loop that
64 > >> gets
65 > >> user actions and responds, then that loop gets stuck somewhere. The
66 > >> firefox window will not be affected (controlled by KDE), and
67 > >> neither is
68 > >>
69 > >> the X-server but the tabs can all do nothing till the loop
70 > >> unsticks. It's an effect like that.
71 > >>
72 > >> Sometimes it does work after a delay >30s.
73 > >> The sysadmin in me says 30s? Hah, check DNS resolver timeouts.
74 > >> Checked,
75 > >>
76 > >> found nothing unusual. Proxy looks OK, VPN looks OK, Chrome never
77 > >> has this problem so it's firefox specific.
78 > >>
79 > >> Firefox itself is up, it responds correctly to moving around the
80 > >> menus,
81 > >>
82 > >> just can't do some of the actions like open the Addons page (that
83 > >> is regular content in a tab).
84 > >>
85 > >> The issue ALWAYS goes away if I restart firefox, either with the
86 > >> restart
87 > >> addon or Alt-F4 and start from KDE menu. I have "load previous
88 > >> tabs" set
89 > >> to true so those actions are pretty equivalent.
90 > >>
91 > >> DE is Plasma 5, and the problem isn't from a recent upgrade, I've
92 > >> been battling with this for ages through MANY kde and firefox
93 > >> updates.
94 > >>
95 > >> My question:
96 > >> Where the hell do I start to figure out what's really going on?
97 > >> I used up all my sysadmin troubleshooting knowledge and have had to
98 > >> revert back to n00b status on this one.
99 > >
100 > > I see this with some websites that do some weird stuff.
101 > > CPU for at least one core then also goes to 100÷.
102 > > Make a list of websites open in tabs when it happens to see if
103 > > there are common ones that are always there when you have the
104 > > issue.
105 >
106 > Good idea. For posterity so's I don;t forget:
107 >
108 > - gentoo home page
109 > - one or more readthedocs sites (especially docs.ansible.com)
110 > - 1 or more jira pages (work stuff)
111 > - 1 or more confluence pages (work stuff)
112 > - a local gitlab site
113 > - 1 or more python html apps for, errr, usenets stuffs
114 > - 1 or more python apps running in flask (work stuff)
115
116 I'm using Chrome with often more than 50 tabs open - without
117 performance problems. But I had to switch Chrome to simple HTTP cache
118 (chrome://flags/#enable-simple-cache-backend) to get that. Some tabs
119 take more than 1 GB of memory after a while. But only those tab become
120 sluggish, all others are unaffected. And I do not block any scripts
121 (just the usual performance killers like ads and tracking scripts, done
122 with Ghostery). I cannot believe that Firefox is so much worse at this?
123
124 If Chrome isn't a option for you, maybe try Vivaldi (it's based on
125 Chromium and said to be very fast, tho for me it starts much slower
126 than Chrome).
127
128 --
129 Regards,
130 Kai
131
132 Replies to list-only preferred.

Replies

Subject Author
Re: [gentoo-user] Re: Firefox occasionally stalls Alan McKinnon <alan.mckinnon@×××××.com>