On Sat, 26 Aug 2023 at 09:37, nia <n...@netbsd.org> wrote: > > Has anyone ran into syncthing spamming the following in its log > when faced with a large directory (1402 files, 173 subdirectories, > ~22.8 GiB)? > > Listen (BEP/tcp): Accepting connection: accept tcp [::]:22000: accept4: too > many open files > > It's unable to sync anything. > > kern.maxfiles is 32000, ulimit -n is 3000 (the max it'll let > my user account set).
For anything more than moderate numbers of files you need to disable "Watch for Changes" under the advanced tab for the folder on NetBSD. (I'm using syncthing with > 350,000 files so hit this quite early on :) I'm sure there used to be a MESSAGE.NetBSD for this a while back :-p David