[mythtv-users] Excessive disk usage in remotecache on Raspberry Pi

Curtis Gedak gedakc at gmail.com
Fri Dec 2 17:45:16 UTC 2016


Hi Peter

On 2016-12-02 10:18 AM, Hika van den Hoven wrote:
> Hoi Peter,
> 
> Friday, December 2, 2016, 5:16:02 PM, you wrote:
> 
>> One of my raspberry Pi's started acting strangely a few days ago and I
>> found it had run out of disk space.
> 
>> The raspberry Pi disk is an 8 GB SD card.
> 
>> I found that the directory ~/.mythtv/cache/remotecache was using 1.2 GB.
>> On a normal frontend this may not be an issue but on a Raspberry Pi with
>> only 8 GB available this can be a problem. This directory has many files
>> with names like 3707_20161124170000.ts.png.
> 
>> Can anybody tell me if this directory ever gets cleaned up by the system
>> or will it go on increasing forever. Do those files get deleted when the
>> relevant recording is deleted?
> 
>> Peter
> 
> If I look at that directory on one of my rarely used frontends I guess
> not, with 3247 items counting 252.7 Mb with the oldest file from May
> 2014. If I clear it, start the frontend and enter the recordings list
> it fills with the previews for the 8 shows shown and the date is the
> current date. So that one seems to be not cleared for over 2 1/2 year.
> The funny thing is those previews are not even used as those 8 all
> have metadata showing! ;-) ?
> 
> Tot mails,
>   Hika                            mailto:hikavdh at gmail.com
> 
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
> 
> De lerende Mens
> 


On my Mythbuntu 14.04 combined frontend/backend with MythTV fixes/0.27
(v0.27.4-4-gb305e65), I also have a large number of files in a similar
~/.mythtv/remotecache directory.

There are 2336 files dating back to the PVR setup in October 2014.
These files are named similar to the following example:

$ ls -l
<snip>
-rw-rw-r-- 1 pvr pvr  56524 Oct 25  2014 1021_20141025222900.mpg.png

I did not observe any files in the form *.ts.png.  My recording are all
Over-The-Air via a homemade antenna.

Total space used:

$ du -sk remotecache/
175436  remotecache/

So even on a combined frontend/backend it would appear that the
remotecache directory does not purge all relevant files when a recording
is deleted.

Curtis


More information about the mythtv-users mailing list