NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: syncthing: too many open files?



David Brownlee <abs%absd.org@localhost> writes:

> On Sat, 26 Aug 2023 at 09:37, nia <nia%netbsd.org@localhost> 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 :)

This is consistent with my fuzzy memory.

> I'm sure there used to be a MESSAGE.NetBSD for this a while back :-p

cvs says no, and that would have been wrong anyway.

This is not a pkgsrc problem.  The same thing would happen to anyone
building syncthing from upstream sources on NetBSD.  An upstream bug
report is in order, both to document and to default watch off, or to
dynamically flip it off on running out of fds or something.

Also perhaps files/README-NetBSD installed in $docdir/syncthing to
remediate upstream docs, with a link to the upstream bug reports.




Home | Main Index | Thread Index | Old Index