Home
last modified time | relevance | path

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

12

/freebsd/tools/test/stress2/misc/
H A Dmaxproc.sh35 [ `sysctl -n kern.maxproc` -gt 37028 ] && exit 0 # Excessive run time
38 sed '1,/^EOF/d' < $here/$0 > maxproc.c
39 mycc -o maxproc -Wall -Wextra maxproc.c -lkvm || exit 1
40 rm -f maxproc.c
43 /tmp/maxproc
45 rm -f /tmp/maxproc
123 int i, nprocs, maxproc;
138 if (kvm_read(kd, nl[NL_MAXPROC].n_value, &maxproc,
139 sizeof(maxproc)) != sizeof(maxproc))
143 return (maxproc - nprocs - 1);
/freebsd/sys/kern/
H A Dsubr_param.c89 int maxproc; /* maximum # of processes */ variable
308 maxproc = NPROC; in init_param2()
309 TUNABLE_INT_FETCH("kern.maxproc", &maxproc); in init_param2()
311 if (maxproc > maxproc_clamp) in init_param2()
312 maxproc = maxproc_clamp; in init_param2()
313 if (maxproc > pid_max) in init_param2()
314 maxproc = pid_max; in init_param2()
315 maxprocperuid = (maxproc * 9) / 10; in init_param2()
H A Dkern_mib.c112 SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
113 &maxproc, 0, "Maximum number of processes");
H A Dkern_thread.c556 maxthread = MIN(maxproc * max_threads_per_proc, 1000000); in threadinit()
558 maxthread = MIN(maxproc * max_threads_per_proc, 100000); in threadinit()
581 tidhashtbl = hashinit(maxproc / 2, M_TIDHASH, &tidhash); in threadinit()
H A Dkern_fork.c977 if (nprocs_new >= maxproc - 10) { in fork1()
979 nprocs_new >= maxproc) { in fork1()
H A Dinit_main.c594 p->p_limit->pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in proc0_init()
H A Dkern_timeout.c282 ncallout = imin(16 + maxproc + maxfiles, 18508); in callout_callwheel_init()
H A Dkern_resource.c1503 uihashtbl = hashinit(maxproc / 16, M_UIDINFO, &uihash); in uihashinit()
H A Dkern_proc.c192 pidhashtbl = hashinit(maxproc / 4, M_PROC, &pidhash); in procinit()
200 pgrphashtbl = hashinit(maxproc / 4, M_PROC, &pgrphash); in procinit()
/freebsd/usr.sbin/autofs/
H A Dautomountd.c439 int ch, debug = 0, error, maxproc = 30, retval, saved_errno; in main_automountd() local
464 maxproc = atoi(optarg); in main_automountd()
541 while (maxproc > 0 && nchildren >= maxproc) { in main_automountd()
543 "waiting for child process to exit", maxproc); in main_automountd()
/freebsd/tests/sys/audit/
H A Dmiscellaneous.c168 int mib[2], maxproc; in ATF_TC_BODY() local
174 proclen = sizeof(maxproc); in ATF_TC_BODY()
180 ATF_REQUIRE_EQ(0, sysctl(mib, 2, &maxproc, &proclen, NULL, 0)); in ATF_TC_BODY()
/freebsd/usr.sbin/iscsid/
H A Discsid.c692 int ch, debug = 0, error, iscsi_fd, maxproc = 30, retval, saved_errno, in main() local
713 maxproc = atoi(optarg); in main()
784 while (maxproc > 0 && nchildren >= maxproc) { in main()
786 "waiting for child process to exit", maxproc); in main()
/freebsd/usr.sbin/ctld/
H A Dconf.cc95 conf_set_maxproc(int maxproc) in conf_set_maxproc() argument
97 conf->set_maxproc(maxproc); in conf_set_maxproc()
H A Dconf.h55 void conf_set_maxproc(int maxproc);
H A Dtoken.l75 maxproc { return MAXPROC; }
H A Dparse.y89 maxproc
142 maxproc: MAXPROC STR
H A Dctld.hh460 int maxproc() const { return conf_maxproc; } in maxproc() function
504 void set_maxproc(int maxproc);
H A Dctld.cc106 conf::set_maxproc(int maxproc) in set_maxproc() argument
108 conf_maxproc = maxproc; in set_maxproc()
2347 while (conf->maxproc() > 0 && nchildren >= conf->maxproc()) { in handle_connection()
2350 conf->maxproc()); in handle_connection()
/freebsd/usr.bin/login/
H A Dlogin.conf39 :maxproc=unlimited:\
/freebsd/sys/fs/pseudofs/
H A Dpseudofs_vncache.c92 pfs_vncache_hashtbl = hashinit(maxproc / 4, M_PFSVNCACHE, &pfs_vncache_hash);
/freebsd/sys/sys/
H A Dproc.h1091 extern int nprocs, maxproc; /* Current and max number of procs. */
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c2128 newdesiredvnodes = min(maxproc + vm_cnt.v_page_count / 4, 2 * in zfs_vnodes_adjust()
/freebsd/sys/powerpc/booke/
H A Dpmap.c1076 pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count; in mmu_booke_init()
/freebsd/sys/i386/i386/
H A Dpmap.c992 pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count; in __CONCAT()
1040 pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc); in __CONCAT()
/freebsd/sys/arm/arm/
H A Dpmap-v6.c1772 pv_entry_max = shpgperproc * maxproc + vm_cnt.v_page_count; in pmap_init()
1805 pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc); in pmap_init()

12