Page 1 of 1

[Answered] ".resume" files and stats.json file

Posted: Tue Jan 25, 2011 3:00 pm
by theone
Hello,

I am running transmission of a flash drive and have found out lately that the flash drive is being written to about 500 time/hour (12000 times a day !!!) - Only 1 torrent being downloaded.
This can cause early death of the flash drive.

This happens only during torrent download.

The files being changed constantly are the "stats.json" file and the torrent ".resume" files.

Is it possible to disable the stats.json update altogether?

What is being saved in the ".resume" files? Can this be disabled?

Thank you

Re: ".resume" files and stats.json file

Posted: Tue Jan 25, 2011 4:06 pm
by Rolcol
The saving of stats.json can't be disabled, AFAIK (without modifying the source). .resume files hold everything Transmission knowns about the torrent. It saves a cache of peers, the status of each piece, the location of the data, speed limits and other preferences, etc. .resume files are important for the operation of Transmission.

Re: ".resume" files and stats.json file

Posted: Thu Jan 27, 2011 1:13 am
by Jordan
There's not a built-in setting for this, but it would be pretty easy for you to change this in the source code if you want to rebuild Transmission. In libtransmission/session.c, around line 50 or so, there's a constant named "SAVE_INTERVAL_SECS" that's currently set to 360, but you could change that to a much higher value, say once per hour or once per day...