Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dtaskq.c308 ASSERT3S(nthreads, >=, 0); in taskq_create_proc()
309 ASSERT3S(nthreads, <=, 100); in taskq_create_proc()
310 pct = MIN(nthreads, 100); in taskq_create_proc()
313 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; in taskq_create_proc()
314 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ in taskq_create_proc()
316 ASSERT3S(nthreads, >=, 1); in taskq_create_proc()
325 tq->tq_active = nthreads; in taskq_create_proc()
326 tq->tq_nthreads = nthreads; in taskq_create_proc()
340 for (t = 0; t < nthreads; t++) in taskq_create_proc()
351 int nthreads = tq->tq_nthreads; in taskq_destroy() local
[all …]
/illumos-gate/usr/src/test/smbclient-tests/config/
H A Dfileio.prof38 nthreads = 16;
45 nthreads = 16;
52 nthreads = 16;
59 nthreads = 16;
66 nthreads = 16;
73 nthreads = 16;
H A Dfilemacro.prof40 nthreads = 100;
50 nthreads = 16;
60 nthreads = 100;
70 nthreads = 100;
H A Dfilemicro.prof75 nthreads = 4;
121 nthreads = 1;
H A Dseqread.prof39 nthreads = 1;
H A Drandomread.prof39 nthreads = 1;
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_taskq.c217 zfs_taskq_create(const char *name, int nthreads, pri_t pri, int minalloc, in zfs_taskq_create() argument
223 ASSERT3S(nthreads, >=, 1); in zfs_taskq_create()
235 ztq->ztq_active = nthreads; in zfs_taskq_create()
236 ztq->ztq_nthreads = nthreads; in zfs_taskq_create()
242 umem_alloc(nthreads * sizeof (thread_t), UMEM_NOFAIL); in zfs_taskq_create()
251 for (t = 0; t < nthreads; t++) { in zfs_taskq_create()
263 int nthreads = ztq->ztq_nthreads; in zfs_taskq_destroy() local
285 for (t = 0; t < nthreads; t++) in zfs_taskq_destroy()
288 umem_free(ztq->ztq_threadlist, nthreads * sizeof (thread_t)); in zfs_taskq_destroy()
/illumos-gate/usr/src/test/util-tests/tests/workq/
H A Dwqt.c177 int nthreads[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, -1 }; in main() local
179 for (t = 0; nthreads[t] != -1; t++) { in main()
180 printf("Beginning tests with %d threads\n", nthreads[t]); in main()
181 if ((ret = workq_init(&wqp, nthreads[t])) != 0) { in main()
/illumos-gate/usr/src/test/util-tests/tests/mergeq/
H A Dmqt.c199 int nthreads[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, -1 }; in main() local
201 for (t = 0; nthreads[t] != -1; t++) { in main()
202 printf("Beginning tests with %d threads\n", nthreads[t]); in main()
203 if ((ret = mergeq_init(&mqp, nthreads[t])) != 0) { in main()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtaskq.c400 size_t nthreads; in taskq_thread_walk_init() local
409 nthreads = tq.tq_nthreads; in taskq_thread_walk_init()
410 tlist = mdb_alloc(nthreads * sizeof (*tlist), UM_SLEEP); in taskq_thread_walk_init()
414 } else if (mdb_vread(tlist, nthreads * sizeof (*tlist), in taskq_thread_walk_init()
418 mdb_free(tlist, nthreads * sizeof (*tlist)); in taskq_thread_walk_init()
423 tti->tti_nthreads = nthreads; in taskq_thread_walk_init()
/illumos-gate/usr/src/uts/common/os/
H A Dtaskq.c1940 ASSERT3S(nthreads, >=, 1); in taskq_create_common()
1941 tq->tq_maxsize = nthreads; in taskq_create_common()
1944 nthreads = max_nthreads = 1; in taskq_create_common()
1948 ASSERT3S(nthreads, >=, 0); in taskq_create_common()
1949 pct = nthreads; in taskq_create_common()
1967 ASSERT3S(nthreads, >=, 1); in taskq_create_common()
1968 max_nthreads = nthreads; in taskq_create_common()
1984 tq->tq_nthreads_target = nthreads; in taskq_create_common()
2220 int nthreads; in taskq_bucket_extend() local
2280 nthreads = b->tqbucket_stat.tqs_tcreates - in taskq_bucket_extend()
[all …]
H A Dturnstile.c718 turnstile_wakeup(turnstile_t *ts, int qnum, int nthreads, kthread_t *owner) in turnstile_wakeup() argument
731 while (nthreads-- > 0) { in turnstile_wakeup()
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c317 uint_t nthreads = CTFMERGE_DEFAULT_NTHREADS; in main() local
351 nthreads = (uint_t)argj; in main()
406 if ((err = ctf_merge_set_nthreads(cmh, nthreads)) != 0) in main()
408 nthreads, ctf_errmsg(err)); in main()
/illumos-gate/usr/src/uts/common/syscall/
H A Dlgrpsys.c710 int nthreads; in lgrp_affinity_set() local
832 nthreads = p->p_lwpcnt; in lgrp_affinity_set()
837 if (nthreads < 1) in lgrp_affinity_set()
846 aff_buf_array = kmem_zalloc(nthreads * in lgrp_affinity_set()
850 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
869 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
882 if (nthreads != p->p_lwpcnt) { in lgrp_affinity_set()
885 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
906 for (i = 0; i < nthreads; i++) in lgrp_affinity_set()
910 nthreads * sizeof (lgrp_affinity_t *)); in lgrp_affinity_set()
[all …]
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c250 uint_t nthreads = CTF_CONVERT_DEFAULT_NTHREADS; in main() local
293 nthreads = (uint_t)argno; in main()
362 if ((err = ctf_convert_set_nthreads(cch, nthreads)) != 0) in main()
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c760 int nthreads; in initstreams() local
766 nthreads = sysconf(_SC_NPROCESSORS_ONLN); in initstreams()
767 if (nstreams < nthreads) in initstreams()
768 nthreads = nstreams; in initstreams()
769 if (nthreads < 1) in initstreams()
770 nthreads = 1; in initstreams()
771 nblocks = nthreads * 2; in initstreams()
773 tinfo = Zalloc(nthreads * sizeof (tinfo_t)); in initstreams()
774 endtinfo = &tinfo[nthreads]; in initstreams()
794 nthreads = t - tinfo; in initstreams()
/illumos-gate/usr/src/uts/common/sys/
H A Dsysinfo.h112 uint_t nthreads; /* thread_create()s */ member
236 uint64_t nthreads; /* thread_create()s */ member
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c155 static int nthreads; variable
280 nthreads = 0; in main()
337 nthreads++; in thr_stack()
454 !(dothreads && nthreads > 1)) { in all_call_stacks()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dthr.c282 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, self)); in trim_stack_cache()
471 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, curthread)); in ulwp_free()
702 udp->nthreads++; in _thrp_create()
768 udp->nthreads--; in _thrp_exit()
773 else if (udp->nthreads == udp->ndaemons) { in _thrp_exit()
1392 ASSERT(udp->nthreads == 1 && !udp->uberflags.uf_mt); in libc_init()
1401 udp->nthreads = 1; in libc_init()
1661 udp->nthreads = 1; in postfork1_child()
2398 return (curthread->ul_uberdata->nthreads); in __nthreads()
H A Dalloc.c214 ASSERT(udp->nthreads == 0); in lmalloc()
/illumos-gate/usr/src/cmd/sa/
H A Dsa.h133 uint64_t nthreads; member
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv.c142 static int nthreads = 32; variable
245 nthreads = atoi(optarg); in main()
366 if (nthreads > 0) { in main()
368 (void) rpc_control(RPC_SVC_THRMAX_SET, &nthreads); in main()
/illumos-gate/usr/src/cmd/ptools/plgrp/
H A Dplgrp.c136 int nthreads; /* threads processed */ member
1228 plgrp_args->nthreads++; in Plwp_iter_handler()
1593 if (plgrp_todo.nthreads == 0) { in main()
/illumos-gate/usr/src/uts/intel/os/
H A Dcpuid.c2403 uint_t nthreads, nthread_per_core; in cpuid_amd_ncores() local
2405 nthreads = nthread_per_core = 1; in cpuid_amd_ncores()
2408 nthreads = BITX(cpi->cpi_extd[8].cp_ecx, 7, 0) + 1; in cpuid_amd_ncores()
2410 nthreads = CPI_CPU_COUNT(cpi); in cpuid_amd_ncores()
2424 *ncpus = nthreads; in cpuid_amd_ncores()
2425 *ncores = nthreads / nthread_per_core; in cpuid_amd_ncores()
2641 uint_t nthreads = BITX(cpi->cpi_extd[0x1e].cp_ebx, 15, 8) + 1; in cpuid_amd_get_coreid() local
2642 if (nthreads > 1) { in cpuid_amd_get_coreid()
2643 VERIFY3U(nthreads, ==, 2); in cpuid_amd_get_coreid()
2734 if (nthreads > 1) { in cpuid_amd_getids()
[all …]
/illumos-gate/usr/src/head/
H A Dthread_db.h237 int nthreads; /* total number of threads in use */ member

12