Lines Matching defs:maxusers
72 #define NPROC (20 + 16 * maxusers)
77 #define MAXFILES (40 + 32 * maxusers)
87 int maxusers; /* base tunable */
281 maxusers = MAXUSERS;
282 TUNABLE_INT_FETCH("kern.maxusers", &maxusers);
283 if (maxusers == 0) {
284 maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE);
285 if (maxusers < 32)
286 maxusers = 32;
288 if (maxusers > VM_MAX_AUTOTUNE_MAXUSERS)
289 maxusers = VM_MAX_AUTOTUNE_MAXUSERS;
292 * Scales down the function in which maxusers grows once
295 if (maxusers > 384)
296 maxusers = 384 + ((maxusers - 384) / 8);
301 * unless overridden, these macros are ultimately based on maxusers.
315 * physical page but not less than 16 times maxusers.