Searched defs:nthreads (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/tools/ctf/cvt/
H A Dbarrier.c47 barrier_init(barrier_t *bar, int nthreads) argument
53 bar->bar_nthr = nthreads;
/illumos-gate/usr/src/lib/libzpool/common/
H A Dtaskq.c229 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/uts/common/os/
H A Dturnstile.c718 turnstile_wakeup(turnstile_t *ts, int qnum, int nthreads, kthread_t *owner) argument
731 while (nthreads-- > 0) {
H A Dtaskq.c81 * 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 Dcpu.c226 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);
H A Dsunddi.c8870 ddi_taskq_create(dev_info_t *dip, const char *name, int nthreads, argument
8891 return ((ddi_taskq_t *)taskq_create_instance(tq_name, nodeid, nthreads,
8893 nthreads, INT_MAX, TASKQ_PREPOPULATE));
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dtaskq.c268 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 Dtaskq.c400 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 Dnskernd.c82 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/cmd/ptools/plgrp/
H A Dplgrp.c138 int nthreads; /* threads processed */ member in struct:plgrp_args
1230 plgrp_args->nthreads++;
1595 if (plgrp_todo.nthreads == 0) {
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c149 static int nthreads; variable
274 nthreads = 0;
331 nthreads++;
440 !(dothreads && nthreads > 1)) {
/illumos-gate/usr/src/cmd/sa/
H A Dsa.h135 uint64_t nthreads; member in struct:cpu64_sysinfo
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv.c140 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/uts/common/sys/
H A Dsysinfo.h112 uint_t nthreads; /* thread_create()s */ member in struct:cpu_sysinfo
236 uint64_t nthreads; /* thread_create()s */ member in struct:cpu_sys_stats
/illumos-gate/usr/src/uts/common/syscall/
H A Dlgrpsys.c710 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/head/
H A Dthread_db.h239 int nthreads; /* total number of threads in use */ member in struct:td_ta_stats
/illumos-gate/usr/src/uts/common/avs/ns/sv/
H A Dsv.c1617 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/lib/libc_db/common/
H A Dthread_db.c610 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 Drdc_io.c222 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/cmd/savecore/
H A Dsavecore.c759 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/lib/libc/inc/
H A Dthr_uberdata.h963 int nthreads; /* total number of live threads/lwps */ member in struct:uberdata
1176 int nthreads; member in struct:uberdata32

Completed in 122 milliseconds