<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Sat, May 5, 2018, 11:44 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 5 May 2018 10:27:30 -0400, you wrote:<br>
<br>
>I'm running Mythtv 29.0-71 on mythbuntu/Ubuntu 16.04. Combination <br>
>FE/BE. 6 core processor. Nvidia GT630. System is on SSD. Recordings <br>
>are on HDD "media" drives in RAID.<br>
><br>
>I have a recent issue where mythcommflag jobs hang on late-night shows. <br>
>The job statuses show that they're "running", but they're frozen at a % <br>
>complete, and a certain frame rate. Those numbers won't change for <br>
>days, and the queue will keep stacking up. Here's the tail of a recent <br>
>mythcommflag.log:<br>
[snip]<br>
>So, every day, at 24 or 25 seconds after midnight, this will happen. <br>
>And there will be no more logging until I do something.<br>
><br>
>If I kill the two jobs - in this case 18887 and 18969 - the current <br>
>(hung) jobs are marked as failed, and mythcommflag happily and <br>
>successfully goes on to the backlog of queued jobs. I will then <br>
>re-queue the hung jobs, and they complete successfully.<br>
><br>
>On a related note, just based on the final error in that log (Decoder <br>
>timed out waiting for free video buffers); I had been using vdpau for <br>
>video playback, and mythfrontend would often randomly freeze, and <br>
>mythfrontend.log would show that same error. I recently changed to <br>
>OpenGL/ffmpeg, and the mythfrontend freezing stopped. That might be <br>
>about the time this mythcommflag issue started. Could the playback <br>
>decoder affect mythcommflag? In the log, it's obviously mythplayer.cpp <br>
>showing the error.<br>
><br>
>I allow 2 simultaneous jobs. Mythcommflag never goes over 35% of the <br>
>processing capability. So, could this not necessarily be a mythcommflag <br>
>problem, but something possibly hogging io resources at midnight? I do <br>
>have a system backup which runs at midnight, but I don't see it in the <br>
>chron lists, so don't know how to play with that to troubleshoot. Is <br>
>there perhaps an "io" log capability? Is it possible to ionice either a <br>
>backup script or mythcommflagging? Running top or iotop during <br>
>mythcommflagging while watching recordings show low usage of processors <br>
>and io, but maybe whatever is happening at midnight is just too much.<br>
><br>
>So, I think I have a couple directions I could go to diagnose this, but <br>
>I'm thinking someone will have some good insight in where to start!<br>
><br>
>Thanks.<br>
<br>
Does your backup job backup the mythconverg database? Or run an<br>
optimise on it? If so, that is likely the problem. I have had a<br>
similar problem in the past with database backups causing mythcommflag<br>
to lock up, probably because it is timing out on database access and<br>
not handling the problem properly. Both database backups and<br>
optimising the (huge) recordedseek table cause the other database<br>
accesses to become extremely slow.<br>
<br>
I have changed my backup jobs quite a bit from the standard ones,<br>
starting with putting "/usr/bin/nice -n 2" at the start of the<br>
<a href="http://mythconverg_backup.pl" rel="noreferrer noreferrer" target="_blank">mythconverg_backup.pl</a> command in the cron job. I also moved my system<br>
onto a super fast NVMe SSD at around the same time, and those changes<br>
seemed to fix the problem for me. But as I no longer run<br>
mythcommflag, I can not say if it is still fixed.<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank" rel="noreferrer">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer noreferrer" target="_blank">https://forum.mythtv.org</a></blockquote></div></div><div dir="auto">Can you adjust the start time of the backup to a non recording time, as a test?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div></div>