/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | taskq.c | 300 taskq_create_proc(const char *name, int nthreads, pri_t pri, in taskq_create_proc() argument 308 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() 331 tq->tq_threadlist = kmem_alloc(nthreads * sizeof (thread_t), KM_SLEEP); in taskq_create_proc() [all …]
|
/illumos-gate/usr/src/test/smbclient-tests/config/ |
H A D | fileio.prof | 38 nthreads = 16; 45 nthreads = 16; 52 nthreads = 16; 59 nthreads = 16; 66 nthreads = 16; 73 nthreads = 16;
|
H A D | filemacro.prof | 40 nthreads = 100; 50 nthreads = 16; 60 nthreads = 100; 70 nthreads = 100;
|
H A D | filemicro.prof | 75 nthreads = 4; 121 nthreads = 1;
|
H A D | randomread.prof | 39 nthreads = 1;
|
H A D | seqread.prof | 39 nthreads = 1;
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_taskq.c | 217 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 D | wqt.c | 177 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 D | mqt.c | 199 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 D | taskq.c | 400 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 D | taskq.c | 1849 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc, in taskq_create() argument 1854 return (taskq_create_common(name, 0, nthreads, pri, minalloc, in taskq_create() 1868 taskq_create_instance(const char *name, int instance, int nthreads, pri_t pri, in taskq_create_instance() argument 1878 return (taskq_create_common(name, instance, nthreads, in taskq_create_instance() 1883 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc, in taskq_create_proc() argument 1889 return (taskq_create_common(name, 0, nthreads, pri, minalloc, in taskq_create_proc() 1894 taskq_create_sysdc(const char *name, int nthreads, int minalloc, in taskq_create_sysdc() argument 1900 return (taskq_create_common(name, 0, nthreads, minclsyspri, minalloc, in taskq_create_sysdc() 1905 taskq_create_common(const char *name, int instance, int nthreads, pri_t pri, in taskq_create_common() argument 1940 ASSERT3S(nthreads, >=, 1); in taskq_create_common() [all …]
|
H A D | turnstile.c | 718 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 D | ctfmerge.c | 317 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 D | lgrpsys.c | 710 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() 872 nthreads * sizeof (lgrp_affinity_t *)); 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() 888 nthreads * sizeof (lgrp_affinity_t *)); in lgrp_affinity_set() [all …]
|
/illumos-gate/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 250 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 D | savecore.c | 780 int nthreads; in initstreams() local 786 nthreads = sysconf(_SC_NPROCESSORS_ONLN); in initstreams() 787 if (nstreams < nthreads) in initstreams() 788 nthreads = nstreams; in initstreams() 789 if (nthreads < 1) in initstreams() 790 nthreads = 1; in initstreams() 791 nblocks = nthreads * 2; in initstreams() 793 tinfo = Zalloc(nthreads * sizeof (tinfo_t)); in initstreams() 794 endtinfo = &tinfo[nthreads]; in initstreams() 814 nthreads = t - tinfo; in initstreams()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sysinfo.h | 112 uint_t nthreads; /* thread_create()s */ member 236 uint64_t nthreads; /* thread_create()s */ member
|
/illumos-gate/usr/src/cmd/ptools/pstack/ |
H A D | pstack.c | 155 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 D | thr.c | 282 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 D | alloc.c | 214 ASSERT(udp->nthreads == 0); in lmalloc()
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sa.h | 133 uint64_t nthreads; member
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv.c | 142 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 D | plgrp.c | 136 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 D | cpuid.c | 2455 uint_t nthreads, nthread_per_core; in cpuid_amd_ncores() local 2457 nthreads = nthread_per_core = 1; in cpuid_amd_ncores() 2460 nthreads = BITX(cpi->cpi_extd[8].cp_ecx, 7, 0) + 1; in cpuid_amd_ncores() 2462 nthreads = CPI_CPU_COUNT(cpi); in cpuid_amd_ncores() 2476 *ncpus = nthreads; in cpuid_amd_ncores() 2477 *ncores = nthreads / nthread_per_core; in cpuid_amd_ncores() 2693 uint_t nthreads = BITX(cpi->cpi_extd[0x1e].cp_ebx, 15, 8) + 1; in cpuid_amd_get_coreid() local 2694 if (nthreads > 1) { in cpuid_amd_get_coreid() 2695 VERIFY3U(nthreads, ==, 2); in cpuid_amd_get_coreid() 2785 uint_t nthreads = BITX(cpi->cpi_extd[0x1e].cp_ebx, 15, 8) + 1; in cpuid_amd_getids() local [all …]
|
/illumos-gate/usr/src/head/ |
H A D | thread_db.h | 237 int nthreads; /* total number of threads in use */ member
|