<p>Well thanks for such a long reply!</p>
<p>Mine is a combined BE/FE so io should not be the issue.  I have tried leaving an SSH terminal logged in during playback and leaving top running, the pauses don&#39;t tie up with corresponding peaks in CPU usage. Its using the gt430 for video decode and CPU is around 7% when playing back HD recordings.</p>

<p>The pauses can be anything from a second or two up to over a minute and the box is completely unresponsive during this time.  I&#39;m going to try to set it to record the SD equivalent channels for a few days and see if it helps.</p>

<p>Can you help me set the -v playback option so it starts when the FE starts on mythbuntu.  Currently I have to stop the FE and restart from the cli with the options which I normally forget to do!</p>
<p>Also sometimes when it pauses like this the FE crashes with a video buffering failed too many times message&#39;s but not always</p>
<p>Any other suggestions also welcome!</p>
<p>Cheers</p>
<p>Chris<br>
</p>
<div class="gmail_quote">On Feb 1, 2012 8:11 PM, &quot;Matt Garman&quot; &lt;<a href="mailto:matthew.garman@gmail.com">matthew.garman@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Feb 1, 2012 at 8:12 AM, Chris Lewis &lt;<a href="mailto:chrislewis915@gmail.com">chrislewis915@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m seeing similar on HD recordings from dvb-s2. When it happens the FE is<br>
&gt; completely unresponsive to ir remote or keyboard commands.<br>
&gt;<br>
&gt; I did get some FE/BE logs the other night but they didn&#39;t contain much.<br>
&gt; I&#39;ll try again with -v playback to see if it sheds any light.<br>
&gt;<br>
&gt; Fwiw I&#39;m on a dual core p4 @ 3.2ghz with 4gigs ram and a gt430 using vdpau<br>
<br>
Is this a pure FE box, i.e. are the FE and BE separate machines?  If<br>
so, you have to consider network issues and disk I/O on the BE.  If<br>
your network connection is wireless, try (if possible, at least<br>
temporarily) a wired connection.<br>
<br>
Also, run something like this on the backend while watching something<br>
that has the freeze phenomenon:<br>
<br>
iostat -ktx 1 &gt; iostat.txt<br>
<br>
When you see a freeze, make a note of the time.  Then go look at the<br>
iostat.txt file, and look for the timestamp(s) where the freeze<br>
occurred.  If you see your mythtv storage device at (or near) 100%<br>
utilization during this time, then you have the culprit (disk IO<br>
bottleneck).  This is possible if, for example, you are trying to<br>
playback from the same disk that is also recording multiple streams<br>
and doing some kind of job (commercial flagging, transcoding, etc).<br>
Also, there&#39;s a chance the disk is going bad and timing out on reads.<br>
Do a &quot;smartctl -t long &lt;device&gt;&quot;, wait however long it says, then<br>
&quot;smartctl -a &lt;device&gt;&quot; and see if anything looks suspicious.<br>
<br>
Note that the above iostat command dumps output every one second, so<br>
the file will grow relatively quickly---don&#39;t let it run indefinitely!<br>
<br>
If this turns out to be the case, the solution is more and/or faster<br>
disks, and/or increasing buffering on the client and/or server side<br>
(or a new disk if smartctl shows errors).<br>
<br>
Another thought: try doing an NFS mount of the BE&#39;s storage directory,<br>
and use an external player like mplayer or vlc to play your recording<br>
file.  Does it exhibit the same behavior?  This will help isolate the<br>
problem (is it MythTV specifically or something lower level?).  I know<br>
at least with mplayer, you can set the buffer size.  So if you see the<br>
freezing in mplayer, increase the buffer, and see if it still happens.<br>
<br>
Another tool I&#39;ve found semi-useful for tracking down performance<br>
issues is &quot;sar&quot;.  On CentOS (and presumably Fedora), it&#39;s part of the<br>
&quot;sysstat&quot; package (not sure where it&#39;s found on other distros).  But I<br>
set this up to be much more aggressive than the defaults, taking<br>
samples every five seconds.  I&#39;d suggest running this on both the<br>
frontend and the backend.<br>
<br>
If it&#39;s not disk IO, and sar doesn&#39;t show any obvious problems (e.g.<br>
CPU load), then you might also want to try running some network<br>
bandwidth tests.  There are lots of tools for this... but it&#39;s not<br>
uncommon to have a bad wire or a switch overheating or a buggy NIC<br>
driver... at least check the obvious things first: duplex and speed<br>
settings via ethtool (e.g. one is configured 100/Full and the other<br>
1GbE/half will give you all kinds of grief).  Also do a simple<br>
&quot;ifconfig&quot; and look for interface errors.  ethtool -S will give you<br>
lots of low-level info, depending on the hardware and driver.<br>
<br>
I have never experienced the particular freezing issue myself, but the<br>
above are general tips that can hopefully track down and isolate the<br>
problem.<br>
<br>
&gt; Any advice appreciated<br>
&gt;<br>
&gt; On 1 Feb 2012 13:44, &quot;Tim Draper&quot; &lt;<a href="mailto:veehexx@gmail.com">veehexx@gmail.com</a>&gt; wrote:<br>
&gt; FE is a 330 atom with ion &amp; VDPAU enabled.<br>
&gt; 2gb ram (2x 1gb iirc).<br>
&gt;<br>
&gt; when i watch shows, that are over a certain size (1hour 5gb HD<br>
&gt; recordings definitely do it, 40min 1.4gb files seem not to), i will<br>
&gt; get random mini freezes of the video after a certain period.<br>
&gt; the other night i was watching a 5.6gb recording, and it froze twice;<br>
&gt; once around 25mins, and again around 50min area. rewinding and<br>
&gt; replaying again does not re-produce that mini-freeze.<br>
&gt;<br>
&gt; what i suspect is happening is the video is being buffered to RAM, and<br>
&gt; it then gets wiped after a period (once ram is full?), which is whats<br>
&gt; causing the freezing.<br>
&gt;<br>
&gt; i have been SSH&#39;d into the FE while a freeze occured. while i didnt<br>
&gt; catch resource usage at that exact time, CPU and RAM utilization were<br>
&gt; acceptable within 10-20 seconds either side of the freezing.<br>
&gt; (mythfrontend process)<br>
&gt;<br>
&gt; can anyone confirm/deny if my suspicions are correct, and what would<br>
&gt; be an appropriate solution? more ram would be an idea, but due to the<br>
&gt; atoms 3gb RAM limit, then i&#39;d likely still see the freeze if it is<br>
&gt; indeed down to a flushing RAM issue.<br>
&gt; i know atoms arent highly recommended here, but i dont believe the<br>
&gt; underpowered state is the issue here, else i&#39;d be experiencing issues<br>
&gt; alot closer together. HD playback seems fine for the shorter shows<br>
&gt; (around 30mins), but freezes do occur for longer running shows (1h).<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div>