pipelka / vdr-plugin-xvdr

DISCONTINUED - XVDR Plugin for VDR
GNU General Public License v2.0
43 stars 22 forks source link

Permamently harddisk activities with XVDR plugin #96

Closed dreasb closed 11 years ago

dreasb commented 11 years ago

The XVDR plugin writes always into the file channelcache.data. Therefore a channelcache.bak file will be created and deleted afterwwards. The periodic timespan is a few seconds, so that my hard drive will never switch to standby mode.

As a proposal: Make it possible to configure the channelcache.data file. So I can move the directory to my ramdisk or move the channelcache.data file to a temp directory like /var/tmp. From my point of view it is not a good idea to keep tmp files in the configuration directory /etc/vdr/plugin/xvdr/...

Tested with:

pipelka commented 11 years ago

Yes. The channel cache file is written every minute (with a connected client). But this is not a temporary file, its an autogenerated configuration file (like channels.conf). It contains channel and stream information to speedup switching times. I could change the code to write it only if there are changes and / or increase the interval (afaik, the channels.conf is written every 10 minutes).

dreasb commented 11 years ago

Can you move the temporary file to the tmp folder? I believe the interval is not the problem and the iterative check if the file was modified is not necessary. My tmp folder is mounted to a ramdisk folder.

pipelka commented 11 years ago

I just found that VDR also defines a "cache" directory. Would this be an option ?

dreasb commented 11 years ago

You mean /var/cache/vdr? Yes this is a good option

pipelka commented 11 years ago

Ok. I'll move it into the cache directory.