Hello! I have syncthing transferring files from a folder on my server to a mirror at home. Server is FreeBSD 12 (syncthing v 1.0.0) and mirror is Ubuntu 18.04 (syncthing v1.1.1 64bit). I’m seeing excessive RAM usage on FreeBSD.
The data being synced is 125 GB, 1,319 files and 136 folders. Syncthing was running for a day or so on the FreeBSD machine, using about 85M of RAM for the main process (another process uses 32M and that one doesn’t seem to change). It didn’t have any changes to transfer during that time.
I created a new file of about 2GB in size and I saw syncthing using CPU to scan it (or hash it, or whatever it was doing). Then when syncthing started actually transferring the file, the memory usage increased to 216M! On the linux mirror, the web interface shows about 96M of ram usage.
As I type this a few minutes later it still is using 216M. If I restart syncthing on the server, memory use starts at 64M and as I sit here typing this it has slowly increased to 67M – I’m going to predict it will climb to about 80-90M or so then stop. UNLESS it needs to move files again … then I’m not sure how high it will possibly go.
Is this normal? If so, is the option I saw to change garbage collection only a compile-time options? It didn’t seem to work as a run-time option.
Any other suggestions? I’m running the package that FreeBSD 12 has in their repos. Thanks!