On 2020/11/14 21:02, avv. Nicola Dell'Uomo wrote:
> Hi Stuart,
>
> thank you for your help!
>
> Now it works (almost).
>
> The matter here was that login.conf limits were not high enough.
>
> With my server configuration seafile client opens ~ 43.000 files: I really
> didn't expect such
> an high limit, so I set it to 8192 in login.conf.
>
> Now it works, but it definitely wastes an exaggerate amount of resources.
>
> When I close seafile client, kern.nfiles count drop form ~ 44.000 to ~ 890!
If you have that many files in the monitored directory tree, it's expected.
> Moreover seafile client consume a huge amount of cpu time.
If you have the ports tree installed you can try updating libinotify
- change 20170711 to 20180201 in /usr/ports/devel/libinotify, "make
makesum" and "make update", there are some changes in this that should
reduce memory use and I think maybe also reduce cpu load. If there are
problems or it doesn't help then revert to the version in packages
("pkg_add -r -D downgrade libinotify").