[mythtv-commits] Re: Ticket #551: blocking in ThreadedFileWriter

MythTV mythtv at cvs.mythtv.org
Sun Nov 13 16:38:13 EST 2005


#551: blocking in ThreadedFileWriter
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  danielk 
     Type:  defect     |       Status:  assigned
 Priority:  critical   |    Milestone:  0.19    
Component:  mythtv     |      Version:  head    
 Severity:  medium     |   Resolution:          
-----------------------+----------------------------------------------------
Comment (by anonymous):

 I'm running an athlon 2500XP, and I couldn't find a -e option that worked,
 so I ran without this command line option.  I'm not sure what to make of
 the results though (If this is normal/fine or not).

 CPU: Athlon, speed 2088.63 MHz (estimated)

 Just as a reminder, when blocking is going on, mythbackend is consuming
 99%-100% of the CPU.

 Run 1: 15 seconds while blocking was going on.

 Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit
 mask of 0x00 (No unit mask) count 100000
 samples  %        symbol name

 2        22.2222  QValueList<QString>::detachInternal()

 2        22.2222  QValueListPrivate<QString>::QValueListPrivate()

 2        22.2222
 QValueListPrivate<QString>::insert(QValueListIterator<QString>, QString
 const&)

 1        11.1111  MainServer::qt_invoke(int, QUObject*)

 1        11.1111  QValueListPrivate<QString>::~QValueListPrivate()

 1        11.1111  std::basic_stringbuf<char, std::char_traits<char>,
 std::allocator<char>
 >::_M_really_sync(unsigned int, unsigned int)

 <EOF> .. so in 15 seconds myth only made these 6 calls it appears...


 Run2: ~5 minute run with blocking happening during the run, but not the
 entire time.

 samples  %        symbol name

 110      36.6667  Scheduler::RunScheduler()

 40       13.3333  QValueList<QString>::detachInternal()

 31       10.3333
 QValueListPrivate<QString>::insert(QValueListIterator<QString>, QString
 const&)

 27        9.0000
 QValueListPrivate<QString>::QValueListPrivate(QValueListPrivate<QString>
 const&)

 26        8.6667  QValueListPrivate<QString>::~QValueListPrivate()

 <SNIP>


 Run 3: I left this running for a couple hours, blocking occured during
 this run, but not the entire time.

 samples  %        symbol name

 1132     28.4637  Scheduler::FindNextConflict(std::list<ProgramInfo*,
 std::allocator<ProgramInfo*> >&, ProgramInfo*,
 std::_List_iterator<ProgramInfo*, ProgramInfo*&,
 ProgramInfo**>&)

 620      15.5896  Scheduler::AddNewRecords()

 240       6.0347  void std::list<ProgramInfo*,
 std::allocator<ProgramInfo*> >::merge<bool
 (*)(ProgramInfo*, ProgramInfo*)>(std::list<ProgramInfo*,
 std::allocator<ProgramInfo*> >&, bool (*)(ProgramInfo*, ProgramInfo*))

 175       4.4003  Scheduler::MarkShowingsList(std::list<ProgramInfo*,
 std::allocator<ProgramInfo*> >&, ProgramInfo*)

 131       3.2939  void std::list<ProgramInfo*,
 std::allocator<ProgramInfo*> >::sort<bool (*)(ProgramInfo*,
 ProgramInfo*)>(bool (*)(ProgramInfo*, ProgramInfo*))

 <SNIP>

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


More information about the mythtv-commits mailing list