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

100% CPU usage #23

Closed
wsw70 opened this issue May 6, 2019 · 5 comments
Closed

100% CPU usage #23

wsw70 opened this issue May 6, 2019 · 5 comments

Comments

@wsw70
Copy link

wsw70 commented May 6, 2019

When starting a fresh container, I get a 100% CPU usage by kodi-x11 --standalone (as measured by htop.

Kodi is unusable: most of the time it is frozen, then unfreezes for a short amount of time (to freeze back again).

The previous standalone version did not have any problems (Ubuntu 18.04.2, Intel Skylake, 8 GB memory). This is just to highlight the fact that it is likely a misconfiguration on my side (and not a hardware performance limitation)

@mviereck
Copy link

mviereck commented May 6, 2019

I wonder if this might be related to #17 about missing video decoding drivers.
You could try to add libxv1 and va-drivers-all to the image. This probably fixes #22, too.

@ehough
Copy link
Owner

ehough commented May 6, 2019

I agree with @mviereck in that this sounds like a driver issue. Could you try installing libxv1 and va-drivers-all into the image to see if that makes any difference? Here's a Dockerfile that you could build and run locally, instead of erichough/kodi:latest.

@wsw70
Copy link
Author

wsw70 commented May 6, 2019

I built the image but the issue is the same (Kodi freezing). The startup is cleaner, though:

---> starting Kodi with command: kodi-standalone
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0

@wsw70
Copy link
Author

wsw70 commented May 8, 2019

As mentioned in #17, adding --priviledged fixed the issue.

@wsw70 wsw70 closed this as completed May 8, 2019
@wsw70
Copy link
Author

wsw70 commented May 8, 2019

Also, with --priviledged the erichough/kodi:latest image works great.

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

No branches or pull requests

3 participants