[mythtv] [mythtv-commits] Ticket #2242: Recordings not being deleted fast enough

Michael T. Dean mtdean at thirdcontact.com
Sat Aug 26 05:00:17 UTC 2006

On 08/24/06 18:42, MythTV wrote:

>#2242: Recordings not being deleted fast enough
> I noticed my recordings partition was nearly full so deleted several shows
> to make some space. It appears the new gradual file truncation code is too
> gradual because it's not deleting them fast enough.
> I have one DVB channel currently recording. Originally the free space
> looked like this:
>                       150G  144G  6.1G  96% /mnt/recording
> So I deleted several shows as per this (output from lsof):

> Over half an hour later and the free space looks like this:
>                       150G  146G  4.3G  98% /mnt/recording
Even at the minimum delete rate (8MiB/sec), it should clear over 14GiB 
in 30 minutes.

> Looking at the r10235 commit I can see that it is supposed to delete
> faster than the calculated recording rate but this is clearly not working.
> My disk is gradually filling up and soon it will die.
> Unfortunately I have no useful log since I'm not running the backend with
> -v file although I will for next time
I tried to reproduce this issue as a couple of people mentioned it on 
the lists last week, but after about 4 hours of testing (deletes while 
the backend was otherwise idle, while recording, while using "dd 
-if=/dev/zero" to a file on the root partition (with mythbackend/mysql), 
while using the same dd on the recordings partition, and ...), I saw it 
doing just over 8MiB/sec deletes (I only have 2 PVR-x50's with a max 
recording rate of <2500kbps, so it uses the ~8MiB/sec min for my 
system).  I was unable to reproduce the issue and couldn't see any 
problems with the logic in place for determining deletion rate.  So, I 
wrote the issue off as either something outside of Myth causing the 
issue or an invalid test or misinterpretation of the output of df or 
something (especially since the OP in the other thread quoted a deletion 
rate that would match the minimum if he had misinterpreted kilobytes as 

What does your backend log say for:

2006-08-19 20:16:09.740 AutoExpire: Found 2 recorders w/max rate of 144 

Also, if you really want to do a useful test of deletion, (enable 
"Delete files slowly" if you update to r10947+ and then) please 
uncomment the "Truncating '%1' to %2 MB" comment around line 1652 of 
programs/mythbackend/mainserver.cpp before doing the delete.  If you 
want help interpreting the log, feel free to send it to me (off-list--it 
will be large), preferrably bzip'ed or gzip'ed.


More information about the mythtv-dev mailing list