[mythtv-commits] Ticket #6330: [RFC] New ThreadedFileWriter (lockless)

MythTV mythtv at cvs.mythtv.org
Sun Mar 15 19:51:38 UTC 2009

#6330: [RFC] New ThreadedFileWriter (lockless)
 Reporter:  Matthias "mortalmatt" Dahl <devel at mortal-soul.de  |        Owner:  ijr 
     Type:  enhancement                                       |       Status:  new 
 Priority:  minor                                             |    Milestone:  0.22
Component:  MythTV - General                                  |      Version:  head
 Severity:  medium                                            |   Resolution:      
  Mlocked:  0                                                 |  

Comment(by Matthias "mortalmatt" Dahl <devel at mortal-soul.de>):


 - reduced number of branches as far as possible

 - put posix_fadvise() in own thread since it could cause undesirable
 latency spikes

 - changed from using buffer pointers to using buffer positions (simpler)

 - optimizations and some non-critical bug fixes

 The patch should hopefully near its final state now. Since it's been asked
 what to look out for while testing this patch, here a few remarks on that

 - overall performance/behaviour compared to the traditional TFW especially
 under higher system load (device overruns happen faster or don't happen at
 all, ...)

 - even though unlikely because I test every patch quite extensively but no
 one is perfect: corrupted recordings, MythTV hangs related to the TFW, ...

 - everything that can be clearily catagorized as being related to the
 lockless tfw

 By the way, special thanks to Eric Bosch for testing this. It's really

Ticket URL: <http://svn.mythtv.org/trac/ticket/6330#comment:8>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list