Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3047 closed Bug (fixed)

Periodic disk access in idle state

Reported by: elmer91 Owned by: jch
Priority: Normal Milestone: 1.93
Component: libtransmission Version: 1.80
Severity: Normal Keywords:
Cc: jch@…, 1100101@…

Description

Since version 1.80, transmission is doing disk access every half an hour even in idle state.

With no torrent at all (empty queue: 0 paused, 0 seeding, 0 downloading) transmission is doing disk access periodically. When running on an embedded system it prevents disks from sleeping down.

Disks were perfectly sleeping with versions 1.76 and lower.

I located the new feature responsible of this: It related to IPV6 and DHT.

It comes from function tr_globalIPv6 (net.c)

This functions calls tr_globalAddress (net.c) to guess our IPV6 internal address. This is done by binding a UDP socket to an external IPV6 address (www.transmissionbt.com or www.ietf.org).

Name resolution performed for these external addresses causes parsing of /etc/hosts file and prevents disks from sleeping.

It could be fixed different ways:

  • Caching external IPV6 addresses used
  • Using static external IPV6 addresses for binding interfaces
  • Assuming IPV6 is not used after several unsuccessfull tries

Attachments (1)

0001-Don-t-use-named-hosts-when-determining-our-global-ad.patch (3.8 KB) - added by jch 13 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by elmer91

  • Version changed from 1.91 to 1.80+

comment:2 Changed 13 years ago by charles

  • Cc jch@… added

cc'ing the resident ipv6 expert

comment:3 Changed 13 years ago by KyleK

  • Cc 1100101@… added

comment:4 Changed 13 years ago by jch

  • Owner changed from charles to jch
  • Status changed from new to assigned

Yuck.

comment:5 Changed 13 years ago by jch

  • Owner changed from jch to charles
  • Status changed from assigned to new

comment:6 Changed 13 years ago by livings124

  • Keywords backport-1.9x added; disk access removed
  • Milestone changed from None Set to 2.00
  • Version changed from 1.80+ to 1.80

comment:7 Changed 13 years ago by charles

  • Owner changed from charles to jch

fixed in trunk for 2.00 by r10498 by a patch from jch

comment:8 follow-up: Changed 13 years ago by charles

  • Resolution set to fixed
  • Status changed from new to closed

comment:9 in reply to: ↑ 8 Changed 13 years ago by elmer91

Replying to charles:

Tested the fix: working fine !

Thanks to all.

comment:10 Changed 13 years ago by charles

  • Keywords backport-1.9x removed
  • Milestone changed from 2.00 to 1.93

backported to 1.9x by r10570

comment:11 Changed 13 years ago by charles

  • Priority changed from Low to Normal
  • Severity changed from Minor to Normal
Note: See TracTickets for help on using tickets.