New issue
Advanced search Search tips

Issue 614159 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 2
Type: Compat



Sign in to add a comment

High CPU usage on Reddit "Top scoring links" page

Reported by khym.cha...@gmail.com, May 23 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

Example URL:
https://www.reddit.com/r/SubredditDrama/top/?sort=top&t=all&count=275&after=t3_31g1s5

Steps to reproduce the problem:
1. Open the given link.

What is the expected behavior?
After is finishes loading the page should use a small amount of CPU.

What went wrong?
Page uses a large amount of CPU.

Does it occur on multiple sites: No

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 50.0.2661.102  Channel: stable
OS Version: Fedora 23
Flash Version: Shockwave Flash 21.0 r0

This appears to be specific to the SubbreditDrama subreddit.  Top links pages for other subreddits don't have this problem.
 
Components: UI>TaskManager
Labels: M-52 OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.11.5, Ubuntu 14.04 using latest canary 53.0.2746.0, stable 50.0.2661.102.Observed that high CPU usage on Reddit "Top scoring links" page.

This is non regression issue seen from M-32(32.0.1700.107).Hence, marking it as untriaged.

Note:Working fine on Windows 7.

Could anyone from dev team look into this issue please.
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 1 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
i think it's because of two CSS animations on the page

scroll down until you see "moderators" in the right side panel, then enable paint flashing in the dev tools (i attached a still of it)

the first one (spinning teddy bear) has a text-indent value of -9999px, causing it to repaint a needlessly large area

the second one (animated progress bar) just runs at 60fps all the time
Untitled.png
18.7 KB View Download

Comment 4 by creis@chromium.org, Jul 6 2016

Components: -UI>TaskManager Blink>CSS
Thanks.  Can someone from CSS help triage this?  TaskManager is not the right component for pages that have high CPU usage.
Components: -Blink>CSS Blink>Animation
Labels: Performance Needs-Tracing
Status: Available (was: Untriaged)

Comment 6 by suzyh@chromium.org, Jul 7 2016

Labels: Update-Quarterly
Setting update level to quarterly since this is a non-regression issue.
Components: -Blink>Animation Blink>Paint
Labels: -Needs-Tracing -Update-Quarterly
These animations (pointed out by #3) seem to be causing main thread repaints of the entire page.

Inspecting the DevTools timeline shows 0.3ms in rendering and 1.7ms in painting every frame. It's painting 945x4047 which (based on the screenshot) is the entire page. The tile workers aren't being used at all.

Hopefully one day we'll get background-position animations composited like transform and opacity...
trace.png
212 KB View Download
Cc: alancutter@chromium.org
Status: (was: Available)
I'm not seeing anything unexpected on Linux 52.0.2743.49. Paint flashing in devtools just show repaint of the image areas, not an entire layer. Low CPU usage. Am I missing something?

Status: Untriaged
Cc: schenney@chromium.org
Running Linux Chrome 52 I see 25-28% CPU usage in Chrome's task manager (animations not visible on page).

I can't explain the disparity between the repaint flashes and paint profiler but I would trust that the tracing data is accurate. See above screenshot.
Owner: schenney@chromium.org
Status: Assigned (was: Untriaged)
I'll own it for a while. I'll dump the SkPictures and see what's happening.
Project Member

Comment 12 by sheriffbot@chromium.org, Jul 9 2016

Labels: -M-53 MovedFrom-53
This issue has been moved once and is lower than Pri-1. Removing the milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Performance Performance-Power
Ping for schenney - is this still a valid bug?
Status: WontFix (was: Assigned)
I think we WontFix this. It was a specific reddit link and may well just be expensive invalidation since we are not actually repainting. We've done a bunch of work speeding up invalidation and there's not much specific to be done for this.

Sign in to add a comment