greentown

BitTorrent Sync and disk spin-down

Recommended Posts

Hi,

I have a problem with btsync triggering my external usb disk to spin up when there is no transfers going on.

I'm using BitTorrent Sync to sync some folders that usually don't change much. I'm running it on a Raspberry pi, Windows and Android. Since the Raspberry pi doesn't consume much power, I leave it on all of the time. However, since there are some days in which the content of the folders don't change at all, I am very interested in getting the USB hard disk connected to the pi to spin-down. The spinning-down works well, I am using a tiny program called hd-idle. The problem is that btsync seems to spin-up the disks every half an hour...

This is an extract of the logs from hd-idle:

date: 2013-07-31, time: 16:30:57, disk: sda, running: 901, stopped: 900

date: 2013-07-31, time: 17:01:00, disk: sda, running: 903, stopped: 900

date: 2013-07-31, time: 17:31:07, disk: sda, running: 907, stopped: 900

date: 2013-07-31, time: 18:01:14, disk: sda, running: 907, stopped: 900

date: 2013-07-31, time: 18:31:21, disk: sda, running: 907, stopped: 900

date: 2013-07-31, time: 19:01:30, disk: sda, running: 908, stopped: 901

date: 2013-07-31, time: 19:31:36, disk: sda, running: 906, stopped: 900

As you can see, the disk is spinning ("running" in the logs) for around 900 seconds. As per the configuration, the disk is spun down after 900 seconds idle, but it only remains so for 900 seconds, when it's awaken by an application. If I stop btsync this behaviour also stops, and the disk sleeps much much longer, so I know that btsync is causing this.

I've tried changing some setting in the config file, specifically I've added the "advanced" option

"folder_rescan_interval" : 86400, but it has not changed anything.

Any ideas to keep btsync from from spinning up my disk every 30 minutes?

Share this post


Link to post
Share on other sites

Hi,

I tried your suggestion and removed the space, but I still get the same behaviour:

date: 2013-08-01, time: 13:19:50, disk: sda, running: 992, stopped: 810

date: 2013-08-01, time: 13:49:52, disk: sda, running: 902, stopped: 900

Yes, I am restarting the daemon each time.

Share this post


Link to post
Share on other sites

I'm using version version 1.1.82 with WD My Book Live and seeing the same behavior. I have folder rescan set to 86400, and i see the settings.dat being accessed every 30 min. I have set the computers that sync with the My Book Live so ssh on login/logout and start/stop the btsync service. That way the My Book Live sleeps ok.

But now I want to use My Book Live to sync with an Android Phone so that won't work anymore.

Share this post


Link to post
Share on other sites

Hi all,

 

This is a known issue. Indeed every ~30 minutes some data is written to disk by BTSync. We plan to optimize it in future releases to make sure it does not wake up HDDs.

Share this post


Link to post
Share on other sites

RomanZ: good to hear that! What about the problem of SyncID and sync.log eing updated almost every second when devices are connected but no data is being copied?
http://forum.bittorrent.com/topic/20072-btsync-inhibits-disk-hibernation-interaction-with-syncid-file

 

When I have no other clients running my MyBookLive spins down and restarts every 30min but otherwise it won't spindown at all.

Share this post


Link to post
Share on other sites

Hi all,

 

This is a known issue. Indeed every ~30 minutes some data is written to disk by BTSync. We plan to optimize it in future releases to make sure it does not wake up HDDs.

 

Any update on this?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.