Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU Verbrauch youtube im browser
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2603
Location: Heidelberg - Germany

PostPosted: Fri Jun 21, 2024 12:17 pm    Post subject: CPU Verbrauch youtube im browser Reply with quote

Moin,

ich habe festgestellt, dass ein im Brave-bin Browser abespieltes Youtube Video auf meinem Notebook mit AMD Vega Grafik bei 1080p um 100% CPU, also einen der 16 logischen Kerne, verbraucht. Das ist extrem viel. Zum Vergleich dazu braucht dasselbe Video auf dem Desktop mit ähnlicher CPU (Ryzen 9 statt Ryzen 7) und "nvidia-drivers" nur ungefähr 1/20 der CPU Last, es bewegt sich im einstelligen Prozentbereich.

Kann es sein, dass es irgendeine Form von Hardwarebeschleunigung für HTML5 Content gibt, welche auf dem Radeon Kern nicht verfügbar ist oder dass ich eine bestimmte Konfiguration machen muß, damit das auf dem Notebook besser läuft im Vergleich zur Nvidia Grafik auf dem Desktop?

Grüße
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1686

PostPosted: Mon Jun 24, 2024 11:52 am    Post subject: Reply with quote

ja, grundsätzlich können browser hardwarebeschleunigung haben.
Die Grafikkarte muss aber für den Videocodec entsprechende dekodier funktionen haben.
(mit vainfo aus den media-video/libva-utils kann man sich anzeigen lassen, was die GraKa kann)
Youtube verwendet wohl häufig AV1 als Video codec, und für den hat meine AMD Graka wohl keine Unterstützung, evtl ist das bei dir auch so, und die NVIDIA GPU hat unterstützung.
Back to top
View user's profile Send private message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1961
Location: Schweiz

PostPosted: Mon Jun 24, 2024 4:09 pm    Post subject: Reply with quote

Die Browser können auch eine eigene Whitelist haben welche GPUs sie für die Hardwarebeschleunigung akzeptieren.
https://www.khronos.org/webgl/wiki/BlacklistsAndWhitelists

Diese Liste kann bei Chrome und Firefox übergangen werden, allerdings riskiert man damit das die ganze Sache instabil wird.
_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2603
Location: Heidelberg - Germany

PostPosted: Mon Jun 24, 2024 5:19 pm    Post subject: Reply with quote

Das werde ich mir genauer anschauen. Etwas in die Richtung hatte ich schon vermutet.

Bei mir sieht das vainfo so aus:

Code:

Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.0.9 for AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.54, 6.6.30-gentoo)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc


AV1 sehe ich da auch nicht.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2603
Location: Heidelberg - Germany

PostPosted: Sat Jun 29, 2024 10:07 am    Post subject: Reply with quote

Dann gehe ich mal davon aus, dass es sich nicht um einen Fehler oder eine vermeidbare Fehlkonfiguration handelt und ich damit leben muss. Naja, die meisten Video schau ich mir ohne mit mpv an. Der macht das dann mit 2% CPU Leistung.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5255

PostPosted: Sat Jun 29, 2024 11:31 am    Post subject: Reply with quote

Erdie wrote:
Dann gehe ich mal davon aus, dass es sich nicht um einen Fehler oder eine vermeidbare Fehlkonfiguration handelt und ich damit leben muss. Naja, die meisten Video schau ich mir ohne mit mpv an. Der macht das dann mit 2% CPU Leistung.

Da mpv vermutlich auch vaapi nutzt, werden die meisten videos, welche du darüber schaust, wohl eher nicht im AV1 format sein.
Daher ist dieser Vergleich auch eher unpassend.

Man kann sich anzeigen lassen, mit welchen codec ein gerade abspielendes Youtube hat.
Und zwar gibt es im kontext menu des players (rechts klick) die option "stats for nerds"

In dem erscheinenden Fenster gibt es eine Zeile die mit Codecs beginnt
Hier ein Beispiel:

Quote:
Codecs vp09.00.51.08.01.01.01.01.00 (302) / opus (251)

Hier ist das video in VP9 kodiert und audio mit opus
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2603
Location: Heidelberg - Germany

PostPosted: Sat Jun 29, 2024 7:40 pm    Post subject: Reply with quote

Das habe ich mir auch schon angeschaut. Bei meinem Laptop ist es so, dass so eine Video mit vp9/opus mit mpv 2% CPU braucht und im Browser, egal ob brave oder firefox, ca 10% CPU. Ich hätte jetzt angenommen es wäre
einfach so, dass die Browser da wesentlich ineffizienter sind. Komisch nur, dass der Rechner mit nvidia Grafik diese Diskrepanz nicht zeigt. Die Prozentangabe sind bezogen auf alle Kerne.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5255

PostPosted: Sun Jun 30, 2024 3:50 am    Post subject: Reply with quote

Im falle von firefox könnte es sein, dass dieser für die nvidia gpu hw decoding verwendet aber für die AMD gpu nicht (aus gründen).
Was sagt
Quote:
about:support
für folgende elemente?:

HARDWARE_VIDEO_DECODING
VP9_HW_DECODE
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum