[mythtv-users] Greedy MythTV Processes

Bryan Murphy bryan at terralab.com
Thu Jul 22 22:06:02 EDT 2004


I've got a new problem and I'm at a bit of a loss what to do about it.  
MythTV is spawning off processes that sit at 100% CPU utilization in the 
background doing nothing but wasting CPU.  Since I run MythTV with an 
increased priority, my system screaches to a halt whenever this happens.

The odd thing is... I have a PVR-350 and a 2.6ghz, so this is very 
unusual.  When I was running MythTV on my older Pentium 3 I never had 
this problem (~1% CPU utilization recording and playback).  On the new 
machine however, it happens all the time and I'm having no luck locating 
the problem.

Now, I don't believe MythTV is doing any transcoding when this is 
happening.  However, I don't know how to confirm this.  In fact, I'm not 
entirely sure what's going on at all when this is happening.  To top it 
off, there is nothing in my system log and I've tried quite a few 
different versions of the ivtv driver.  All recent versions that work at 
all seem to exhibit this problem (even versions that worked quite 
successfully on the previous machine).

I can still watch tv and record TV while this is happening.  MythTV 
still does it's job, but it wastes a lot of resources doing it.

Any suggestions what I could do to try and debug this problem?  I've 
attached some system info below but I don't think there's much that's of 
any value.

Thanks,
Bryan

lspci:
0000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM 
Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller 
(rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB 
UHCI #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB 
UHCI #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB 
UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB 
UHCI #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 
EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge 
(rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra 
ATA 100 Storage Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller 
(rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 
[GeForce4 Ti 4600] (rev a3)
0000:02:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host 
Controller (rev 80)
0000:02:0a.0 Multimedia video controller: Internext Compression Inc 
iTVC15 MPEG-2 Encoder (rev 01)
0000:02:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
0000:02:0d.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 
(rev 0a)
0000:02:0d.1 Input device controller: Creative Labs SB Live! MIDI/Game 
Port (rev 0a)

rc.ivtv:
modprobe ivtv
modprobe msp3400 once=1 simple=1 standard=0x20
modprobe saa7115
modprobe tuner type=2
modprobe saa7127 enable_output=1 output_select=1
modprobe ivtv-fb
modprobe lirc_dev
modprobe lirc_i2c
 
dmesg:
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.1.10 (0.1.10pre2-ck100b) loading
ivtv: Linux version: 2.4.26-1-686
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 350 card
ivtv: Found an iTVC15 based chip
ivtv: pci: PCIBUS detected device: 0x2570 vendor: 0x8086
i2c-core.o: adapter ivtv i2c driver #0 registered as adapter 0.
i2c-core.o: driver tveeprom registered.
tveeprom: Hauppauge: model = 48132, rev = J333, serial# = 6547265
tveeprom: tuner = Temic 4039FR5 (idx = 33, type = 21)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv: i2c attach [client=tveeprom[0],ok]
i2c-core.o: client [tveeprom[0]] registered to adapter [ivtv i2c driver 
#0](pos. 0).
ivtv: Tuner Type 21, Tuner formats 0x00001000, Radio: yes, Model 
0x00a934d3, Revision 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
i2c-core.o: driver i2c TV tuner driver registered.
tuner: chip found @ 0xc2
ivtv: i2c attach [client=(tuner unset),ok]
i2c-core.o: client [(tuner unset)] registered to adapter [ivtv i2c 
driver #0](pos. 1).
i2c-core.o: driver saa7115 registered.
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[0],ok]
i2c-core.o: client [saa7115[0]] registered to adapter [ivtv i2c driver 
#0](pos. 2).
saa7115: status: (1E) 0x50, (1F) 0xc0
saa7127: video encoder driver version V 0.3 loaded
i2c-core.o: driver saa7127 registered.
saa7127: Selecting NTSC video Standard
saa7127: Selecting S-Video+Composite
saa7127: Turn WSS off
saa7127: Widescreen Mode 4:3 Full Format
saa7127: Selecting Normal Encoder Input
saa7127: Enable Video Output
ivtv: i2c attach [client=saa7127[0],ok]
i2c-core.o: client [saa7127[0]] registered to adapter [ivtv i2c driver 
#0](pos. 3).
i2c-core.o: driver i2c msp3400 driver registered.
msp34xx: ivtv version
msp34xx: init: chip=MSP3448W-A2, has NICAM support, simple (D) mode, 
simpler (G) no-thread mode
msp34xx: $Id$ compiled on: Jul 22 2004 20:18:42
ivtv: i2c attach [client=MSP3448W-A2,ok]
i2c-core.o: client [MSP3448W-A2] registered to adapter [ivtv i2c driver 
#0](pos. 4).
ivtv: Encoder revision: 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 9 streams
ivtv: Create DMA stream 0 using 256 buffers of size 32768
ivtv: Create DMA stream 1 using 32 buffers of size 32768
ivtv: Create stream 2 using 64 buffers of size 52224
ivtv: Create DMA stream 3 using 32 buffers of size 32768
ivtv: Create stream 4
ivtv: Create DMA stream 5 using 64 buffers of size 32768
ivtv: Create stream 6 using 64 buffers of size 2048
ivtv: Create stream 7
ivtv: Create DMA stream 8 using 8 buffers of size 32768
ivtv: Setting Tuner 21
tuner: type set to 21 (Temic NTSC (4039 FR5))
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: Initialized WinTV PVR 350, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and has 
1704960 bytes.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: Good video_base is inside valid allocated space.
ivtv-osd: framebuffer at 0xf1510000, mapped to 0xfab6f000, size 1354k
ivtv-osd: mode is 720x480x32, linelength=2880
Console: switching consoles 1-0 to frame buffer device
ivtv-osd: fb0: iTVC15 TV out frame buffer device
lirc_dev: IR Remote Control driver registered, at major 61
bttv: driver version 0.7.108 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
i2c-core.o: driver i2c ir driver registered.
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv: i2c attach [client=Hauppauge IR,ok]
i2c-core.o: client [Hauppauge IR] registered to adapter [ivtv i2c driver 
#0](pos. 5).
lirc_dev: lirc_register_plugin:sample_rate: 10
saa7115: decoder set input (0)
saa7115: now setting Composite input
ivtv: Setting audio matrix to input 1, output 1
ivtv: Finished with Mute
saa7115: decoder set picture bright=128 contrast=63 saturation=64 hue=0
saa7115: decoder set picture bright=128 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
root at raymond:/home/bryan# less /var/log/messages
root at raymond:/home/bryan# dmesg | less
ivtv: Create DMA stream 3 using 32 buffers of size 32768
ivtv: Create stream 4
ivtv: Create DMA stream 5 using 64 buffers of size 32768
ivtv: Create stream 6 using 64 buffers of size 2048
ivtv: Create stream 7
ivtv: Create DMA stream 8 using 8 buffers of size 32768
ivtv: Setting Tuner 21
tuner: type set to 21 (Temic NTSC (4039 FR5))
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: Initialized WinTV PVR 350, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and has 
1704960 bytes.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: Good video_base is inside valid allocated space.
ivtv-osd: framebuffer at 0xf1510000, mapped to 0xfab6f000, size 1354k
ivtv-osd: mode is 720x480x32, linelength=2880
Console: switching consoles 1-0 to frame buffer device
ivtv-osd: fb0: iTVC15 TV out frame buffer device
lirc_dev: IR Remote Control driver registered, at major 61
bttv: driver version 0.7.108 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
i2c-core.o: driver i2c ir driver registered.
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv: i2c attach [client=Hauppauge IR,ok]
i2c-core.o: client [Hauppauge IR] registered to adapter [ivtv i2c driver 
#0](pos. 5).
lirc_dev: lirc_register_plugin:sample_rate: 10
saa7115: decoder set input (0)
saa7115: now setting Composite input
ivtv: Setting audio matrix to input 1, output 1
ivtv: Finished with Mute
saa7115: decoder set picture bright=128 contrast=63 saturation=64 hue=0
saa7115: decoder set picture bright=128 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0

ivtvctl -a:
ioctl: IVTV_IOC_G_CODEC
Codec parameters
aspect      : 2
audio       : 0x00e9
bframes     : 3
bitrate_mode: 0
bitrate     : 9800000
bitrate_peak: 15000000
dnr_mode    : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type    : 0
framerate   : 0
framespergop: 15
gop_closure : 1
pulldown    : 0
stream_type : 0
ioctl: VIDIOC_G_FMT
        Type   : Video Capture
        Width  : 720
        Height : 480
ioctl: VIDIOC_QUERYCAP
        Driver name   : ivtv
        Card type     : Vanilla iTVC15 card
        Bus info      : 0
        Driver version: 266
        Capabilities  : 0x01070033
ioctl: VIDIOC_ENUMINPUT
        Input   : 0
        Name    : Composite 0
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 1
        Name    : Composite 1
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 2
        Name    : Composite 2
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 3
        Name    : Composite 3
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 4
        Name    : Tuner 0
        Type    : 0x00000001
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x0000000000003000 ( NTSC )
        Status  : 0

        Input   : 5
        Name    : Composite 4
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 6
        Name    : S-Video 0
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 7
        Name    : S-Video 1
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 8
        Name    : S-Video 2
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0

        Input   : 9
        Name    : S-Video 3
        Type    : 0x00000002
        Audioset: 0x00000003
        Tuner   : 0x00000000
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
        Status  : 0
ioctl: VIDIOC_G_INPUT
Input = 0
ioctl: VIDIOC_ENUMOUTPUT
        Output  : 0
        Name    : S-Video + Composite
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

        Output  : 1
        Name    : Composite
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

        Output  : 2
        Name    : S-Video
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

        Output  : 3
        Name    : RGB
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

        Output  : 4
        Name    : YUV C
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )

        Output  : 5
        Name    : YUV V
        Type    : 0x00000002
        Audioset: 0x00000001
        Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
ioctl: VIDIOC_G_OUTPUT
Output = 0
ioctl: VIDIOC_ENUMAUDIO
        Input   : 0
        Name    : Tuner Audio In

        Input   : 1
        Name    : Audio Line In
ioctl: VIDIOC_G_AUDIO
Input = 1: Audio Line In
ioctl: VIDIOC_G_FREQUENCY
Frequency = 0
ioctl: VIDIOC_ENUMSTD
        index       : 0
        ID          : 0x0000000000003000
        Name        : NTSC
        Frame period: 1001/30000
        Frame lines : 525

        index       : 1
        ID          : 0x00000000000000FF
        Name        : PAL
        Frame period: 1/25
        Frame lines : 625

        index       : 2
        ID          : 0x00000000007F0000
        Name        : SECAM
        Frame period: 1/25
        Frame lines : 625
ioctl: VIDIOC_G_STD
Standard = 0x00003000
ioctl: VIDIOC_QUERYCTRL
Brightness = 127
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58880
Mute = 0


More information about the mythtv-users mailing list