Vern
Cadet
- Joined
- Jul 21, 2017
- Messages
- 1
I running a jail(standard) with syncthing[1] and syncthing-inotify[2].
there are more than ten million files, which are watched by syncthing-inotify.
so i really need to increase the default `maxfilesperproc` (also `ulimit -n`).
I found that[3] the `maxfilesperproc` is computed from the `maxusers`.
and `maxusers` is computed(?) from the memory.
I don't know how to increase to `maxusers`(without add more memory).
I have tried these steps,
[ssh@freenas (not the jail)]
----
* echo 'kern.maxusers="4095"' >> /etc/sysctl.conf
reboot, doesn't work
* set kfreebsd.kern.maxusers="4095" in grub.cfg
reboot, doesn't work
* echo 'kern.maxusers="4095"' >> /boot/loader.conf
reboot, doesn't work
At last, i downloaded and installed a real freebsd-11,
test it with `/boot/loader.conf`, it does work!!
So this is really confuse me.
How can i increase the `maxuser` in the freenas[4]?
Sorry for my poor english. thanks for your time.
[1]: https://syncthing.net/
[2]: https://github.com/syncthing/syncthing-inotify
[3]: https://blog.hostileadmin.com/2012/11/12/freebsd-computing-kern-maxfilesperproc-and-kern-maxfiles/
[4]: freebsd 11.0-stable (freenas.amd64) #0 r313908+b3722b04944(freenas/11.0-stable)
there are more than ten million files, which are watched by syncthing-inotify.
so i really need to increase the default `maxfilesperproc` (also `ulimit -n`).
I found that[3] the `maxfilesperproc` is computed from the `maxusers`.
and `maxusers` is computed(?) from the memory.
I don't know how to increase to `maxusers`(without add more memory).
I have tried these steps,
[ssh@freenas (not the jail)]
----
* echo 'kern.maxusers="4095"' >> /etc/sysctl.conf
reboot, doesn't work
* set kfreebsd.kern.maxusers="4095" in grub.cfg
reboot, doesn't work
* echo 'kern.maxusers="4095"' >> /boot/loader.conf
reboot, doesn't work
At last, i downloaded and installed a real freebsd-11,
test it with `/boot/loader.conf`, it does work!!
So this is really confuse me.
How can i increase the `maxuser` in the freenas[4]?
Sorry for my poor english. thanks for your time.
[1]: https://syncthing.net/
[2]: https://github.com/syncthing/syncthing-inotify
[3]: https://blog.hostileadmin.com/2012/11/12/freebsd-computing-kern-maxfilesperproc-and-kern-maxfiles/
[4]: freebsd 11.0-stable (freenas.amd64) #0 r313908+b3722b04944(freenas/11.0-stable)