I am using FreeFileSync v13.0 portable via a Windows batch file to sync several different directory pairs on multiple drives (3+). I am using a generic .FFS_BATCH configuration file which is common for all the syncing. I have noticed FFS only uses one thread per directory when performing the syncs.
Is it possible to specify the number for threads to use for each directory (in a directory pair) on the command line? If not, is there a way to specify the default number of threads to be used?
Thanks
Specifying number of threads for directory pairs on the command line
- Posts: 5
- Joined: 26 Sep 2023
-
- Posts: 4866
- Joined: 11 Jun 2019
There doesn't seem to be a command line parameter for that:
https://freefilesync.org/manual.php?topic=command-line
The thread settings are saved within the config though, so change them in the gui and resave the config
https://freefilesync.org/manual.php?topic=command-line
The thread settings are saved within the config though, so change them in the gui and resave the config
- Posts: 5
- Joined: 26 Sep 2023
Thanks for the response. I should have mentioned I did set the thread count in the config. However, when you call FFS with the config file and -DirPair, the thread count gets reset to 1.
It would be nice to specify it on the command line but a default setting would be great. In fact, both would be even better (hint, hint).
I could create separate config file but that lacks flexibility.
So, how do I request Zenju add specifying the thread count via the command line and a default setting for thread counts.
It would be nice to specify it on the command line but a default setting would be great. In fact, both would be even better (hint, hint).
I could create separate config file but that lacks flexibility.
So, how do I request Zenju add specifying the thread count via the command line and a default setting for thread counts.
-
- Posts: 4866
- Joined: 11 Jun 2019
Make sure the thread counts are set up correctly. If one folder is set to 10 threads and the other is still set to 1, it will still only allow 1 thread to that folder across ALL folder pairs.
https://freefilesync.org/manual.php?topic=performance
https://freefilesync.org/manual.php?topic=performance
- Posts: 5
- Joined: 26 Sep 2023
Since I am syncing across SSDs, I set the thread count to 8 for all folders. For example, the config file is set with 8 threads for X:\ and 8 threads for Y:\ (where X and Y are place holders). The actual command line is:
FreeFileSync.exe Common.ffs_batch -DirPair "%USERPROFILE%" "D:\"
Since neither "%USERPROFILE%" nor "D:\" is in the config, the thread count is reset to 1.
All the calls to FreeFileSync in the batch file(s) have different -DirPair folder pairs. This is why I am requesting a method for setting the thread count on the command line or a default setting in the global config.
I can envision the thread count being specified as part of the -DirPair on the command line. Something like
FreeFileSync.exe Common.ffs_batch -DirPair "16,%USERPROFILE%" "16,D:\"
By putting the thread count at the beginning, you can strip it off easily with the remaining being the folder.
FreeFileSync.exe Common.ffs_batch -DirPair "%USERPROFILE%" "D:\"
Since neither "%USERPROFILE%" nor "D:\" is in the config, the thread count is reset to 1.
All the calls to FreeFileSync in the batch file(s) have different -DirPair folder pairs. This is why I am requesting a method for setting the thread count on the command line or a default setting in the global config.
I can envision the thread count being specified as part of the -DirPair on the command line. Something like
FreeFileSync.exe Common.ffs_batch -DirPair "16,%USERPROFILE%" "16,D:\"
By putting the thread count at the beginning, you can strip it off easily with the remaining being the folder.
-
- Posts: 4866
- Joined: 11 Jun 2019
Oh I see! You are adding pairs at runtime... You are correct then, there is not a current solution I can think of
- Posts: 5
- Joined: 26 Sep 2023
Yeah, I found out. Hence, the query. Is there an easy way to convert my query to an feature enhancement?
-
- Posts: 4866
- Joined: 11 Jun 2019
Edit the title to start with 'Feature request'
The dev is very active though and will probably see it even without changing that
The dev is very active though and will probably see it even without changing that