[mythtv-users] Can I decompose load on CPUs during VDPAU SPDIF playback?

Dave Richardson mythtv at derdev.com
Sat Dec 18 13:21:41 UTC 2010


 On Fri, 17 Dec 2010 16:12:54 -0800, freedenizen <freedenizen at gmail.com> 
 wrote:
> On Fri, Dec 17, 2010 at 3:49 PM, Dave Richardson <mythtv at derdev.com> 
> wrote:
>> I've just recently received an 0.24Fixes update and my FE 
>> VDPAU/SPDIF
>> playback has degraded from the good performance I had before.
>>
>> My Load Average ('top') is very high, over 1.00 - often near 1.5
>>
>> I don't understand, no errors in the frontend log.
>>
>> Is there a way to figure out whether it's the video or audio tasks 
>> that are
>> creating such load?
>>
>> top - 17:47:17 up 32 min,  3 users,  load average: 1.77, 1.43, 1.01
>> Tasks: 161 total,   1 running, 160 sleeping,   0 stopped,   0 zombie
>> Cpu(s): 29.5%us,  1.4%sy,  0.0%ni, 68.7%id,  0.0%wa,  0.0%hi, 
>>  0.3%si,
>>  0.0%st
>> Mem:   3352372k total,   629360k used,  2723012k free,    24196k 
>> buffers
>> Swap:  1342460k total,        0k used,  1342460k free,   239032k 
>> cached
>>
>>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>>  1332 daver     20   0  473m 215m  38m S  128  6.6  20:08.06 
>> mythfrontend.re
>>  1154 root      20   0 67416  45m  18m S    1  1.4   0:14.30 Xorg
>>  1748 root      20   0  2620 1236  928 R    1  0.0   0:08.05 top
>>  285 root      20   0     0    0    0 S    0  0.0   0:00.67 
>> scsi_eh_1
>>  1291 daver     20   0 34796 9.8m  860 S    0  0.3   0:01.63 x11vnc
>>  1429 root      20   0  3736 1064  896 S    0  0.0   0:00.48 
>> hald-addon-stor
>>    1 root      20   0  2880 1708 1220 S    0  0.1   0:01.18 init
>
> I'd start by verifying that VDPAU is actually working.  My guess is
> that it is not.  Checking the frontend logs would be a good starting
> place
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

 I wondered if the new driver install was bad, so I added in the 
 nvidia-glx-260 package...

 root at mythbasement:/home/daver# dpkg --list | grep -i nvidia
 ii  nvidia-260-kernel-source             260.19.21-0ubuntu4             
                   NVIDIA binary kernel module source
 rc  nvidia-current                       
 260.19.29-0ubuntu1~xup~maverick                   NVIDIA binary Xorg 
 driver, kernel module and VDPAU library
 ii  nvidia-glx-260                       260.19.21-0ubuntu4             
                   NVIDIA binary Xorg driver
 ii  nvidia-settings                      260.19.29-0ubuntu1~xup         
                   Tool of configuring the NVIDIA graphics driver
 root at mythbasement:/home/daver# dpkg --list | grep -i vdpau
 ii  libvdpau1                            0.4-5ubuntu1                   
                   Video Decode and Presentation API for Unix 
 (libraries)
 rc  nvidia-current                       
 260.19.29-0ubuntu1~xup~maverick                   NVIDIA binary Xorg 
 driver, kernel module and VDPAU library


 This LiveTV local HD Affiliate (HD) plays badly
 2010-12-18 07:08:33.348 
 RingBuf(myth://192.168.1.20:6543/107001_20101218070836.mpg) Warning: Not 
 starting read ahead thread, already running
 2010-12-18 07:08:34.576 VDPAU Painter: Clearing VDPAU painter cache.
 2010-12-18 07:08:34.774 MythPainter: 10 images not yet de-allocated.
 2010-12-18 07:08:34.914 VDPAU: Created 2 output surfaces.
 2010-12-18 07:08:34.915 VDPAU: Created VDPAU render device 1920x1080
 2010-12-18 07:08:35.001 AFD: Opened codec 0x9865330, id(MPEG2VIDEO) 
 type(Video)
 2010-12-18 07:08:35.001 AFD: codec AC3 has 6 channels
 2010-12-18 07:08:35.003 AFD: Opened codec 0x98555a0, id(AC3) 
 type(Audio)
 2010-12-18 07:08:35.713 VDPAU: Added 2 output surfaces (total 4, max 4)
 2010-12-18 07:08:35.877 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.879 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.884 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.887 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.892 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.895 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.900 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL
 2010-12-18 07:08:35.902 Player(4): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAaL

 This local NBC afilliate plays OK
 2010-12-18 07:11:50.019 TV: Attempting to change from None to 
 WatchingLiveTV
 2010-12-18 07:11:50.019 MythCoreContext: Connecting to backend server: 
 192.168.1.20:6543 (try 1 of 1)
 2010-12-18 07:11:50.020 Using protocol version 63
 2010-12-18 07:11:50.113 Spawning LiveTV Recorder -- begin
 2010-12-18 07:11:50.251 Spawning LiveTV Recorder -- end
 2010-12-18 07:11:50.264 We have a 
 playbackURL(myth://192.168.1.20:6543/105001_20101218071154.mpg) & 
 cardtype(DUMMY)
 2010-12-18 07:11:50.264 We have a RingBuffer
 2010-12-18 07:11:50.491 VDPAU: Created 2 output surfaces.
 2010-12-18 07:11:50.491 VDPAU: Created VDPAU render device 1920x1080
 2010-12-18 07:11:50.619 Player(3): Video timing method: USleep with 
 busy wait
 2010-12-18 07:11:50.620 TV: Changing from None to WatchingLiveTV
 2010-12-18 07:11:50.620 TV: State is LiveTV & mctx == ctx
 2010-12-18 07:11:50.623 TV: UpdateOSDInput done
 2010-12-18 07:11:50.623 TV: UpdateLCD done
 2010-12-18 07:11:50.623 TV: ITVRestart done
 2010-12-18 07:11:50.686 VDPAU: Added 2 output surfaces (total 4, max 4)
 2010-12-18 07:11:52.626 VDPAU Painter: Clearing VDPAU painter cache.
 2010-12-18 07:11:52.684 MythPainter: 7 images not yet de-allocated.
 2010-12-18 07:11:52.825 VDPAU: Created 2 output surfaces.
 2010-12-18 07:11:52.825 VDPAU: Created VDPAU render device 1920x1080
 2010-12-18 07:11:53.035 Player(3): Failed to enable deinterlacing
 2010-12-18 07:11:53.036 AFD: Opened codec 0x9f045d80, id(MPEG2VIDEO) 
 type(Video)
 2010-12-18 07:11:53.036 AFD: codec AC3 has 6 channels
 2010-12-18 07:11:53.037 AFD: Opened codec 0xaade1210, id(AC3) 
 type(Audio)
 2010-12-18 07:11:53.038 AFD: codec AC3 has 2 channels
 2010-12-18 07:11:53.039 AFD: Opened codec 0x9f0849e0, id(AC3) 
 type(Audio)
 2010-12-18 07:11:53.192 AO: Opening audio device 'hw:CARD=NVidia,DEV=1' 
 ch 2(6) sr 48000 sf signed 16 bit reenc 0
 2010-12-18 07:11:53.210 AudioPlayer: Enabling Audio
 2010-12-18 07:11:53.497 Player(3): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAALL
 2010-12-18 07:11:53.511 Player(3): Waited 100ms for video buffers 
 AAAAAAAAAAAAAAAuL
 2010-12-18 07:11:53.518 VDPAU: Added 2 output surfaces (total 4, max 4)



 Both are 1080 content.  I see that some of the codec hex values are 
 different, do those codecs indicate anything?


 FE Settings:

 (chk) Extra Audio Buffering
 Playback profile VDPAU High quality
 video and OSD renderer=vdpau, 1 CPU
 (unchk) OSD Fade
 Primary Deinterlacer: ADV 1X
 Secondary : Temporal 1X

 Audio
 Device= ALSA:hw:CARD=NVidia,DEV=1
 (chk) Dolby Digital
 (chk) DTS
 (greyed out) E-AC3/DTS-HD
 (greyed out) TrudeHD/DTS-HD MA
 Speaker config 5.1
 (chk) Upconvert to 5.1
 Upmix quality Good

 ALL SPEAKER TESTS via SPDIF PASS (as a group and for each audio 
 channel)

 ADVANCED AUDIO: (chk) separate digital output device ALSA:iec958{ AES0 
 0x02 }


 root at mythbasement:/var/log/mythtv# aplay -l
 **** List of PLAYBACK Hardware Devices ****
 card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 
 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
 card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 
 Digital]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
   Subdevices: 1/1
   Subdevice #0: subdevice #0


 The backend this is drawing/tuning from is only loaded 0.15 from 'top' 
 while this is going on...

 NO ERRORS or framedrops reported in the mythfrontend log.






























More information about the mythtv-users mailing list