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

Discussion of Transmission that doesn't fit in the other categories
Locked
theone
Posts: 1
Joined: Tue Jan 25, 2011 2:44 pm

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

Post 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
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

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

Post 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.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

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

Post 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...
Locked