Home
last modified time | relevance | path

Searched refs:max_threads (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/tpool/
H A Dthread_pool.c234 tpool_create(uint_t min_threads, uint_t max_threads, uint_t linger, in tpool_create() argument
243 if (min_threads > max_threads || max_threads < 1) { in tpool_create()
258 if (stacksize < minstack || max_threads != 1) { in tpool_create()
278 tpool->tp_maximum = max_threads; in tpool_create()
/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcbind.c1117 int max_threads; in rpcb_check_init() local
1133 max_threads = get_smf_iprop("max_threads", 72, 1, INT_MAX); in rpcb_check_init()
1134 if (!rpc_control(RPC_SVC_THRMAX_SET, &max_threads)) { in rpcb_check_init()
1143 if (tmp != max_threads) { in rpcb_check_init()
1145 "using %d worker threads", max_threads, tmp); in rpcb_check_init()
1146 max_threads = tmp; in rpcb_check_init()
1153 if (max_threads < reserved_threads) in rpcb_check_init()
1156 set_rpcb_rmtcalls_max(max_threads - reserved_threads); in rpcb_check_init()
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.c83 static uint32_t max_threads = 40; variable
120 if ((num = atomic_inc_32_nv(&num_threads)) > max_threads) { in idmapd_door_thread_create()
389 max_threads = _idmapdstate.cfg->pgcfg.max_threads; in init_idmapd()
H A Didmap_config.h79 uint64_t max_threads; member
H A Didmap_config.c1696 &pgcfg->max_threads, SCF_TYPE_COUNT); in idmap_cfg_load_smf()
1699 if (pgcfg->max_threads == 0) in idmap_cfg_load_smf()
1700 pgcfg->max_threads = MAX_THREADS_DEFAULT; in idmap_cfg_load_smf()
1701 if (pgcfg->max_threads > UINT_MAX) in idmap_cfg_load_smf()
1702 pgcfg->max_threads = UINT_MAX; in idmap_cfg_load_smf()
2348 changed += update_uint64(&live_pgcfg->max_threads, in idmap_cfg_load()
2349 &new_pgcfg.max_threads, "max_threads"); in idmap_cfg_load()
H A Dinit.c351 idmapdlog(LOG_DEBUG, "max_threads=%llu", pgcfg->max_threads); in print_idmapdstate()
/illumos-gate/usr/src/tools/scripts/
H A Dwsdiff.py1559 max_threads = int(os.environ['DMAKE_MAX_JOBS'])
1561 max_threads = os.sysconf("SC_NPROCESSORS_ONLN")
1565 if max_threads == -1 :
1566 max_threads = 1
1568 max_threads += int(max_threads/5)
1577 debug("Spawning " + str(max_threads) + " threads");
1578 for i in range(max_threads) :
/illumos-gate/usr/src/lib/libc/inc/
H A Dthread_pool.h42 extern tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dwkssvc_svc.c139 rb->buf502.max_threads = 1024; in wkssvc_s_NetWkstaGetInfo()
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c449 int max_threads = 0; in main() local
494 ret = nfs_smf_get_iprop("mountd_max_threads", &max_threads, in main()
527 max_threads = tmp; in main()
694 if (max_threads > 0 && !rpc_control(RPC_SVC_THRMAX_SET, &max_threads)) { in main()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_client.c1242 uint_t max_threads; in nfs_async_manager() local
1258 max_threads = MAX(mi->mi_max_threads, 1); in nfs_async_manager()
1296 MAX(mi->mi_max_threads, max_threads)) { in nfs_async_manager()
H A Dnfs4_client.c1108 uint_t max_threads; in nfs4_async_manager() local
1124 max_threads = MAX(mi->mi_max_threads, 1); in nfs4_async_manager()
1162 MAX(mi->mi_max_threads, max_threads)) { in nfs4_async_manager()
/illumos-gate/usr/src/uts/common/smbsrv/ndl/
H A Dsrvsvc.ndl1601 DWORD max_threads;