[vdr] tuning thread at 99,9% CPU (vdr-1.3.44 + .46)

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sat Apr 22 14:00:56 CEST 2006


Stefan Lucke wrote:
> hi,
> 
> on one of my systems tuning thread consumes all cpu when
> playing a recording (paused). On this system I cannot get
> EPG. 
> bodega3b video # ll vdr-conf/
> total 36
> -rwxrwxrwx  1 root root 1414 Apr 14 18:17 ca.conf
> -rwxrwxrwx  1 root root 5708 Apr 21 19:37 channels.conf
> -rw-r--r--  1 root root    0 Apr 21 19:39 epg.data
> -rwxrwxrwx  1 root root  196 Apr 14 18:19 keymacros.conf
> -rwxrwxrwx  1 root root 4776 Apr 14 18:20 remote.conf
> -rw-r--r--  1 root root 2404 Apr 21 21:59 setup.conf
> -rwxrwxrwx  1 root root 1930 Apr 14 18:23 sources.conf
> -rwxrwxrwx  1 root root  483 Apr 14 18:24 svdrphosts.conf
> drwxrwxrwx  2 root root  128 Apr 17 17:57 themes
> -rwxrwxrwx  1 root root    0 Apr 21 18:36 timers.conf
> bodega3b video #
> 
> In syslog I see the following messages (VideoOut messages between 
> frontend messages removed.):
> 
> Apr 22 08:27:50 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> Apr 22 08:27:55 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> Apr 22 08:27:59 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> Apr 22 08:28:03 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> Apr 22 08:28:07 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> Apr 22 08:28:07 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 1, tp 522
> Apr 22 08:28:28 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 2, tp 570
> Apr 22 08:28:49 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 7, tp 658
> Apr 22 08:29:10 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 20, tp 754
> Apr 22 08:29:31 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 28, tp 778
> Apr 22 08:29:52 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 5, tp 177
> Apr 22 08:30:13 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 8, tp 191
> Apr 22 08:30:22 bodega3b vdr: [9347] ERROR: frontend 0: Value too large for defined data type
> Apr 22 08:30:34 bodega3b vdr: [9347] frontend 0 timed out while tuning to channel 11, tp 506
> Apr 22 08:30:36 bodega3b vdr: [9349] [VideoOut]: 720x576 [0,0 720x576] -> 720x576 [90,0 540x576]
> 
> top - 08:33:29 up 24 min,  3 users,  load average: 1.01, 1.00, 0.77
> Tasks:  66 total,   3 running,  63 sleeping,   0 stopped,   0 zombie
> Cpu(s): 39.3% us, 60.7% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,  0.0% si
> Mem:   1035396k total,    71312k used,   964084k free,     6676k buffers
> Swap:  1060280k total,        0k used,  1060280k free,    33384k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  9347 root      25   0 63964  13m 3796 R 96.2  1.3  19:44.01 vdr
>  9355 root      15   0 63964  13m 3796 S  3.3  1.3   0:42.92 vdr
>  9349 root      15   0 63964  13m 3796 S  0.3  1.3   0:03.65 vdr
> 
> Sometimes switching channles with channel-up failes too (black screen).
> Channel-down, channel-up resolves this.

I just disconnected the sat cable from my VDR and got

Apr 22 13:55:55 video vdr: [4875] frontend 0 lost lock on channel 2, tp 212480
Apr 22 13:55:57 video vdr: [4875] frontend 0 timed out while tuning to channel 2, tp 212480

but the tuning thread didn't use any excessive CPU power.
Actually it was at 0.0% before and after the disconnect.

So I'm afraid I don't know what the problem is on your machine.

Klaus



More information about the vdr mailing list