Why is scanning so slow?

I installed Syncthing on a Synology NAS DS1812+, Intel Atom D2700, 2.13Ghz, 2 cores, 4GB memory. Estimated scanning of a folder containing 35,000 photos will take over 1 month! What is it doing during scanning that would take so long?

https://docs.syncthing.net/users/faq.html#why-is-the-sync-so-slow

Based on the hardware spec (low-end CPU from 2011, so no modern x86 extensions plus low IPC) the device is probably having a hard time hashing the files.

2 Likes

In addition to what @Nummer378 already said…

Via Syncthing’s web UI, check the first few lines of the runtime log found under the Actions → Logs menu option. Syncthing runs a hashing benchmark at startup for gauging what to expect in terms of performance.

What’s the total byte count of the photos? Higher resolution photos usually mean larger files, which then takes more time to hash.

If the 35,000 photos are all in a single folder, it will also cause additional system load. General rule of thumb is to keep it under 10,000 files per folder depending on the filesystem, CPU, RAM and storage speed (search this forum for earlier posts on this topic).

Note that the Intel Atom D2700 was designed for budget desktop PCs and set top boxes instead of servers (the “D” is short for “Desktop”). Paired with a motherboard from 2012 (the “12” in “DS1812+” is the model year), you’ll likely have to spend time tuning to squeeze out every ounce of speed. So in addition to the FAQ, also check out Syncthing’s Configruation Tuning page for tips that might help improve performance.

(I’ve got a DIY NAS from 2011 equipped with an AMD Turion N54L CPU that’s about 2x faster than the Atom D2700, so getting Syncthing working reasonably well on the DS1812+ might require some compromises – e.g. grouping photos into smaller folders.)

3 Likes