/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | barrier.c | 47 barrier_init(barrier_t *bar, int nthreads) argument 53 bar->bar_nthr = nthreads;
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | taskq.c | 229 taskq_create(const char *name, int nthreads, pri_t pri, argument 237 ASSERT3S(nthreads, >=, 0); 238 ASSERT3S(nthreads, <=, 100); 239 pct = MIN(nthreads, 100); 242 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; 243 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ 245 ASSERT3S(nthreads, >=, 1); 255 tq->tq_active = nthreads; 256 tq->tq_nthreads = nthreads; 281 int nthreads = tq->tq_nthreads; local [all...] |
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | taskq.c | 268 taskq_create_proc(const char *name, int nthreads, pri_t pri, argument 276 ASSERT3S(nthreads, >=, 0); 277 ASSERT3S(nthreads, <=, 100); 278 pct = MIN(nthreads, 100); 281 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; 282 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ 284 ASSERT3S(nthreads, >=, 1); 293 tq->tq_active = nthreads; 294 tq->tq_nthreads = nthreads; 319 int nthreads = tq->tq_nthreads; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | taskq.c | 400 size_t nthreads; local 409 nthreads = tq.tq_nthreads; 410 tlist = mdb_alloc(nthreads * sizeof (*tlist), UM_SLEEP); 414 } else if (mdb_vread(tlist, nthreads * sizeof (*tlist), 418 mdb_free(tlist, nthreads * sizeof (*tlist)); 423 tti->tti_nthreads = nthreads;
|
/illumos-gate/usr/src/cmd/avs/nsctl/ |
H A D | nskernd.c | 82 static int nthreads; /* number of threads in the kernel */ variable 121 nthreads++; 131 nthreads--; 146 if (nthreads > 0) { 150 "%d kernel threads in use\n"), nthreads); 153 while (nthreads > 0 && (time(0) - start_delay) < delay_time) { 159 "%d kernel threads in use\n"), nthreads); 161 if (nthreads > 0) {
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | taskq.c | 81 * taskq_t *taskq_create(name, nthreads, pri, minalloc, maxalloc, flags); 87 * specified, 'nthreads' specifies the maximum number of threads in 92 * single-list task queue is created with 'nthreads' threads 102 * executed in the order they are scheduled if nthreads == 1. 103 * If nthreads > 1, task execution order is not predictable. 108 * TASKQ_THREADS_CPU_PCT: This flag specifies that 'nthreads' should be 112 * and offline events, to keep the ratio. nthreads must be in 130 * taskq_t *taskq_create_instance(name, instance, nthreads, pri, minalloc, 136 * taskq_t *taskq_create_proc(name, nthreads, pri, minalloc, maxalloc, proc, 143 * taskq_t *taskq_create_sysdc(name, nthreads, minallo 1805 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc, int maxalloc, uint_t flags) argument 1824 taskq_create_instance(const char *name, int instance, int nthreads, pri_t pri, int minalloc, int maxalloc, uint_t flags) argument 1839 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc, int maxalloc, proc_t *proc, uint_t flags) argument 1850 taskq_create_sysdc(const char *name, int nthreads, int minalloc, int maxalloc, proc_t *proc, uint_t dc, uint_t flags) argument 1861 taskq_create_common(const char *name, int instance, int nthreads, pri_t pri, int minalloc, int maxalloc, proc_t *proc, uint_t dc, uint_t flags) argument 2172 int nthreads; local [all...] |
H A D | turnstile.c | 718 turnstile_wakeup(turnstile_t *ts, int qnum, int nthreads, kthread_t *owner) argument 731 while (nthreads-- > 0) {
|
H A D | cpu.c | 226 kstat_named_t nthreads; member in struct:cpu_sys_stats_ks_data 285 { "nthreads", KSTAT_DATA_UINT64 }, 3259 csskd->nthreads.value.ui64 = css->nthreads; 3398 cso->cpu_sysinfo.nthreads = CPU_STATS(cp, sys.nthreads);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sysinfo.h | 112 uint_t nthreads; /* thread_create()s */ member in struct:cpu_sysinfo 236 uint64_t nthreads; /* thread_create()s */ member in struct:cpu_sys_stats
|
H A D | sunddi.h | 2169 int nthreads, pri_t pri, uint_t cflags);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 710 int nthreads; local 831 nthreads = p->p_lwpcnt; 836 if (nthreads < 1) 845 aff_buf_array = kmem_zalloc(nthreads * 849 for (i = 0; i < nthreads; i++) 868 for (i = 0; i < nthreads; i++) 871 nthreads * sizeof (lgrp_affinity_t *)); 881 if (nthreads != p->p_lwpcnt) { 884 for (i = 0; i < nthreads; i++) 887 nthreads * sizeo [all...] |
/illumos-gate/usr/src/cmd/ptools/pstack/ |
H A D | pstack.c | 149 static int nthreads; variable 274 nthreads = 0; 331 nthreads++; 440 !(dothreads && nthreads > 1)) {
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sa.h | 135 uint64_t nthreads; member in struct:cpu64_sysinfo
|
/illumos-gate/usr/src/cmd/savecore/ |
H A D | savecore.c | 759 int nthreads; local 765 nthreads = sysconf(_SC_NPROCESSORS_ONLN); 766 if (nstreams < nthreads) 767 nthreads = nstreams; 768 if (nthreads < 1) 769 nthreads = 1; 770 nblocks = nthreads * 2; 772 tinfo = Zalloc(nthreads * sizeof (tinfo_t)); 773 endtinfo = &tinfo[nthreads]; 793 nthreads [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sv/ |
H A D | sv.c | 1617 int nthreads; local 1641 nthreads = nst_nthread(sv_tset); 1642 if ((nthreads + threads) > sv_threads_max) { 1643 sv_threads_extra = nthreads + threads - sv_threads_max; 1644 threads = sv_threads_max - nthreads; 1654 nthreads = nst_nthread(sv_tset); 1657 if (sv_threads_needed >= nthreads) 1660 (nthreads - (sv_threads_inc + sv_threads_hysteresis))) && 1661 ((nthreads - sv_threads_inc) >= sv_threads)) 1668 "!sv_thread_tune: threads needed %d, nthreads [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv.c | 140 static int nthreads = 32; variable 243 nthreads = atoi(optarg); 364 if (nthreads > 0) { 366 (void) rpc_control(RPC_SVC_THRMAX_SET, &nthreads);
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | alloc.c | 214 ASSERT(udp->nthreads == 0);
|
H A D | thr.c | 123 0, /* nthreads */ 279 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, self)); 468 ASSERT(udp->nthreads <= 1 || MUTEX_OWNED(&udp->link_lock, curthread)); 699 udp->nthreads++; 761 udp->nthreads--; 766 else if (udp->nthreads == udp->ndaemons) { 1356 ASSERT(udp->nthreads == 1 && !udp->uberflags.uf_mt); 1365 udp->nthreads = 1; 1629 udp->nthreads = 1; 2366 return (curthread->ul_uberdata->nthreads); [all...] |
/illumos-gate/usr/src/head/ |
H A D | thread_db.h | 239 int nthreads; /* total number of threads in use */ member in struct:td_ta_stats
|
/illumos-gate/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 138 int nthreads; /* threads processed */ member in struct:plgrp_args 1230 plgrp_args->nthreads++; 1595 if (plgrp_todo.nthreads == 0) {
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/ |
H A D | libc.c | 849 HD("nthreads nzombies ndaemons pid sigacthandler"); 851 OFFSET(nthreads), 852 uberdata.nthreads,
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | thr_uberdata.h | 963 int nthreads; /* total number of live threads/lwps */ member in struct:uberdata 1176 int nthreads; member in struct:uberdata32
|
/illumos-gate/usr/src/lib/libc_db/common/ |
H A D | thread_db.c | 610 int nthreads; local 617 offsetof(uberdata_t, nthreads); 623 offsetof(uberdata32_t, nthreads); 636 if (ps_pdread(ph_p, nthreads_addr, &nthreads, sizeof (int)) != PS_OK) 642 *nthread_p = nthreads + nzombies;
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_io.c | 222 int nthreads; local 230 nthreads = nst_nthread(_rdc_ioset); 233 if (rdc_sets_active >= nthreads) 236 (nthreads - (rdc_threads_inc + rdc_threads_hysteresis))) && 237 ((nthreads - rdc_threads_inc) >= rdc_threads)) 244 "nsets %d, nthreads %d, nthreads change %d",
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | thread.c | 445 CPU_STATS_ADDQ(CPU, sys, nthreads, 1);
|