OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 883 forks source link

OpenELEC-RPi2.arm-7.0.1.img hogging cpu on RPi3 #5013

Open ronbal01 opened 7 years ago

ronbal01 commented 7 years ago

Description Some process seems to hog the CPU cluster on the RPi3. When it happens load avg. is close to 6 and none of the processes shown in top seems to be the reason. I don't understand why the sum of cpu consumed by the processes in top does not sum up to the cpu load of the system. If the system is booted and left untouched it survives well until the kodi menus are being used. Video will not play as it will result in a full system hang before it outputs anything. Mp3 plays but it takes very long time (~40s) for it to start. If I track the cpu load while trying to play mp3 files, the load seems to decrease after a while when the music starts. I would guess something with the GUI menus trigger this and sometimes it heals after a while, sometimes not. It can be related to my setup, having all filesystems mounted over NFS and the kernel booted over network but a single mp3 should not generate so much IO. EDIT: I switched back to a SD-card and things worked fine. mdsum shows the system partitions (NFS vs. SD-card) are identical. I then erased the storage folder mounted over NFS and rsynced it from the working one on the SD-card. After rebooting kodi seems to install alot of plugins and I remember it also did that the first time I booted over NFS. There is likely more than one problem here, kodi should not vacuum all available plugins on the first boot and once installed either one plugin (or a combination of plugins) will load the CPU.

How to reproduce Boot 7.0.1 image on a diskless RPi3 over NFS using the netboot feature. Enter any of the menus and the hogging will begin. The log was created by entering System-->Openelec settings then back and then System-->Kodi settings.

Logfile kodi.log.txt

ronbal01 commented 7 years ago

Any ideas how to work around the plugin problem? Booting with an empty storage folder does not help either it will just bring up the setup screen and then do the addon updates in the background and kill the system.

ronbal01 commented 7 years ago

Maybe this is not plugin/add-on related after all. Tried Libreelec 7.0.3 and did not have the slowness however it hangs the system when trying to play music or watch a video. If the network driver is dodgy the CPU problem should be reproducible while streaming video on a normal setup and since no one else has reported this, the only thing I can think of is NFS.