You are not logged in.

#1 2019-04-28 13:09:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

kodi x11 vs gbm vs wayland

I noticed we're now shipping several kodi packages, kodi-bin (x11), kodi-gbm, and kodi-wayland.  I'm wondering about advantages/disadvantages to each of these.  For example, for an Intel graphics scenario, what package would be recommended and why?

EDIT: Please check my wiki edit: https://wiki.archlinux.org/index.php?ti … did=568031 which is not exhaustive based on my research but is a good start.

Last edited by graysky (2019-04-28 16:44:50)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2019-04-30 11:56:45

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 591

Re: kodi x11 vs gbm vs wayland

The inadequacies of GBM are listed in the GBM roadmap, todo list and issue list #14876.

Online

#3 2019-04-30 18:40:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: kodi x11 vs gbm vs wayland

nl6720 wrote:

The inadequacies of GBM are listed in the GBM roadmap, todo list and issue list #14876.

Nice, thanks for sharing.  I noticed higher CPU usage while idle on the kodi GUI comparing x11 to gbm... it was only a single experiment, playback of the same file watching CPU usage via top and load average as reported by uptime after playing for 20 min.  Perhaps a bug with dirty frames or the like?

Under x11:

load average: 1.07, 1.11, 0.84

Idle CPU 3-4% and playback CPU 12-14%

Under gbm:

load average: 1.19, 1.10, 1.01

Idle CPU 11-12% and playback CPU 10-12%

Last edited by graysky (2019-04-30 18:41:43)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2019-05-02 00:19:52

jooch
Member
Registered: 2010-03-09
Posts: 48

Re: kodi x11 vs gbm vs wayland

Funny, I was looking into the same thing. What video driver are you using?
Reading about the fact that gbm runs directly on the video driver, i thought it would be a good choice for a stand alone media player, but looking at your idle stats makes me doubt again.

Support for hardware decoding is said to be limited, but LibreElec will soon be GBM only:
https://libreelec.tv/2018/09/development-update/

I guess Nvidia users are out hmm

Offline

#5 2019-05-02 00:42:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: kodi x11 vs gbm vs wayland

Intel onboard.  More data, just loading kodi (not playing anything) so idle.

After 1 h 20 min, GBM:

% ps -p $(pidof kodi-gbm) -o %cpu,%mem,cmd
%CPU %MEM CMD
 8.1  1.5 /usr/lib/kodi/kodi-gbm --standalone

% uptime
 16:42:04 up  2:12,  1 user,  load average: 0.16, 0.09, 0.07

And then switching to x11 and repeating:

 ps -p $(pidof kodi-x11) -o %cpu,%mem,cmd
%CPU %MEM CMD
 3.4  1.4 /usr/lib/kodi/kodi-x11 --standalone

% uptime
 18:51:13 up 1:20,  1 user,  load average: 0.12, 0.08, 0.02

Last edited by graysky (2019-05-02 00:46:29)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2019-05-02 13:01:05

jooch
Member
Registered: 2010-03-09
Posts: 48

Re: kodi x11 vs gbm vs wayland

Sounds like there is something that keeps triggering the CPU, this happened before on Intel platforms:
https://kodi.wiki/view/Chromebox

Have you tried different kernels?

I'll have a go on my AMD E350 tonight, see what happens.

Offline

#7 2019-05-02 19:31:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: kodi x11 vs gbm vs wayland

Haven't played with it much beyond what I shared here.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2019-05-03 09:32:41

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: kodi x11 vs gbm vs wayland

Just FTR, higher CPU usage confirmed on RX550 too.

Offline

Board footer

Powered by FluxBB