Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU and GPU usage spikes #8779

Closed
jctaillandier opened this issue Mar 20, 2020 · 23 comments
Closed

High CPU and GPU usage spikes #8779

jctaillandier opened this issue Mar 20, 2020 · 23 comments

Comments

@jctaillandier
Copy link

Description

Happened twice, both times I had 3 tabs, open. Two youtube, one GoogleCal. At midpoint watching a video, CPU usage spiked, filled 8Gb of Ram, then started to fill the swap. Dozens of CPU and GPU process were running simultaneously and got this screenshot before shutting down.
Running Ubuntu 18.04
Only extension installed is Full Page Screen Capture, but was not using.

Steps to Reproduce

Not reproducible everytime

  1. Launch Browser
  2. Open a handfull of tabs, 1+ of which is youtube
  3. Run a video and monitor memory usage

Actual result:

brave_memory

Expected result:

Not sure to me but not this ^.

Reproduces how often:

Intermittent

Brave version (brave://version info)

Brave 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit)
Revision fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}
OS Linux
JavaScript V8 8.0.426.26
Flash (Disabled)
User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Command Line /opt/brave.com/brave/brave --enable-dom-distiller --disable-domain-reliability --no-pings --extension-content-verification=enforce_strict --extensions-install-verification=enforce --sync-url=https://no-thanks.invalid --enable-features=PasswordImport,SimplifyHttpsIndicator,WebUIDarkMode --disable-features=AutofillServerCommunication,AllowPopupsDuringPageUnload,LookalikeUrlNavigationSuggestionsUI,NotificationTriggers,AudioServiceOutOfProcess,SmsReceiver,WebXR,VideoPlaybackQuality,WebXrGamepadModule --flag-switches-begin --flag-switches-end --disable-webrtc-apm-in-audio-service --disable-sync
Executable Path /opt/brave.com/brave/brave
Profile Path /home/jc/.config/BraveSoftware/Brave-Browser/Default

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the dev channel?
  • Can you reproduce this issue with the nightly channel?

Miscellaneous Information:

@jctaillandier jctaillandier changed the title High CPU and GPU usage with 4 tabs open High CPU and GPU usage spike with 4 tabs open Mar 20, 2020
@kjozwiak kjozwiak added bug needs-investigation A bug not 100% confirmed/fixed perf labels Mar 20, 2020
@NejcZdovc
Copy link
Contributor

@jctaillandier do you have rewards enabled. Is your test plan on clean profile?

@NejcZdovc
Copy link
Contributor

could you also please go to Hamburger Menu --> More Tools --> Task Manager

Sort by CPU and keep an eye on CPU spikes and which tab/process is causing it.

@rebron rebron added feature/video priority/P2 A bad problem. We might uplift this to the next planned release. labels Mar 20, 2020
@jctaillandier
Copy link
Author

jctaillandier commented Mar 20, 2020

No Rewards enabled.

Is your test plan on clean profile?

I don't understand the question

Will make sure to open the task manager next time it spikes. At normal it looks like this
task

@bsclifton
Copy link
Member

OK folks - we've done some investigation and are fairly sure we have found the root cause and the fix 😄 Build is happening now and we'll look at releasing a hotfix. Stay tuned 😄

@bsclifton bsclifton added this to the 1.5.x - Release Hotfix 2 milestone Mar 21, 2020
@bsclifton
Copy link
Member

@jctaillandier (or others experiencing the issue) if you wanted to try a work-around while we're prepping the hotfix, here's what you can try:

  1. Visit brave://flags/#brave-adblock-cosmetic-filtering
  2. Enable this option
  3. You'll be prompted to restart- go ahead and do that
  4. Problem should be fixed 😄

@kjozwiak
Copy link
Member

For those users that have been experiencing various CPU/performance issues, could you please download the following version and let us know if things have improved. Once we get enough confirmations from the community, we'll push this version to our Release channel ASAP so everyone receives the update.

@kjozwiak
Copy link
Member

STR that QA can use to verify that brave/brave-core#4999 has been fixed:

@kjozwiak kjozwiak changed the title High CPU and GPU usage spike with 4 tabs open High CPU and GPU usage spikes Mar 21, 2020
@kjozwiak
Copy link
Member

Verification PASSED on Mint 19.1 x64 using the following build:

Brave | 1.5.115 Chromium: 80.0.3987.149 (Official Build) (64-bit)
--- | ---
Revision | 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS | Linux

Screenshot from 2020-03-21 19-51-50

Verification PASSED on macOS 10.15.3 x64 using the following build:

Brave | 1.5.115 Chromium: 80.0.3987.149 (Official Build) (64-bit)
-- | --
Revision | 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS | macOS Version 10.15.3 (Build 19D76)

Screen Shot 2020-03-21 at 7 34 08 PM

Verification PASSED on Win 10 x64 using the following build:

Brave | 1.5.115 Chromium: 80.0.3987.149 (Official Build) (64-bit)
--- | ---
Revision | 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS | Windows 10 OS Version 1909 (Build 18363.720)

Annotation 2020-03-21 205812

@pes10k
Copy link
Contributor

pes10k commented Mar 22, 2020

@kjozwiak is that file still needed (i.e. https://www.peteresnyder.com/brave/break.html)? Can you give me a heads up when i can take it down?

@kjozwiak
Copy link
Member

@pes10k you can take it down now 👍 We're about to release the RC right now so we won't be needing it anymore. Thanks for getting that setup. Really appreciate it.

@fhoshino
Copy link

After updating to 1.5.115, though long term CPU hog seems to be resolved, still seeing a higher CPU usage compared to 1.4.x, especially on script heavy pages.

@atommicios
Copy link

S

@jctaillandier
Copy link
Author

Cheers lads!
Appreciate the quick work!

@andrew-pyle
Copy link

End user here. Still having high CPU usage issues with Brave Version 1.5.115

Immediately upon opening Brave, I'm getting a Brave Browser Helper process pegged at 100% CPU.

I've also enabled "Enable cosmetic filtering" flag with no effect.

Brave | 1.5.115 Chromium: 80.0.3987.149 (Official Build) (64-bit)
-- | --
Revision | 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS | macOS Version 10.14.6 (Build 18G3020)

image

@bsclifton
Copy link
Member

@andrew-pyle can you please open the in-browser task manager? Basically Hamburger menu (top right) => More Tools => Task Manager

I suspect the Bat Ledger process is what is taking all the CPU. Having a screenshot would be extremely useful. You can disable the cosmetic filter - the work-around was just something which would help for 1.5.113 😄

@NejcZdovc
Copy link
Contributor

@andrew-pyle do you maybe know when this started happening?

@andrew-pyle
Copy link

Disabled cosmetic filter—Thanks!

@bsclifton You are correct—Utility: Bat Ledger Service taking all the CPU.
image

Is there something to be done to correct this on my end?

@NejcZdovc I've been noticing high fan usage for about 2 weeks.

@BraveLover4545
Copy link

I have also having this problem. As soon as I open Brave the Bat Ledger Service spikes to 100%. Has been happening for weeks. I cannot use brave like this, I don't have that much CPU to spare.

Notice, an empty browser on Google.com using significant CPU. Note: I have 4 cores, so 24% CPU usage implies it's maxing out a single thread.

image

I love Brave but I cannot use it right now.

@NejcZdovc
Copy link
Contributor

@andrew-pyle would you be maybe able to jump on a quick call to check this one out? If so please send me an email to nejc[@]brave.com. Thank you

@jorda0mega
Copy link

image
I am still getting high CPU usage that is not caused by the BAT Ledge. Any thoughts?

@fhoshino
Copy link

fhoshino commented Apr 3, 2020

Same as @jorda0mega, but on Windows, not related to BAT, the browser core is taking up CPU usage, might be due to change in adblocker service.

p.s. The CPU spike especially on tab change/cycling.

@bsclifton
Copy link
Member

bsclifton commented Apr 3, 2020

We do have a crash fix coming - Chromium just released a minor bump (80.0.3987.163). It may not make an impact with performance though (unclear at this time). Thanks for sharing the details @jorda0mega @fhoshino

@pradeepb6
Copy link

I am also facing the CPU usage issue on Version 1.8.90 Chromium: 81.0.4044.129 (Official Build) (64-bit)
image

When I close the browser, laptop does not make any sound.

My system details
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests