On Mon, Mar 4, 2013 at 1:23 PM, David Farmer <span dir="ltr"><<a href="mailto:remrafevad@gmail.com" target="_blank">remrafevad@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="im">
<br>
<div>On 02/03/13 17:13, David Farmer wrote:<br>
</div>
<blockquote type="cite">
I have been having this as an ongoing problem since I installed
MythTV 0.26 on an Arch Linux x86_64 box. There is a <a href="http://code.mythtv.org/trac/ticket/11230" target="_blank">current bug
report</a> (ticket #11230) but it's priority is marked at low,
I'm hoping that this could possibly change! Trouble is, I don't
know how to reproduce it. As the subject says, I get multiple
copies of mythlogserver and they smash the cpu at a combined total
of almost 100% for each core. <br>
<br>
My typical MythTV usage is to have it wake itself, record a
program and then use a HandBrakeCLI user job to transcode this,
and finally shut itself down. Typically a 2 hour SD recording
takes 2 hours to transcode using my settings, and a 2 hour HD
takes about 6 hours. But since 0.26 I get up in the morning and
the the user jobs aren't finished and there are around 4 copies of
mythlogserver all running, using so much cpu that HandBrakeCLI
only used 0.3%. But the worst example was a few days ago, I had 14
instances all at the same time.<br>
</blockquote>
<br>
</div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">Adding "system" to
the verbose settings should cause a log entry each<span> </span></span><br style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">time mythlogserver
is started up. A line like:<span> </span></span><br style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">
<br style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">
<font style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px" color="#660066">>2013-01-22
19:31:10.371307 I [401/28931] Logger system-unix.cpp:868<span> </span><br>
>(Fork) - Managed child (PID: 402) has started! *<span> </span><br>
>command=/opt/local/bin/mythlogserver --daemon --verbose
none,system<span> </span><br>
>--logpath /opt/local/var/log/mythtv.26 --loglevel debug,
timeout=0<span> </span><br>
</font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px"></span><br style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:small;white-space:normal;font-family:Verdana,Arial,Helvetica;word-spacing:0px">
I've changed the mythlogserver parameters as suggested, but as yet
haven't had the problem appear. Will these new settings survive a
reboot, or do I need to specify them each time?<br>
<br>
<br>
<br>
</div>
</blockquote></div>Ok, so it took a while but I have a recurrence of the problem. A quick description of the events before and after I noticed it. <div><br></div><div>1. I logged into the HTPC via ssh to see how many mythlogserver processes were running, only 1 and cpu usage was less than 1%. I then logged out.</div>
<div>2. I opened mythweb from the same pc as I did the ssh. I cancelled a few upcoming recordings that were scheduled via a custom search rule. Closed Mythweb.</div><div>3. Ate dinner</div><div>4. I sat in front of the HTPC and checked how many mythlogservers were open, 7 or 8 (forgot to count!) of them and cpu usage was maximum.</div>
<div><br></div><div>The log file is huge though, because all this time Shepherd (my Australian program listings grabber) was running as a cron job. An immediate issues I've noted in the log is</div><div><div><br></div>
<div>"Mar 07 18:51:20 david-htpc systemd-coredump[2706]: Process 2672 (mythpreviewgen) dumped core."</div></div><div><br></div><div>Not sure which other messages are important, how should the log be uploaded?</div>
<div><br></div>