Brave-browser: High CPU and GPU usage spikes

Created on 20 Mar 2020  路  23Comments  路  Source: brave/brave-browser

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:

QA Pass-Linux QA Pass-Win64 QA Pass-macOS QTest-Plan-Specified QYes bug featurvideo needs-investigation perf prioritP2 release-noteinclude

Most helpful comment

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.

All 23 comments

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

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.

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

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 馃槃

@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 馃槃

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.

STR that QA can use to verify that https://github.com/brave/brave-core/pull/4999 has been fixed:

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

@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?

@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.

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.

S

Cheers lads!
Appreciate the quick work!

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

@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 馃槃

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

Disabled cosmetic filter鈥擳hanks!

@bsclifton You are correct鈥擴tility: 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.

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.

@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

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

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings