Linux Mint Mate 17.3, ASUS Q533 laptop, i7 processor with 4 cores. Syncthing v0.12.24, also syncthing-GTK v0.8.3. I am syncing to folders on another Linux Mint Mate with 16 cores.
I am starting to sync 100 GB of files. I am 10% done. Only 1 of 4 possible cores are being used. I would like at least 3 of them to be processing during this initial sync. I set my “Startup applications” to include GOMAXPROCS just to see if that would make a difference. Still only 1 processor being used. Here is my startup script:
I am thinking that there may be something wrong with my syncthing installation or settings, on both laptops. I may have corrupted something along the line by playing with various settings. I vaguely remember setting something, somewhere to use only 1 core but I’m not sure when or where that was.
I have one other laptop that is syncing a different set of folders and it also has the same problem. This problem occurs whether the laptops are on the LAN with the originating folders, or at a remote location.
Can you think of anything to try?
I have thought about uninstalling Syncthing and Syncthing-GTK, removing all configurations, then reinstalling them. Can I keep the two synced folders and the .stfolder for each when I do that? Or should I get rid of the .stfolder on the machine that is not fully synced? Do I have to start my syncing all over by deleting the existing folders along with the .stfolder?
It depends on what it’s doing, too. Hashing (when scanning) will use more than one core - by default all of them (on Linux). If transferring data and the bottle neck is the TLS crypto, that’s not parallelizable so one core is all it can use. Other things fall somewhere in between those in the spectrum…
Thank you all for your help. I learned a lot. I also learned while troubleshooting that my problem was from an errant VPN that was using 100% of one cpu. Once I got rid of that problem Syncthing showed it was sharing the cpu’s properly and the syncing increased in speed.
What I learned was to research the cause of 100% cpu usage, rather than assume it was the latest program I installed.