New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601466 link

Starred by 4 users

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocked on:
issue 626202



Sign in to add a comment

Forbes, Politico very Janky and consuming a lot of CPU/Power on Mac Pro

Project Member Reported by komoroske@chromium.org, Apr 7 2016

Issue description

Version: 51.0.2702.0 (Official Build) canary (64-bit) (also seen on 48 stable)
OS: OS X 10.11.3

What steps will reproduce the problem?
(1) Load http://www.politico.com/magazine/story/2016/04/donald-trump-2016-silvio-berlusconi-italy-213797 on a Mac Pro (trashcan design)
(2) Scroll the page

What is the expected output?
Smooth scrolling

What do you see instead?
A fair number of bad janks.


Please use labels and text to provide additional information.
Trace attached. (Taken from Canary).

My very naive skim of the trace leads me to believe it's something about synchronous communication with a flash ad? Safari doesn't have the same problem on my machine (I don't have Flash installed, so Safari doesn't load the ad).
 
trace_politicoflash.json.gz
5.3 MB Download
Components: Internals>Plugins>Flash
Labels: -Pri-3 Pri-2
Yeah, confirmed. Main thread looks blocked on the PPAPI process.

How reproducible was it? As in, are we going to be able to see the ad that caused the issue again?
I just reloaded the page again and still see the same issue. So it seems to be pretty reproducible (at least right now).

Also, if you leave the tab open for awhile and then come back, the page gets REALLY janky.

Comment 4 by ojan@chromium.org, May 10 2016

This problem still happens. If you remove the <object> element the jank immediately disappears.
Summary: Forbes, Politico very Janky and consuming a lot of CPU/Power on Mac Pro (was: Politico scrolling very slow on Mac Pro)
Similar issue it seems on Forbes: CPU spike, fan spinning (even after the Flash video disappears).
trace_forbes-fan-spinning.json.gz
13.9 MB Download
trace_forbes-fanspinning-aftervideoad.json.gz
13.1 MB Download
Cc: nduca@chromium.org aelias@chromium.org
Cc: lafo...@chromium.org jsc...@chromium.org
How can we tell who's causing the issue here: Chrome, Flash, Forbes, the ad network?
Cc: bbudge@chromium.org ihf@chromium.org
Adding some additional folks to the issue, who maybe able to advise on how best to diagnose.
It just occurred to me: I have "Plugins" set to the default "Detect and run important plugin content". Shouldn't that have meant that these ads causing the performance problem shouldn't have run? Or are they small one that are exempted?
Cc: groby@chromium.org
Looking at the Flash content that's getting loaded (using Flash Control), I have a feeling PPS Tiny might be the correct intervention for this site... this is a pretty good case study in pixel tracking.

--enable-features=BlockSmallPluginContent

Even with that feature enabled, I'm still seeing some content peeking in.

Politico.png
477 KB View Download
Labels: Hotlist-Ads Needs-Evangelism
Status: Assigned (was: Untriaged)
I've started a deep dive [1], here is what I've found so far:
 1. Hammered CPU: several third parties doing viewability without IntersectionObserver [2]
 2. Hammered CPU: some over-triggering third party code
 3. Scroll jankiness: at least one third party is using a wheel event handler, the generic recommendation is to consider Passive Event Listeners. However, the third party use case being viewability, the better recommendation is IntersectionObserver. 

IntersectionObserver is the right answer to 1. and 3. I'm getting in touch with the relevant stakeholders.

For 2:
 a. the upcoming intervention to throttle timers of offscreen frames might help provided that the culprits are in sub frames ( issue 616519 ).
 b. regardless of the intervention noted above, this doesn't feel like a sane behavior so I've reached out to the owners of that code.




[1]: https://docs.google.com/presentation/d/1172haFf9Aw8Abpyxgx9cpTs8cXQFBvP_GCjXRDruv4Y/edit#slide=id.p

[2]: http://blog.chromium.org/2016/05/new-apis-to-help-developers-improve.html
Blockedon: 626202
Owner: kenjibaheux@chromium.org
Forbes and Politico are also impacted by  issue 626202  (triggered by an increasingly janky scroll on AndroidAuthority), in particular the findings in comment #14 to #17.
Status: Archived (was: Assigned)
Probably not much additional insights, closing.

Sign in to add a comment