[mythtv-commits] Ticket #13072: Schedule busy looping with sched_sleep of 0
MythTV
noreply at mythtv.org
Tue Aug 8 16:19:01 UTC 2017
#13072: Schedule busy looping with sched_sleep of 0
----------------------------------+--------------------------------
Reporter: lucylangthorne55@… | Owner: gigem
Type: Bug Report - General | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------
Comment (by lucylangthorne55@…):
Patch is against 7a1ab5001cb0f9576a913f012fcda773590d6c95 (v29) whereas
original issue was against 0.28.
(I would've mentioned it earlier but I was blocked for an hour as spam for
too many posts).
Looking at the log, it suggests that since we woke at 14:28:56 with a next
start time of 14:30, the HandleRecording doesn't update nextWakeTime since
it always takes the min and 14:28:56 is less than "14:30-preroll of 60
seconds" for the >0 case.
This means we'll always sleep for zero seconds and busy loop.
I'll add a bit more debug and schedule a few more programmes later to see
what else is going on.
I don't know if the logic of the reclist allows us to
unlock/sched_yield/relock the mutex each time around the doRun loop to
give the frontend/mythweb a chance of grabbing the mutex so they don't get
blocked for the few minutes.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13072#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list