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

MythTV mythtv at cvs.mythtv.org
Sat Nov 12 15:34:52 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 danielk):

 Profiling MythTV backend:
 {{{
  ./configure --compile-type=profile [+ normal options]
  make clean; make
  su
  make install
  opcontrol --deinit ; opcontrol --init
  # assuming Intel P4, the next line is correct, for other CPUs you may
  # may need to count something other than INSTR_RETIRED
  opcontrol --image=/usr/local/bin/mythbackend -e
 INSTR_RETIRED:6000:0x0f:0:1
  /etc/init.d/mythbackend restart
  # now start a recording and wait for bad behaviour, then run the
 following
  opcontrol --reset ; opcontrol --start
  # now wait a minute or two then run
  opcontrol --stop ; opcontrol --dump ; opreport --merge tgid -l --image-
 path=/usr/local/bin > report.txt
  emacs report.txt &
 }}}

 This assumes you have oprofile installed, I'm using version 0.9.1. On my
 machine
 mythbackend only uses a few % of CPU and the highest percentage is used by
 malloc.

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


More information about the mythtv-commits mailing list