LinHES Forums http://forum.linhes.org/ |
|
need help with ivtv buffers config http://forum.linhes.org/viewtopic.php?f=14&t=16882 |
Page 1 of 1 |
Author: | mymythtv [ Sat Oct 06, 2007 12:28 pm ] |
Post subject: | need help with ivtv buffers config |
I'm seeing the "application not reading fast enough" messages and my FE locks up consistently after 10 minutes of watching live TV. This started with R5F27. I had been running R5C7 for months with absolutely no problems but need to do something because of the schedules change. I did an upgrade to D then E then F1 and finally F27. Everything works (even got my fourth tuner working finally) but I have all kinds of lockups and freezes. Different messages almost every time. Sometimes I get what appears to be Linux core dumps and other messages including the message I mentioned above so I'm trying to knock them out one by one. I read on the KnoppMyth Wiki that: # R5F27: Add the following line after the existing line in "/etc/mythtv/modules/ivtv" that reads "options msp3400 once=1": * options ivtv enc_yuv_buffers=8 enc_mpg_buffers=32 enc_vbi_buffers=8 enc_pcm_buffers=8 but my ivtv file looks like this: #!/bin/bash # # Set the ivtv Parameters ######################################################################## IVTVCTL='ivtvctl' IVTVDIR='/etc/sysconfig/ivtv' V4LCTL='v4l2-ctl' #----------------------------------------------------------------------# # Default values, if not specified in $IVTVDIR/cfg-* IVTV_DT='0' # Tuner input, IVTV_DF='ntsc' # tuner format [NTSC|PAL] ######################################################################## [ -d "$IVTVDIR" ] || exit 1 PATH="$PATH:/usr/local/bin" # See how we were called: case $1 in (start) cd $IVTVDIR || exit 2 for g in $(echo cfg-*) ; do f=${g#cfg-} unset IVTV_TUNER IVTV_RATE IVTV_PEAK IVTV_TYPE source cfg-$f case $IVTV_TYPE in "") IVTV_TYPE=$IVTV_DF ;; NTSC) IVTV_TYPE=ntsc ;; NTSC-M) IVTV_TYPE=ntsc-m ;; NTSC-J) IVTV_TYPE=ntsc-jp ;; NTSC-K) IVTV_TYPE=ntsc-kr ;; PAL) IVTV_TYPE=pal ;; *) IVTV_TYPE=`echo "$IVTV_TYPE" | tr '[A-Z]' '[a-z]'` ;; esac $V4LCTL -d /dev/video$f -s $IVTV_TYPE $V4LCTL -d /dev/video$f -i ${IVTV_TUNER:-${IVTV_DT}} $V4LCTL -d /dev/video$f -v width=720,height=480 $V4LCTL -d /dev/video$f -t stereo $V4LCTL -d /dev/video$f -c mute=0 $V4LCTL -d /dev/video$f -c temporal_filter_mode=0,temporal_filter=0 done ;; (stop) # don't do anything on stop. ;; *) echo "Usage: /etc/init.d/set_ivtv_params {start|stop}" exit 1 ;; esac ######################################################################## # End so I'm confused as to where to put this new "options" command. Can someone try to clarify this for me? |
Author: | tjc [ Sat Oct 06, 2007 1:11 pm ] |
Post subject: | |
Something there is pretty screwed up. That should be the contents of your /etc/init.d/set_ivtv_params init script. NOT your /etc/mythtv/modules/ivtv which should look more or less like this (modulo line wrapping): Code: alias char-major-81 videodev
alias char-major-61 lirc_i2c options msp3400 once=1 install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115; /sbin/modprobe --ignore-install ivtv; /sbin/modprobe lirc_i2c remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -rsaa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner && /sbin/modprobe -r lirc_i2c Are you sure you're looking at the right file? |
Author: | mymythtv [ Sat Oct 06, 2007 1:17 pm ] |
Post subject: | |
Ouch! You're right. I've been fighting this problem for so long I somewhere got off track and got the two confused. You're response was so timely. I'll make the change reboot and see what happens. Thanks! |
Author: | mymythtv [ Sat Oct 06, 2007 7:55 pm ] |
Post subject: | |
Well this did increase the ivtv buffers but the system still locks/freezes up. The symptoms are many. Usually happens while watching live tv. Sometimes it locks and nothing can free it up. Sometimes it locks and I can get a remote console to kill some things and get back in. If I have "top" running sometimes I'll see what appears to be a core dump, etc, etc. Many times the picture will continue but networking is lost and the remote is non-responding. I'm going back to R5C7,(and only three tuners ![]() Thanks! |
Author: | mymythtv [ Sun Oct 07, 2007 8:38 am ] |
Post subject: | |
Still on R5F25 I decided this could be a heat problem so I popped the cover off of the box and positioned a fan to blow air over the box. The CPU is running at about 138F so it appears to be ok. It ran for 2+ hours (which it had done before) the last half hour during which I was watching live tv and recording two programs and then this occurred (taken from syslog): Oct 7 08:15:01 mythtv /USR/SBIN/CRON[5416]: (root) CMD ([ -x /usr/lib/sysstat/sa1 ] && { [ -r "$DEFAULT" ] && . "$ DEFAULT" ; [ "$ENABLED" = "true" ] && exec /usr/lib/sysstat/sa1 $SA1_OPTIONS 1 1 ; }) Oct 7 08:17:01 mythtv /USR/SBIN/CRON[5418]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Oct 7 08:25:01 mythtv /USR/SBIN/CRON[5496]: (root) CMD ([ -x /usr/lib/sysstat/sa1 ] && { [ -r "$DEFAULT" ] && . "$ DEFAULT" ; [ "$ENABLED" = "true" ] && exec /usr/lib/sysstat/sa1 $SA1_OPTIONS 1 1 ; }) Oct 7 08:31:13 mythtv kernel: BUG: unable to handle kernel paging request at virtual address 962a02a8 Oct 7 08:31:13 mythtv kernel: printing eip: Oct 7 08:31:13 mythtv kernel: c01facf6 Oct 7 08:31:13 mythtv kernel: *pde = 00000000 Oct 7 08:31:13 mythtv kernel: Oops: 0002 [#1] Oct 7 08:31:13 mythtv kernel: PREEMPT SMP Oct 7 08:31:13 mythtv kernel: Modules linked in: nvidia autofs4 lirc_serial lirc_pvr150 lirc_dev ipv6 af_packet ag pgart fuse usbhid pcmcia yenta_socket rsrc_nonstatic pcmcia_core video thermal sbs processor i2c_ec fan container b utton battery asus_acpi ac unionfs sbp2 ohci1394 ieee1394 usb_storage uhci_hcd cx88_vp3054_i2c cx8802 cx88xx saa713 4_dvb saa7134 ir_kbd_i2c video_buf_dvb tda1004x nvram dvb_bt8xx dvb_core bt878 bttv video_buf ir_common compat_ioct l32 btcx_risc wm8775 cx25840 pl2303 usbserial i2c_nforce2 ivtv saa7115 shpchp pci_hotplug ohci_hcd msp3400 snd_inte l8x0 tuner tea5767 tda8290 tuner_simple mt20xx snd_ac97_codec snd_ac97_bus firmware_class ehci_hcd i2c_algo_bit snd _pcm_oss snd_mixer_oss cx2341x usbcore tveeprom i2c_core snd_pcm videodev v4l2_common snd_timer v4l1_compat snd sou ndcore snd_page_alloc 8250_pnp 8250 serial_core tsdev evdev Oct 7 08:31:13 mythtv kernel: CPU: 0 Oct 7 08:31:13 mythtv kernel: EIP: 0060:[<c01facf6>] Tainted: P VLI Oct 7 08:31:13 mythtv kernel: EFLAGS: 00010202 (2.6.18-chw-13 #1) Oct 7 08:31:13 mythtv kernel: EIP is at journal_put_journal_head+0x16/0xf0 Oct 7 08:31:13 mythtv kernel: eax: d1e08000 ebx: 962a02a8 ecx: 00000002 edx: 00000001 Oct 7 08:31:13 mythtv kernel: esi: f40e861c edi: f3c4752c ebp: f40e861c esp: d1e09e14 Oct 7 08:31:13 mythtv kernel: ds: 007b es: 007b ss: 0068 Oct 7 08:31:13 mythtv kernel: Process mythbackend (pid: 5521, ti=d1e08000 task=cf090130 task.ti=d1e08000) Oct 7 08:31:13 mythtv kernel: Stack: d62a02a8 f3e21600 c01f6198 f40e861c f3e216f4 00000000 00001000 f3c4752c Oct 7 08:31:13 mythtv kernel: d62a02a8 00001000 c01e3f92 f3c4752c d62a02a8 00001000 d62a02a8 d62a02a8 Oct 7 08:31:13 mythtv kernel: c01e32a5 f3c4752c d62a02a8 00000000 f3c4752c c1b5af00 d62a02a8 00000000 Oct 7 08:31:13 mythtv kernel: Call Trace: Oct 7 08:31:13 mythtv kernel: [<c01f6198>] journal_dirty_data+0x148/0x320 Oct 7 08:31:13 mythtv kernel: [<c01e3f92>] ext3_journal_dirty_data+0x12/0x40 Oct 7 08:31:13 mythtv kernel: [<c01e32a5>] walk_page_buffers+0x35/0x70 Oct 7 08:31:13 mythtv kernel: [<c01e6802>] ext3_ordered_writepage+0xf2/0x180 Oct 7 08:31:13 mythtv kernel: [<c01e3fc0>] journal_dirty_data_fn+0x0/0x20 Oct 7 08:31:13 mythtv kernel: [<c01e6710>] ext3_ordered_writepage+0x0/0x180 Oct 7 08:31:13 mythtv kernel: [<c01950c1>] mpage_writepages+0x161/0x3e0 Oct 7 08:31:13 mythtv kernel: [<c01e6710>] ext3_ordered_writepage+0x0/0x180 Oct 7 08:31:13 mythtv kernel: [<c0155f19>] do_writepages+0x39/0x40 Oct 7 08:31:13 mythtv kernel: [<c015100b>] __filemap_fdatawrite_range+0x5b/0x70 Oct 7 08:31:13 mythtv kernel: [<c0151267>] filemap_fdatawrite+0x17/0x20 Oct 7 08:31:13 mythtv kernel: [<c0172f9d>] do_fsync+0x2d/0x80 Oct 7 08:31:13 mythtv kernel: [<c017300b>] __do_fsync+0x1b/0x30 Oct 7 08:31:13 mythtv kernel: [<c01031f7>] syscall_call+0x7/0xb Oct 7 08:31:13 mythtv kernel: Code: e8 40 92 f2 ff 0f 0b 51 07 8a 2f 58 c0 83 c4 14 e9 d0 fe ff ff 56 53 89 e0 8b 74 24 0c 25 00 e0 ff ff 8b 1e 8b 50 14 42 89 50 14 <f0> 0f ba 2b 15 19 c0 85 c0 74 34 8b 03 a9 00 00 20 00 74 ec 89 Oct 7 08:31:13 mythtv kernel: EIP: [<c01facf6>] journal_put_journal_head+0x16/0xf0 SS:ESP 0068:d1e09e14 Oct 7 08:31:13 mythtv kernel: <6>note: mythbackend[5521] exited with preempt_count 1 Oct 7 08:31:31 mythtv kernel: ivtv3: All encoder VBI stream buffers are full. Dropping data. Oct 7 08:31:31 mythtv kernel: ivtv3: Cause: the application is not reading fast enough. Oct 7 08:31:32 mythtv kernel: ivtv3: All encoder VBI stream buffers are full. Dropping data. Oct 7 08:31:32 mythtv kernel: ivtv3: Cause: the application is not reading fast enough. Oct 7 08:31:32 mythtv kernel: ivtv3: All encoder VBI stream buffers are full. Dropping data. Oct 7 08:31:32 mythtv kernel: ivtv3: Cause: the application is not reading fast enough. Oct 7 08:31:32 mythtv kernel: ivtv0: All encoder VBI stream buffers are full. Dropping data. Oct 7 08:31:32 mythtv kernel: ivtv0: Cause: the application is not reading fast enough. I've done the ivtv buffer entry in the /etc/mythtv/modules/ivtv file: alias char-major-81 videodev alias char-major-61 lirc_i2c #options ivtv debug=1 #options tuner type=2 options msp3400 once=1 options ivtv enc_yuv_buffers=8 enc_mpg_buffers=32 enc_vbi_buffers=8 enc_pcm_buffers=8 install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115; /sbin/modprobe --ignore-install ivtv remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner but only see this in the kern.log not what the wiki says I should see: Oct 6 22:00:12 mythtv kernel: ivtv3: Registered device video3 for encoder MPG (32768 kB) Is this correct or am I still not doing something correct in the ivtv file |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |