Opened 11 years ago

Closed 11 years ago

#3677 closed Enhancement (fixed)

Save .resume files less frequently to avoid excessive disk IO

Reported by: ptr Owned by: charles
Priority: Normal Milestone: 2.13
Component: libtransmission Version: 2.11
Severity: Normal Keywords: resume
Cc:

Description

Transmission save resume files every 2 minutes. Is't possible to configure period between resume saving in settings.json?

Change History (8)

comment:1 Changed 11 years ago by charles

The resume file is saved every two minutes that there have been changes.

Is the interval the problem, or is it the excessive logging that you don't like?

comment:2 Changed 11 years ago by ptr

I haven't problem with logging. I simple use separate log file for transmission-daemon. But resume files have approximately 10MiB for 1ТiB of seeding torrents - near 100KiB per second, or ~20% of all transmission disk activity in my configuration while seeding only or ~10% while seeding and downloading in the same time. For me, 1-2% will looks better ;)

comment:3 Changed 11 years ago by charles

  • Milestone changed from None Set to 2.20
  • Owner set to charles
  • Status changed from new to assigned

comment:4 Changed 11 years ago by x190

I feel the frequent saving to .resume file is essential as too much data is at risk with longer intervals. Logging is non-essential in my opinion.

comment:5 Changed 11 years ago by charles

  • Milestone changed from 2.20 to 2.13

I'm seeing the same kind of situation as ptr is. In my "nightmare test case" configuration directory where I've got 1000+ jamendo/clearbits/linuxtracker/etc. torrents. Once you scale up to that order of magnitude, saving a bunch of .resume files just to log the most recent start/stop date of the torrent is disproportionately expensive.

Long-term, perhaps we should rank the save interval by priority -- changing the start/stop date in the .resume file isn't all that important, but changing which pieces we have is pretty important.

In the short term, I think we could raise the interval from two minutes to (say) five minutes to reflect this balance between massive use and safeguarding against crashes.

comment:6 Changed 11 years ago by charles

  • Component changed from Daemon to libtransmission

comment:7 Changed 11 years ago by charles

  • Summary changed from "transmission-daemon[1199]: Saved "*.resume" (bencode.c:1697)" syslog messages to Save .resume files less frequently to avoid excessive disk IO

The increased interval has been added to trunk for 2.13 by r11496

comment:8 Changed 11 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.