kernel - Increase flock() / posix-lock limit
commit9c79791a7826bb80b5ddc3e0959294da9af61703
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 14 Aug 2017 06:17:27 +0000 (13 23:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 14 Aug 2017 06:17:27 +0000 (13 23:17 -0700)
treeee8acccf860d2d1c4d9a7d5f93fa270a96226c73
parentc79dbe587684b831fb838f3bb7ce296474e51760
kernel - Increase flock() / posix-lock limit

* Change the scaling for kern.maxposixlocksperuid to be based on maxproc
  instead of maxusers.

* Increase the default cap to approximately 4 * maxproc.  This can lead
  to what may seem to be large numbers, but certain applications might use
  posix locks heavily and overhead is low.  We generally want the cap to
  be large enough that it never has to be overridden.
sys/kern/subr_param.c