[mythtv-commits] Ticket #1835: Gradually delete big files to avoid I/O starvation on some filesystems

MythTV mythtv at cvs.mythtv.org
Sat May 20 21:40:55 EDT 2006


#1835: Gradually delete big files to avoid I/O starvation on some filesystems
---------------------------------------------------------+------------------
 Reporter:  bolek-mythtv at curl.com (Boleslaw Ciesielski)  |       Owner:  ijr 
     Type:  patch                                        |      Status:  new 
 Priority:  minor                                        |   Milestone:      
Component:  mythtv                                       |     Version:  head
 Severity:  medium                                       |  
---------------------------------------------------------+------------------
 The attached patch implements gradual delete of big recordings by
 repeatedly truncating them. On some filesystems (eg. ext3) deleting mutli-
 gigabyte files can take many seconds and cause I/O starvation of real-time
 processes (recording or playback). This patch avoids that by spreading the
 I/O load over time. Deleting a recording is already done asynchronously in
 a separate thread, so it should not matter if it takes longer.

 This new functionality is controlled by a new setting
 "GradualDeleteIncrement" (in the settings table). If the value is positive
 it is used as a chunk size by which to truncate the file in each step. If
 the value is missing or 0 the delete is done in one step (i.e. the
 previous behavior).

 There is no UI to change this setting as I have no skills (or interest) in
 UI programming.

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


More information about the mythtv-commits mailing list