-n <reqs> maximum total requests (-1)
-r <reqs> number of requests per connection (-1)
-s <time> soft start: time in sec to reach 100% load
- -t <threads> number of threads
+ -t <threads> number of threads (1)
-u <users> number of users (1)
-w <time> I/O timeout in milliseconds (10000)
-C dump the configuration and exit
" -n <reqs> maximum total requests (-1)\n"
" -r <reqs> number of requests per connection (-1)\n"
" -s <time> soft start: time in sec to reach 100%% load\n"
- " -t <threads> number of threads\n"
+ " -t <threads> number of threads (1)\n"
" -u <users> number of users (1)\n"
" -w <time> I/O timeout in milliseconds (10000)\n"
" -A ignore 1st req for resp time measurements\n"
goto leave;
}
+ if (arg_thrd > arg_usr) {
+ ha_alert("Thread count must not exceed connection count\n");
+ goto leave;
+ }
+
/* "global" section */
hbuf_appendf(&buf, "%.*s", (int)gbuf.data, gbuf.area);
- if (arg_thrd != -1)
- hbuf_appendf(&buf, "\tnbthread %d\n", arg_thrd);
+ hbuf_appendf(&buf, "\tnbthread %d\n", arg_thrd);
if (arg_mreqs)
hbuf_appendf(&buf,
"\ttune.h2.be.max-concurrent-streams %d\n", arg_mreqs);