Closed Bug 1570023 Opened 5 years ago Closed 6 months ago

High cpu consumption on you tube playback with nvidia driver and webrender enabled on linux

Categories

(Core :: Graphics: WebRender, defect, P3)

70 Branch
Desktop
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mar.kolya, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: nightly-community, power)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Used latest firefox-tunk on Ubuntu 19.04
I have Quadro M2000M with latest nvidia binary driver (430.26) with 4 core E3-1505M CPU.
Enabled webrender.
Opened youtube video (HD).

Actual results:

During playback 'top' shows 'GPU process' constantly consuming 150% and video gets 'choppy' at times.
This also results in fast battery drain.

Expected results:

CPU consumption during video playback with webrender enabled should not be drastically higher than with webrender disabled.

Blocks: wr-nv-linux
Component: Untriaged → Graphics: WebRender
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → Desktop
Priority: -- → P3

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

$ uname -a
Linux servalWS 5.12.9-arch1-1 #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000 x86_64 GNU/Linux

Graphics Processor: NVIDIA GeForce RTX 2060
NVIDIA Driver Version: 465.31

Webrender is now enabled by default and whenever I scroll or play a youtube video I get usage as high as 1000%

(In reply to mike.liu.dev from comment #1)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

$ uname -a
Linux servalWS 5.12.9-arch1-1 #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000 x86_64 GNU/Linux

Graphics Processor: NVIDIA GeForce RTX 2060
NVIDIA Driver Version: 465.31

Webrender is now enabled by default and whenever I scroll or play a youtube video I get usage as high as 1000%

This actually turned out to be an issue with my display manager (lightdm) starting xorg before NVIDIA drivers load. This thread: https://bbs.archlinux.org/viewtopic.php?id=260293 contains the solution that I used which is to configure lightdm to wait for graphics drivers to load before the service is started. Changing this configuration option to "true" did the trick for me:

[LightDM]
logind-check-graphical=true
Severity: normal → S3

Closing per Comment 2

Status: UNCONFIRMED → RESOLVED
Closed: 6 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.