[mythtv-commits] Re: Ticket #551: Scheduler consuming all CPU cycles and disk bandwidth (via mysql).

MythTV mythtv at cvs.mythtv.org
Wed Nov 16 17:36:19 EST 2005


#551: Scheduler consuming all CPU cycles and disk bandwidth (via mysql).
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  gigem
     Type:  defect     |       Status:  new  
 Priority:  critical   |    Milestone:  0.19 
Component:  mythtv     |      Version:  head 
 Severity:  medium     |   Resolution:       
-----------------------+----------------------------------------------------
Comment (by danielk):

 Brandon, can you attach the output of this (just until the initial
 scheduling is done):
 {{{mythbackend -v schedule | grep -B1 "\-\-"}}}
 with and without the problem channels?

 I think the problem might be Scheduler::AddNewRecords(void), it is a
 complicated query with joins on a bunch of non-indexed columns, and it
 takes over 500 ms on my somewhat speedy machine. My guess is that NULLs in
 the joined columns might slow things down even more.

 Also, can you try running mysql niced with the problem channels and tell
 me if that makes any difference?

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/551>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list