<div class="gmail_quote">2009/4/20 Christoph Willing <span dir="ltr">&lt;<a href="mailto:c.willing@uq.edu.au">c.willing@uq.edu.au</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On 21/04/2009, at 3:47 AM, Andrew Ford wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Chris,<br>
<br>
After some testing we&#39;ve seen this happen with multiple IVCs and multiple machines - at any rate, we don&#39;t have any more spare linux boxes to test with. I have a feeling it might be related to Ubuntu&#39;s CPU frequency scaling though, as I&#39;ve never seen it freeze when I manually set it to use the maximum clock speed. What are the clock settings on your machine?<br>

</blockquote>
<br>
<br></div>
Andrew,<br>
<br>
Did you roll your own kernel? When I tried to add the cpu frequency scaler applet, it reports that I don&#39;t have it set in the kernel - since I try to keep our build machines as standard as possible (i.e. only latest supplied kernels) and if frequency scaling is working for you, I&#39;m guessing you have a non-standard kernel. In that case I suggest you revert to a standard kernel to test whether the freeze effect goes away. Either the  frequency scaling itself or the change of some other kernel option may be causing the freeze effect; reverting to a standard kernel could rule those changes out as the cause.</blockquote>
<div class="im"><br>Nope, standard kernel - one machine is a clean install of x86 Intrepid, the other is also x86 Intrepid that&#39;s been upgraded from Gutsy. What kind of CPUs do you have in your machines? I&#39;m guessing Ubuntu automatically detects on install - for example, it&#39;s also automatically enabled on my laptop, which has a Core 2 Duo. It looks like it functions through a variety of kernel modules depending on type of processor - &quot;powernow-k8&quot; for Opterons, for example. I&#39;m going to try disabling that module to see if that does what I want.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In my case, without frequency scaling enabled in the kernel, the scaler applet works in read only mode. From that, I could see that the clock setting is set to 100%.<br>
<br>
BTW it looks from the applet like the frequency scaling could be set to different values on different cores of a multicore machine - that may also contribute to the freezing.</blockquote><div><br>No - if you set a speed for a core the displayed speed for the other cores on the same processor will change correspondingly.<br>
<br>--Andrew<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
<br>
chris<div><div></div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/3/29 Christoph Willing &lt;<a href="mailto:c.willing@uq.edu.au" target="_blank">c.willing@uq.edu.au</a>&gt;<br>
<br>
On 26/03/2009, at 4:58 PM, Christoph Willing wrote:<br>
<br>
<br>
On 26/03/2009, at 3:34 AM, Andrew Ford wrote:<br>
<br>
Hi,<br>
<br>
For a while now we&#39;ve been seeing hard freezes (ie, trying to kill the X server does nothing) on one of our Linux machines when it tries to send video via an IVC-200 cap card. It tends to occur more frequently when the load is heavier - attempting to send 2 or more 720x480 mpeg4 or h.264 streams causes it to freeze within 5-10 minutes, 4 h.261 videos make it freeze in about half an hour, and 2 261 videos makes it last about 2 days. dmesg and /var/log/messages don&#39;t give any clues. Other types of load don&#39;t seem to cause freezes, and I ran memtest86 overnight with no errors. Originally the machine was Ubuntu 8.04 64-bit, then 8.10 64-bit, then 8.10 32-bit, and the problem was seen in all 3. In all cases it was running the UQ-provided AG 3.2beta with the stock VideoProducer services. I know there was a bttv driver deadlock issue in kernels pre-2.6.24, but this is running kernel 2.6.27 so that shouldn&#39;t be the problem.<br>

<br>
Also when sending video on that machine occasionally the stream would start to flicker, flashing an old frame alternating with the current output of the camera. Has anyone seen either of these issues before?<br>
<br>
<br>
Andrew,<br>
<br>
I just installed a 32bit Ubuntu 8.10 on the UQVislab node&#39;s video capture machine. I&#39;ve been running 2x mpeg4 streams and an h261 stream for over two hours. I just powered the machine down to confirm it is actually an IVC-200G card (it is). After the restart, I&#39;ve now configured it to run with 3x mpeg4 streams. These are full PAL streams 704x576. Its been running for nearly 10 minutes now - will leave it running overnight (in the APAG lobby, if you want to check on them) and report back. Based on the previous successful 2 hour test, I think this 3 large streams test will be OK too.<br>

<br>
<br>
Andrew,<br>
<br>
We&#39;ve now had this setup (32bit Ubuntu 8.10 with IVC-200G streaming 3x mpeg4 streams @ 704x576) running continuously for over three days now without any discernible problem. That result suggests a hardware issue with your capture card (or even the machine itself).<br>

<br>
<br>
chris<br>
<br>
<br>
<br>
<br>
You could try reseating the card - maybe some dust or contact oxidation is creating some bad effect? Do you have any similar capture cards lying around you could temporarily replace the IVC with? That may indicate whether you have a card fault or machine/OS fault.<br>

<br>
<br>
chris<br>
<br>
<br>
Christoph Willing                       +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland<br>
<br>
<br>
Christoph Willing                       +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland<br>
<br>
<br>
</blockquote>
<br>
Christoph Willing                       +61 7 3365 8316<br>
QCIF Access Grid Manager<br>
University of Queensland<br>
<br>
</div></div></blockquote></div><br>