Lines Matching defs:maxusers
74 #define NPROC (20 + 16 * maxusers)
79 #define MAXFILES (40 + 32 * maxusers)
88 int maxusers; /* base tunable */
236 maxusers = MAXUSERS;
237 TUNABLE_INT_FETCH("kern.maxusers", &maxusers);
238 if (maxusers == 0) {
239 maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE);
240 if (maxusers < 32)
241 maxusers = 32;
243 if (maxusers > VM_MAX_AUTOTUNE_MAXUSERS)
244 maxusers = VM_MAX_AUTOTUNE_MAXUSERS;
247 * Scales down the function in which maxusers grows once
250 if (maxusers > 384)
251 maxusers = 384 + ((maxusers - 384) / 8);
256 * unless overriden, these macros are ultimately based on maxusers.
270 * physical page but not less than 16 times maxusers.