NetBSD-Users archive

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

Re: syncthing: too many open files?



nia <nia%NetBSD.org@localhost> writes:

> 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).

I have a directory (including .stfolder and .stignore):

  11G total
  6007 files
  301 directories

and it was working fine on 9 a week ago.  (I have not yet started
syncthing on 10 with a new layout and move to zfs because I feel I need
extra backups first, probably unjustified fear.)

I remember this happening, but not super clearly.  I dimly remember
turning off some watch options and leaving it at periodic scan, and also
that this used to not be an issue but then maybe a feature appeared.  I
think there is a code path that instead of inotify uses kqueue and
somehow adds every file.




Home | Main Index | Thread Index | Old Index