Lines Matching defs:threads
97 isc_uint32_t threads;
184 static threadinfo_t *threads;
351 for (i = 0; i < config->threads; i++) {
352 stats_t *stats = &threads[i].stats;
406 config->threads = 1;
429 perf_opt_add('T', perf_opt_uint, "threads",
430 "the number of threads to run", NULL,
431 &config->threads);
491 * If we run more threads than max-qps, some threads will have
494 if (config->max_qps > 0 && config->threads > config->max_qps)
495 config->threads = config->max_qps;
498 * We also can't run more threads than clients.
500 if (config->threads > config->clients)
501 config->threads = config->clients;
1027 offset = tinfo - threads;
1038 config->threads, offset);
1039 tinfo->max_qps = per_thread(config->max_qps, config->threads, offset);
1040 tinfo->nsocks = per_thread(config->clients, config->threads, offset);
1056 socket_offset += threads[i].nsocks;
1116 threads = isc_mem_get(mctx, config.threads * sizeof(threadinfo_t));
1117 if (threads == NULL)
1119 for (i = 0; i < config.threads; i++)
1120 threadinfo_init(&threads[i], &config, ×);
1150 for (i = 0; i < config.threads; i++)
1151 threadinfo_stop(&threads[i]);
1155 for (i = 0; i < config.threads; i++)
1156 threadinfo_cleanup(&threads[i], ×);
1163 isc_mem_put(mctx, threads, config.threads * sizeof(threadinfo_t));