kernel - Increase worst-case maximum exec rate
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2016 00:49:04 +0000 (16:49 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2016 01:07:21 +0000 (17:07 -0800)
commit8cdef6cbcc73174e567af3341631ec8fa492796a
tree42c70349327a2a366a5fc0b5c5b7b1f973643c4f
parent9bf8c20b5096f25771bdca032467944645af1d34
kernel - Increase worst-case maximum exec rate

* The pid reuse algorithm limits the maximum fork rate.  This limit
  was set too low.  Increase the limit from 10000/sec to 100000/sec.
  Currently our opteron maxes out at 43000/sec.

  Note that with 999999 pids and a 10-second mandatory reuse time
  floor there isn't much of a point increasing the limit beyond
  100000/sec.

  100,000/sec.  Currently our opteron maxes out at around
  43,000/sec (vfork/exec/wait3/exit of a small static binary).

* The domain reuse array was increased to 1MB to accomodate this
  change.  In addition, update the array in a cache-friendly manner.

* Modify test/sysperf/exec1 to take a nprocesses argument for the
  timing run.
sys/kern/kern_proc.c
test/sysperf/exec1.c