[mythtv-users] Overactive scheduler?

Marco Quezada mellamanjefe at gmail.com
Sat Feb 11 19:56:42 UTC 2012


On Feb 11, 2012 12:07 PM, "Michael T. Dean" <mtdean at thirdcontact.com> wrote:
>
> On 02/10/2012 08:05 PM, Marco Quezada wrote:
> >> On 02/10/2012 05:11 PM, Marco Quezada wrote:
> >>> My backend has trouble reaching an idle timeout so it can shutdown on
> >>> its own. Its logs are filled with entries like these:
> >>>
> >>>
> >>> 2012-02-10 16:38:57.396 mythbackend: Running housekeeping thread
> >>> 2012-02-10 16:39:28.000 MainServer::ANN Playback
> >>> 2012-02-10 16:39:28.002 adding: QMHTPC-1 as a client (events: 0)
> >>> 2012-02-10 16:39:28.005 MainServer::ANN Monitor
> >>> 2012-02-10 16:39:28.016 adding: QMHTPC-1 as a client (events: 1)
> >>> 2012-02-10 16:39:28.019 Reschedule requested for id -1.
> >>> 2012-02-10 16:39:29.434 Scheduled 144 items in 1.4 = 0.02 match +
1.37 place
> >>> 2012-02-10 16:39:29.441 scheduler: Scheduled items: Scheduled 144
> >>> items in 1.4 = 0.02 match + 1.37 place
> >>> 2012-02-10 16:40:07.397 AutoExpire: CalcParams(): Max required Free
> >>> Space: 1.0 GB w/freq: 15 min
> >>> 2012-02-10 16:42:51.110 MainServer::ANN Monitor
> >>> 2012-02-10 16:42:51.111 adding: QMHTPC-1 as a client (events: 2)
> >>> 2012-02-10 16:42:51.600 MainServer::ANN Monitor
> >>> 2012-02-10 16:42:51.606 adding: QMHTPC-1 as a client (events: 2)
> >>> 2012-02-10 16:45:02.602 MainServer::ANN Monitor
> >>> 2012-02-10 16:45:02.606 adding: QMHTPC-1 as a client (events: 2)
> >>> 2012-02-10 16:55:07.627 AutoExpire: CalcParams(): Max required Free
> >>> Space: 1.0 GB w/freq: 15 min
> >>>
> >>> So I suspect that the scheduler is keeping it awake but I am not sure
> >>> which settings I may have messed up. The information I have found
> >>> online seems to indicate an issue with the EIT grabber but I am not
> >>> using EIT, I am using Schedules Direct. I am using mythTV version
> >>> "fixes/0.24 [v0.24-243-g9ba3ece]".
> >>>
> >>> I've reduced the idle timeout to 600 secs and the idle wait for
> >>> recording time to 20 minutes but cannot seem to be able to get ahead
> >>> of the scheduler or the housekeeping thread. The permissions for
> >>> executing the shutdown script and setting the time on the RTC are
> >>> correct, every once in a loooong while the machine seems to reach the
> >>> idle timeout and it does shutdown, but it takes weeks some times.
> >>>
> >>> I've tried looking for information on the AutoExpire, Scheduled items
> >>> and housekeeping messages to try to track them down but have not had
> >>> much luck. Am I even on the correct track or might there be another
> >>> issue?
> >> You've explicitly disabled EIT on the Video Source using Schedules
> >> Direct data (in mythtv-setup)?
> > Yes, I have only one Video Source configured (Schedules Direct) with
> > the "Perform EIT Scan" box unchecked, and I have both of my input
> > connections (2 tuners on my HDHR) tied to this Video Source.
>
> And don't have other Video Sources with EIT enabled (even if not
> connected), right?
>

Correct, there is only one declared.

> Anyway, reschedules should occur:
>
> a) any time someone runs mythfilldatabase
> b) any time someone changes a recording rule
> c) any time a recording starts or finishes
> d) any time a recording is deleted
> e) every 5 minutes for EIT users
>

Well, is there a way to tell which of these events might be the one queuing
the scheduler? Is there a way to increase the verbosity of the log messages
and would that be helpful? I have tried to relate the messages with the
event but I don't know enough about the meaning of the messages to make
sense of them. I just noticed that my eit crawler timeout is set to 3600.
It is a big value but not sure if there is a number that marks it as
disabled at all.

> You could see if EIT is involved by checking when these "overactive
> scheduler" runs occur.
>

Right, well the thing is that I can't find a steady pattern. And which of
all the messages would be related to the eit? Is it the ANN monitor, the
housekeeping.... The messages don't seem to happen on a regular schedule.

> > I did find this snippet in my backend log from earlier in the month
> > when it was still set to look for an idle time of 840 seconds. It
> > seems it really thought it would shut down but got interrupted:
> >
> > 2012-02-04 17:36:39.516 Seem to be woken up by USER
> > 2012-02-04 17:36:44.610 mythbackend: Running housekeeping thread
> > 2012-02-04 17:36:51.324 MainServer::ANN Playback
> > 2012-02-04 17:36:51.333 adding: QMHTPC-1 as a client (events: 0)
> > 2012-02-04 17:36:51.336 MainServer::ANN Monitor
> > 2012-02-04 17:36:51.353 adding: QMHTPC-1 as a client (events: 1)
> > 2012-02-04 17:36:59.528 I'm idle now... shutdown will occur in 840
seconds.
> > 2012-02-04 17:37:54.610 AutoExpire: CalcParams(): Max required Free
> > Space: 1.0 GB w/freq: 15 min
> > 2012-02-04 17:38:50.360 MainServer::ANN Playback
> > 2012-02-04 17:38:50.361 adding: QMHTPC-1 as a client (events: 0)
> > 2012-02-04 17:38:50.364 MainServer::ANN Monitor
> > 2012-02-04 17:38:50.365 adding: QMHTPC-1 as a client (events: 1)
> > 2012-02-04 17:40:37.968 MainServer::ANN Playback
> > 2012-02-04 17:40:37.970 adding: QMHTPC-1 as a client (events: 0)
> > 2012-02-04 17:40:37.972 MainServer::ANN Playback
> > 2012-02-04 17:40:37.973 adding: QMHTPC-1 as a client (events: 0)
> > 2012-02-04 17:40:37.974 MainServer::ANN Monitor
> > 2012-02-04 17:40:37.976 MainServer::ANN Monitor
> >
>
> FWIW, reports suggest that MythWelcome fails to allow shutdown.
>
> http://code.mythtv.org/trac/ticket/10114
> http://www.gossamer-threads.com/lists/mythtv/users/496118#496118
>
> Mike
>

I will take a look at this.  I don't remember enabling mythwelcome but
certainly something I can check.

-Marco

_______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120211/ecb6fff1/attachment.html 


More information about the mythtv-users mailing list