background vdr thread eating cpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 3 Jan 2007, at 09:58, Klaus Schmidinger wrote:
> 
>>
>> It would help if you could find out which particular thread is using
>> that CPU percentage. You can do
>>
>>   ps -T u -C vdr
> 
> Hmm, it looks like the thread 5748 (tuner on device 2 thread started).

Looks more like thread 5767 to me, see ***

> 
> Jan  3 11:37:29 htpc vdr: [5741] loading /video/vdr/remote.conf
> [...]
> Jan  3 11:37:29 htpc vdr: [5742] video directory scanner thread started (pid=5741, tid=5742)
> Jan  3 11:37:29 htpc vdr: [5742] video directory scanner thread ended (pid=5741, tid=5742)
> Jan  3 11:37:29 htpc vdr: [5743] video directory scanner thread started (pid=5741, tid=5743)
> Jan  3 11:37:29 htpc vdr: [5743] video directory scanner thread ended (pid=5741, tid=5743)
> Jan  3 11:37:29 htpc vdr: [5741] probing /dev/dvb/adapter0/frontend0
> Jan  3 11:37:29 htpc vdr: [5741] probing /dev/dvb/adapter1/frontend0
> Jan  3 11:37:29 htpc vdr: [5745] tuner on device 1 thread started (pid=5741, tid=5745)
> Jan  3 11:37:29 htpc vdr: [5746] section handler thread started (pid=5741, tid=5746)
> Jan  3 11:37:29 htpc vdr: [5741] found 2 video devices
> Jan  3 11:37:29 htpc vdr: [5741] initializing plugin: softdevice (0.3.0): A software emulated MPEG2 device
> Jan  3 11:37:29 htpc vdr: [5748] tuner on device 2 thread started (pid=5741, tid=5748)
> Jan  3 11:37:29 htpc vdr: [5749] section handler thread started (pid=5741, tid=5749)
> Jan  3 11:37:29 htpc vdr: [5741] [softdevice] videoOut OK !
> [...]
> Jan  3 11:40:59 htpc vdr: [5748] frontend 1 timed out while tuning to channel 9, tp 578
> Jan  3 11:41:54 htpc kernel: cx88[1]/2: cx8802_timeout
> 
> [root@htpc ~]# ps -T u -C vdr
> USER       PID  SPID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> root      5741  5741  0.2  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5745  0.3  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5746  0.5  5.4 220216 28016 ?        RNLl 11:37   0:01 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5748  1.1  5.4 220216 28016 ?        SLl  11:37   0:02 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5749  0.4  5.4 220216 28016 ?        SNLl 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5752  0.0  5.4 220216 28016 ?        S<Ll 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5753  0.0  5.4 220216 28016 ?        S<Ll 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5754  0.0  5.4 220216 28016 ?        S<Ll 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5755  0.0  5.4 220216 28016 ?        S<Ll 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5756  0.0  5.4 220216 28016 ?        S<Ll 11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5757  0.0  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5760  0.0  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5762  0.1  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5763  0.0  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5764  0.1  5.4 220216 28016 ?        SLl  11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5765  0.5  5.4 220216 28016 ?        SLl  11:37   0:01 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5741  5767 71.6  5.4 220216 28016 ?        SLl  11:37   2:29 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo

*** thread 5767 is eating most of the CPU time.
Unfortunately this one isn't listed in your log file excerpt.

Klaus

> root      5741  5768  1.2  5.4 220216 28016 ?        SLl  11:37   0:02 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> root      5759  5759  0.0  1.7 122400  9260 ?        Ss   11:37   0:00 ./vdr -v /video/vdr -m 0 -s killall vdr;/bin/false -Psoftdevice -vo dfb:mgatv -Premo
> [root@htpc ~]#
> 
> Tasks: 104 total,   5 running,  99 sleeping,   0 stopped,   0 zombie
> Cpu(s): 51.7% us, 24.5% sy,  0.3% ni, 22.8% id,  0.0% wa,  0.3% hi,  0.3% si,  0.0% st
> Mem:    515672k total,   181684k used,   333988k free,    40848k buffers
> Swap:  1815304k total,        0k used,  1815304k free,    61916k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 5767 root      15   0  232m  28m 4132 R 49.3  5.7   5:48.45 vdr
> 5748 root      15   0  232m  28m 4132 S 18.2  5.7   0:22.78 vdr
> 5747 root      15   0     0    0    0 S  3.3  0.0   0:04.85 kdvb-fe-1
> 5761 root      10  -5     0    0    0 S  1.7  0.0   0:06.69 cx88[0] dvb



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux