[mythtv-commits] Ticket #11250: Reduce ThreadedFileWriter thread wakeup

MythTV noreply at mythtv.org
Wed Nov 21 23:35:03 UTC 2012


#11250: Reduce ThreadedFileWriter thread wakeup
------------------------------------+----------------------------------
 Reporter:  Rune Petersen <rune@…>  |           Type:  Patch - Feature
   Status:  new                     |       Priority:  minor
Milestone:  unknown                 |      Component:  MythTV - General
  Version:  0.26-fixes              |       Severity:  medium
 Keywords:                          |  Ticket locked:  0
------------------------------------+----------------------------------
 The writer thread will only write in chunks of 'kMinWriteSize' or larger.
 Currently ThreadedFileWriter::Write() will wake up the writer thread every
 time, even if the chunk size condition isn't met.

 The patch changes ThreadedFileWriter::Write() to only wake up the writer
 thread is the chunk size condition is met.

 This reduces cpu usage by ~9% on a 700MHz Cortex-A9 when recording DVB HD
 content.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11250>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list