[mythtv-commits] Ticket #2364: Increase sleep_time in truncate-delete patch to accomodate remote mounts

MythTV mythtv at cvs.mythtv.org
Mon Sep 11 04:53:00 UTC 2006


#2364: Increase sleep_time in truncate-delete patch to accomodate remote mounts
----------------------------+-----------------------------------------------
 Reporter:  ylee at pobox.com  |       Owner:  ijr 
     Type:  defect          |      Status:  new 
 Priority:  minor           |   Milestone:      
Component:  mythtv          |     Version:  head
 Severity:  medium          |  
----------------------------+-----------------------------------------------
 As someone who uses a NAS that uses EXT3 (which can't be changed) to store
 his MythTV recordings, I'm looking forward to the truncate-deletion patch
 to go live as part of 0.20. However, in my experience when using various
 iterations of it on my 0.19-fixed system, sleep_time in mainserver.cpp
 needs to be significantly increased for those of us with remotely-mounted
 recording directories. That is,

      const size_t sleep_time = 500;

 should be

      const size_t sleep_time = 10000;

 This is because the initial latency with any remote writes (at least on my
 Infrant ReadyNAS 600) is fixed. Any deletion between 0K and about 1GB or
 so take about the same amount of time, about two seconds or so. After
 about 1GB, the elapsed times increase linearly based on the size of the
 file being deleted, but the initial latency remains. Thus, depending on
 the remote filesystem being able to properly respond to repeated
 truncations each one half-second apart is not practical.

 Enlarging sleep_time to 10000 (ten seconds) should a) be more than
 sufficient to take care of the initial network latency and will b) still
 truncate at the same pace (e.g., 4MB every one-half second is the same as
 80MB every ten seconds).

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


More information about the mythtv-commits mailing list