# Optimizing Rescan Interval setting

**URL:** https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200
**Category:** Support
**Created:** [October 19, 2014, 11:31pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200 "2014-10-19T23:31:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![NickPyz](https://forum.syncthing.net/user_avatar/forum.syncthing.net/nickpyz/32/4025_2.png) [@NickPyz](https://forum.syncthing.net/u/NickPyz)
#### Post date: [October 19, 2014, 11:31pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/1 "2014-10-19T23:31:47Z")

</div>

I notice that the default setting is interval =60. In the latest Android port, it’s now set at 0. And the setting is configurable on any device.

So here’s a couple of questions:

Can anyone suggest an algorithm or some approach based on logic for users who wish to optimize cluster performance based on tweaking the rescan rate on each connected device? I am sure it depends on a lot of factors - but which factors - and then what?

Thank you.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [October 20, 2014, 11:22am UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/2 "2014-10-20T11:22:31Z")

</div>

It’s all down to how quickly you want your file changes to be picked up. The scan time is based on your CPU speed + disk speed + number of files you have. The slower the CPU or the slower the storage or the more files you have, it would make sense to increase the interval, that as a result will make file changes pick up more slowly, but at least it will not melt your machine.

---

<div class="post-metadata">

### Author: ![johntdyer](https://forum.syncthing.net/user_avatar/forum.syncthing.net/johntdyer/32/583_2.png) [@johntdyer](https://forum.syncthing.net/u/johntdyer)
#### Post date: [November 6, 2014, 9:24pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/3 "2014-11-06T21:24:35Z")

</div>

btsync is able to pick up changes using fsnotify ( [link](http://forum.bittorrent.com/topic/26049-how-to-make-bittorrent-sync-really-real-time/) ) is that not supported by Syncthing?

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [November 6, 2014, 10:20pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/4 "2014-11-06T22:20:01Z")

</div>

Out of the box, No because [https://github.com/syncthing/syncthing/issues/9](https://github.com/syncthing/syncthing/issues/9) TL;DR there is no portable way for all platforms.

You can run 3rd party tools:

> **[syncthing/syncthing-inotify](https://github.com/syncthing/syncthing-inotify)**
>
> File watcher intended for use with Syncthing (Linux, BSD, Windows, OSX) - syncthing/syncthing-inotify

And run set rescan interval to 0.

---

<div class="post-metadata">

### Author: ![soichih](https://forum.syncthing.net/user_avatar/forum.syncthing.net/soichih/32/5299_2.png) [@soichih](https://forum.syncthing.net/u/soichih)
#### Post date: [February 24, 2016, 9:57pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/5 "2016-02-24T21:57:06Z")

</div>

> there is no portable way for all platforms.

Is it possible to use inotify or similar mechanism _if_ it’s available? 60 seconds on my linux machine is way too big, but I don’t know how lower I can make it.

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [February 24, 2016, 10:10pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/6 "2016-02-24T22:10:30Z")

</div>

Use syncthing-inotify, as linked above.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [May 12, 2017, 1:08pm UTC](https://forum.syncthing.net/t/optimizing-rescan-interval-setting/1200/7 "2017-05-12T13:08:46Z")

</div>


