Lines Matching refs:maxusers
76 #define NPROC (20 + 16 * maxusers)
81 #define MAXFILES (40 + 32 * maxusers)
90 int maxusers; /* base tunable */
238 maxusers = MAXUSERS;
239 TUNABLE_INT_FETCH("kern.maxusers", &maxusers);
240 if (maxusers == 0) {
241 maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE);
242 if (maxusers < 32)
243 maxusers = 32;
245 if (maxusers > VM_MAX_AUTOTUNE_MAXUSERS)
246 maxusers = VM_MAX_AUTOTUNE_MAXUSERS;
249 * Scales down the function in which maxusers grows once
252 if (maxusers > 384)
253 maxusers = 384 + ((maxusers - 384) / 8);
258 * unless overriden, these macros are ultimately based on maxusers.
272 * physical page but not less than 16 times maxusers.