Project

General

Profile

Large Switching times on RPi3 libreelec

Added by manuel neuer about 6 years ago

When I switch on my Raspberry with DVBSky S960 (with Astra and Hotbird) to any program the time is between 5 and 30 seconds.
If I call the tvheadend from an other Device (i.e. Windows-PC), the time is with 3 secs constant and much shorter than with the htps-client on the RPi.
tvheadend log then sometimes says: "No input source available for subscription 127.0.0.1" for 5 up to 30 seconds.

Can anyone geive me help on what I precisely could try to solve this problem?


Replies (9)

RE: Large Switching times on RPi3 libreelec - Added by saen acro about 6 years ago

HTOP

nice command line program to see load
other nice command is
watch -d cat /proc/interrupts

RE: Large Switching times on RPi3 libreelec - Added by manuel neuer about 6 years ago

I am no Linux/libreelec specialist:
-sh: HTOP: not found
watch -d cat /proc/interrupts
Every 2s: cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
16: 0 0 0 0 bcm2836-timer 0 Edge arch_timer
17: 33877 14192 39009 36135 bcm2836-timer 1 Edge arch_timer
23: 37 0 0 0 ARMCTRL-level 1 Edge 3f00b880.mailbox
24: 29216 0 0 0 ARMCTRL-level 2 Edge VCHIQ doorbell
46: 0 0 0 0 ARMCTRL-level 48 Edge bcm2708_fb dma
48: 0 0 0 0 ARMCTRL-level 50 Edge DMA IRQ
50: 0 0 0 0 ARMCTRL-level 52 Edge DMA IRQ
51: 7880 0 0 0 ARMCTRL-level 53 Edge DMA IRQ
54: 912 0 0 0 ARMCTRL-level 56 Edge DMA IRQ
59: 0 0 0 0 ARMCTRL-level 61 Edge bcm2835-auxirq
62: 415429 0 0 0 ARMCTRL-level 64 Edge dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
79: 0 0 0 0 ARMCTRL-level 81 Edge 3f200000.gpio:bank0
80: 0 0 0 0 ARMCTRL-level 82 Edge 3f200000.gpio:bank1
86: 384 0 0 0 ARMCTRL-level 88 Edge mmc0
87: 4814 0 0 0 ARMCTRL-level 89 Edge uart-pl011
92: 17946 0 0 0 ARMCTRL-level 94 Edge mmc1
FIQ: usb_fiq
IPI0: 0 0 0 0 CPU wakeup interrupts
IPI1: 0 0 0 0 Timer broadcast interrupts
IPI2: 13511 17028 48308 74164 Rescheduling interrupts
IPI3: 7 17 7 7 Function call interrupts
IPI4: 0 0 0 0 CPU stop interrupts
IPI5: 383 124 741 973 IRQ work interrupts
IPI6: 0 0 0 0 completion interrupts
Err: 0

I just thought the problem is known and there are special solutions to solve it.

RE: Large Switching times on RPi3 libreelec - Added by saen acro about 6 years ago

manuel neuer wrote:

I am no Linux/libreelec specialist:
-sh: HTOP: not found

watch -d cat /proc/interrupts
 Every 2s: cat /proc/interrupts                                                                                                           
            CPU0       CPU1       CPU2       CPU3
  16:          0          0          0          0  bcm2836-timer   0 Edge      arch_timer
  17:      33877      14192      39009      36135  bcm2836-timer   1 Edge      arch_timer
  23:         37          0          0          0  ARMCTRL-level   1 Edge      3f00b880.mailbox
  24:      29216          0          0          0  ARMCTRL-level   2 Edge      VCHIQ doorbell
  46:          0          0          0          0  ARMCTRL-level  48 Edge      bcm2708_fb dma
  48:          0          0          0          0  ARMCTRL-level  50 Edge      DMA IRQ
  50:          0          0          0          0  ARMCTRL-level  52 Edge      DMA IRQ
  51:       7880          0          0          0  ARMCTRL-level  53 Edge      DMA IRQ
  54:        912          0          0          0  ARMCTRL-level  56 Edge      DMA IRQ
  59:          0          0          0          0  ARMCTRL-level  61 Edge      bcm2835-auxirq
  62:     415429          0          0          0  ARMCTRL-level  64 Edge      dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
  79:          0          0          0          0  ARMCTRL-level  81 Edge      3f200000.gpio:bank0
  80:          0          0          0          0  ARMCTRL-level  82 Edge      3f200000.gpio:bank1
  86:        384          0          0          0  ARMCTRL-level  88 Edge      mmc0
  87:       4814          0          0          0  ARMCTRL-level  89 Edge      uart-pl011
  92:      17946          0          0          0  ARMCTRL-level  94 Edge      mmc1
 FIQ:              usb_fiq
 IPI0:          0          0          0          0  CPU wakeup interrupts
 IPI1:          0          0          0          0  Timer broadcast interrupts
 IPI2:      13511      17028      48308      74164  Rescheduling interrupts
 IPI3:          7         17          7          7  Function call interrupts
 IPI4:          0          0          0          0  CPU stop interrupts
 IPI5:        383        124        741        973  IRQ work interrupts
 IPI6:          0          0          0          0  completion interrupts
 Err:          0

I just thought the problem is known and there are special solutions to solve it.

bcm2836-timer take lot of Interrupts
htop need to be installed also if powertop can be used

next time take Jaguarboard

RE: Large Switching times on RPi3 libreelec - Added by manuel neuer about 6 years ago

I am using libreelec, not ubuntu so I get

apt-get install htop
There is no working 'apt-get'.

And what can I do against the interrupt taking bcm2836-timer ?

I am using a new RPi3 and only did install Libreelec, tvheadend and htps (for several times; same result).
Why am I the only person with that problem and waht to do?

RE: Large Switching times on RPi3 libreelec - Added by Hiro Protagonist about 6 years ago

Why do so many people install libreelec?

Why not use OSMC? it will let you install whatever you want.

RE: Large Switching times on RPi3 libreelec - Added by Em Smith about 6 years ago

To be fair, the Kodi wiki on how to get kodi to even start was probably about five to ten pages long last time I looked; filled with information about different display managers and editing system files. That's assuming you even understand "sudo" and arcane editors.

By contrast, LE is "run this program to put the file on a usb key, then boot and select your network. Done."

I imagine many people will never want to install anything else on their box and will never use a prompt, so LibreElec/CoreElec/etc are good for them. LE allows advanced users to gain root access and install lots of software too (via docker); but for viewing tv it has a nice simple interface and a backup button. I imagine it boots slightly faster than Debian too since it only has the few services it needs. I believe LE ships the dvb drivers pre-installed so users don't have to mess around with downloading firmware files, etc.

I suspect for many people the box is no different than a microwave: you plug it in, only ever press the one +30s button and it works. Sure you could spend hours figuring out all the different buttons and what you could do. Similarly, I imagine many people never see 99% of the functionality of Kodi/tvh and, more importantly, have no desire to investigate.

As for the switching problem: is the Windows box running Kodi too?

If you use a web browser to browse your tvh box (http:// some_ip_here:9981) then there is a status screen that might give you information about what is happening when you switch. Is something else tuned and playing a station when you try and tune? Is it different when you use the Windows box?

RE: Large Switching times on RPi3 libreelec - Added by Hiro Protagonist about 6 years ago

Em Smith wrote:

By contrast, LE is "run this program to put the file on a usb key, then boot and select your network. Done."

Which is approximately the the level of effort required to install OSMC.

RE: Large Switching times on RPi3 libreelec - Added by Em Smith about 6 years ago

I have nothing against OSMC, or LE, or any of these tvh distros and I might pick OSMC myself if I had a PI since I'd almost certainly install other packages/compile tvh myself. But, what packages would a normal person install?

However, think of it as a sales pitch to someone not familiar with Unix:

LE: "Optimized for running Kodi. Everything unnecessary stripped out for fast start time and security. You can try it on your laptop before you spend money buying a PI/Android box."

OSMC: "You can install 30,000 packages...if you buy a PI and a case and a remote and then ssh in to the box and then apt search and run sudo to apt install."

Deb: "You can install packages and get Kodi/tvh working, as long as you read this huge wiki page on display managers and use sudo to edit these system config files and then determine the usb identifier of your adapters and d/l appropriate firmware."

OK, a bit unfair, but perhaps that's why people install LE instead of OSMC, and install either instead of a clean Debian.

As for install process, I think the LE download page makes it more clear than OSMC on what to do and how to upgrade, with links to videos, support, etc.

RE: Large Switching times on RPi3 libreelec - Added by manuel neuer about 6 years ago

OK, thanks for the advice - I did try OSMC with good switching times.

    (1-9/9)