From owner-freebsd-multimedia@FreeBSD.ORG Sat Apr 22 06:55:15 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1529616A401 for ; Sat, 22 Apr 2006 06:55:03 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30315.mail.mud.yahoo.com (web30315.mail.mud.yahoo.com [68.142.201.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 1C2FF43D46 for ; Sat, 22 Apr 2006 06:55:03 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 75776 invoked by uid 60001); 22 Apr 2006 06:55:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=xVAaS70I53VUOd/GuYYg2B999i2TXw185x62NsfPfWKpbEsOKW43h9NVLtIKTQ5sths4PSfn/vDBpQG/GtNmYmH++TQH6Q9CzO6Y1hOW1BKElp91wY3fLXNh4cgmP3ypV+KFFtwgjifIiLhTd8B8hP7yNP+zfwGTi9hWKaq1jbc= ; Message-ID: <20060422065502.75770.qmail@web30315.mail.mud.yahoo.com> Received: from [213.54.69.184] by web30315.mail.mud.yahoo.com via HTTP; Fri, 21 Apr 2006 23:55:02 PDT Date: Fri, 21 Apr 2006 23:55:02 -0700 (PDT) From: "R. B. Riddick" To: Erin E Conn In-Reply-To: <44497744.8010609@nc.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Rebooting problems with /dev/cxm0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 06:55:15 -0000 --- Erin E Conn wrote: > > I had a similar problem with my Pentium 133MHz: > > When I used "cat /dev/cxm0" and piped it via a NIC to another box, > > the pvr box halted without rebooting (at least for some minutes - > > then i pushed the reset button). Somehow it felt like the read > > requests from /dev/cxm0 must be issued quite often and regularily > > and the read requests from /dev/cxm0 should not be limited in > > size (1MB works fine, while 1 byte crashes almost immediately > > (e. g. "dd if=/dev/cxm0 of=/dev/null bs=1 count=1000"))... > > Maybe your hardware configuration is more stable... I did not try it again (I have more than 64 days of uptime now... (-:), but I am still quite sure that this "dd" command with a block size of 1 byte crashed the box almost immediately. Did you select a channel before doing the test? > > Furthermore the power saving features should be disabled in > > my box, I think (I did not test it thoroughly - at least whenever > > the power saving started the box crashed, when I read from > > /dev/cxm0 at that time)... :-) > > Do you still have the problem with spontaneous crashes/reboots after some minutes? Have you checked your BIOS settings about power saving stuff? > > Since I split the reading from cxm0 and transfering to hard disc (partially > > via network) in two processes, that use 8 or about 8 buffers (each 2MB > > or about 2MB), I do not have this problem (61 days uptime... :-)) And > > each day at least 3h of reading from /dev/cxm0 - at most days much > > more: 6h or so). > > I wrote a little C program, that uses "fork" (for creating another process) and "mmap" (for getting shared memory for inter process communication). But most likely this is not needed in your case, since there is no big latency, when u write to ur local harddisc. I could send u the two C programs (one for gathering+marshalling and one for demarshalling. > > Maybe that helps (e. g.: just try to do "dd if=/dev/cxm0 of=/dev/null bs=1m > > count=1000"). > > How are you splitting the reading into 2 processes, and are > you able to watch live TV using this method? > And for how long could you do this test? I mean: If it crashed every 2-5 minutes with "cat", when does it crash, when you use "dd"? When the network transfer works fast enough, I can watch live TV... > I'm not quite sure I understand what is meant here. My machine does not > crash when I try the above dd command, but that may also be simply > because at a count of 1000 it's not accessing my card long enough for > whatever condition is causing my machine to lock up to occur. I'm trying > a longer count now and it has not crashed so far, but I'm not sure how > to apply this to practical viewing. > Are you talking of the command wirth bs=1 or bs=1m? > Another thing I've noticed, although it may be unrelated, is that my > video decoder always fails to lock on the first try when I try to set > the channel to the svideo input. Can this be safely ignored? > I ignore most cxm error messages until they come one of another... :-) But that happened the last time before I rebooted my pvr box, because I did not realize that the antenna plug is unplugged... -Arne --- Arne likes "Not Another Teenie Movie" (mr. "who thinks no antenna plug is needed" thinks no antenna plug is needed...) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com