Assume unchanged on startup


#1

Hello there,

this is a feature suggestion: It would be great to have an option like “assume files unchanges on startup”.

In my case i have to restart my computer often and i have a large amount of folders and data.

So currently every time i restart my computer:

  1. no files are ever changed while syncthing is off
  2. after startup syncthing re-scanns all folders & data
  • which takes long
  • and uses power
  • and strains the HDD
  • and makes my PC slow
  • and due to #1 is completely unnecessary

Thus could you add an option: “assume data unchanged on startup”?

It might be a general option, or per folder option.

Thanks in advance! And thanks for your great work with synthing. I love it :heart:

Happy holidays!


(Audrius Butkevicius) #2

Newer versions of syncthing has the option to linierize scans (maxScans or something like that), as in, scan only a single folder at a time, in which case if nothing actually changed (nothing needs to be scanned and we only need to check metadata), the scans should happen much faster as there is no disk thrashing.


#3

Thanks for your reply.

Which version? i have v0.14.54, Windows (64 bit)

Where is the option? Exact name? I couldn’t find it.

Thanks!


(Catfriend1) #4

I recall this will come with 0.14.55?


#5

Ok, but even scanning meta data takes 1 hour in my case since i have so many files.
Most folders complete pretty fast, but one is extremely big:
969.230 files 26.035 dirs ~139 GiB

So my feature request still remains: :slight_smile:

Assume nothing changed on startup.


(Audrius Butkevicius) #6

It will scan sooner or later anyway, so I don’t think this will happen as a feature. Scanning if nothing has changed is a cheap operation and should not take an hour, it takes less than a minute for millions of files, and the fact that it takes an hour means things have changed or something else is wrong.


(Simon) #7

Either here in the forum or on github there recently was the proposal to save the time of the last rescan, meaning no initial scan unless the next scan is already in the past.


#8

This sounds like a great idea!

Here is my scenario:

  • Slow PC
  • Run by my mom
  • Syncthing running on startup
  • She turns on the PC
  • It gets really slow and runs hot
  • To remedy it she restarts the PC
  • Syncthing restarts scanning all files - cycle restarts from the beginning

With this option like @imsodin said it would simply skip the scan at startup and just run normally - as if it had already scanned all folders - ready to sync.

Then it would be like this:

  • Mommy restarts PC
  • Syncthing starts up, but does not do much
  • Mommy is happy because she can use her PC
  • I am happy because Syncthing does its thing :slight_smile:
  • And you can be happy, since you made us happy :wink:

Wouldn’t that be great!? :smile:


(Jakob Borg) #9

This would only be a thing if you’re running without fs notifications, though. If notifications are enabled we might have missed some while we were not running, and should do a full scan on startup regardless.


#10

Hello Jakob,

that’s exactly what i am asking for. I don’t mind if i missed a few changes for the benefit of system stability and usability and not over-using the hardware too much.

Eventually each folder will be rescanned and changes will be picked up anyway.

But it would drastically improve my mentioned scenarios.

BTW most of my folders change seldomly. And i can keep track of improtant changes myself and trigger a manual rescan if needed at any time.

Greetings Fred;