Home
last modified time | relevance | path

Searched refs:maxproc (Results 1 – 15 of 15) sorted by relevance

/f-stack/freebsd/kern/
H A Dsubr_param.c94 int maxproc; /* maximum # of processes */ variable
273 maxproc = NPROC; in init_param2()
274 TUNABLE_INT_FETCH("kern.maxproc", &maxproc); in init_param2()
275 if (maxproc > (physpages / 12)) in init_param2()
276 maxproc = physpages / 12; in init_param2()
277 if (maxproc > pid_max) in init_param2()
278 maxproc = pid_max; in init_param2()
279 maxprocperuid = (maxproc * 9) / 10; in init_param2()
H A Dkern_mib.c114 SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
115 &maxproc, 0, "Maximum number of processes");
H A Dkern_thread.c503 maxthread = MIN(maxproc * max_threads_per_proc, 1000000); in threadinit()
505 maxthread = MIN(maxproc * max_threads_per_proc, 100000); in threadinit()
533 tidhashtbl = hashinit(maxproc / 2, M_TIDHASH, &tidhash); in threadinit()
H A Dkern_fork.c904 if (nprocs_new >= maxproc - 10) { in fork1()
906 nprocs_new >= maxproc) { in fork1()
H A Dinit_main.c571 p->p_limit->pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in proc0_init()
H A Dkern_timeout.c283 ncallout = imin(16 + maxproc + maxfiles, 18508); in callout_callwheel_init()
H A Dkern_resource.c1337 uihashtbl = hashinit(maxproc / 16, M_UIDINFO, &uihash); in uihashinit()
H A Dkern_proc.c186 pidhashtbl = hashinit(maxproc / 4, M_PROC, &pidhash); in procinit()
194 pgrphashtbl = hashinit(maxproc / 4, M_PROC, &pgrphash); in procinit()
H A Dvfs_subr.c636 physvnodes = maxproc + pgtok(vm_cnt.v_page_count) / 64 + in vntblinit()
/f-stack/lib/
H A Dff_init_main.c478 p->p_limit->pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in proc0_init()
H A Dff_kern_timeout.c236 ncallout = imin(16 + maxproc + maxfiles, 18508); in callout_callwheel_init()
/f-stack/freebsd/sys/
H A Dproc.h1015 extern int nprocs, maxproc; /* Current and max number of procs. */
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c2016 newdesiredvnodes = min(maxproc + vm_cnt.v_page_count / 4, 2 * in zfs_vnodes_adjust()
/f-stack/freebsd/arm/arm/
H A Dpmap-v6.c1754 pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count; in pmap_init()
1787 pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc); in pmap_init()
/f-stack/freebsd/i386/i386/
H A Dpmap.c1009 pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count; in __CONCAT()
1057 pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc); in __CONCAT()