I have a two peer setup, one side is Linux and the other is FreeBSD, running 1.18.1. The FreeBSD side is encrypted. The Linux side is the source, which I want to synchronise to the FreeBSD side. The former has the following state:
files dirs size Local State (Total) 358,741 61,967 ~155 GiB
During watching the process I found out that the FreeBSD process has a lot of open file descriptors, which slowly build up during the sync:
procstat -f 21452 721411
From these 721375 are actual files from the synchronised folders.
The open files are all similar:
On the other side, the Linux version keeps very few files open
ls /proc/3344916/fd | wc -l 35
And here no actual synchronised files are open, just the usual stuff (pipes, network etc and the DB files).
Is this related to the FreeBSD port of the encrypted files?