Skip to content

Commit

Permalink
Print the number of actually running threads instead of the configured
Browse files Browse the repository at this point in the history
--num-threads value for intermediate reports. This can make a big
difference with network benchmarks to diagnose TCP-related issues like
SYN flood protection, throttling, backlog issues, etc.
  • Loading branch information
akopytov committed Nov 26, 2015
1 parent d4a30a3 commit 85889df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysbench/db_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ void db_print_stats(sb_stat_t type)
"threads: %d, tps: %4.2f, reads: %4.2f, writes: %4.2f, "
"response time: %4.2fms (%u%%), errors: %4.2f, "
"reconnects: %5.2f",
sb_globals.num_threads,
sb_globals.num_running,
(transactions - last_transactions) / seconds,
(read_ops - last_read_ops) / seconds,
(write_ops - last_write_ops) / seconds,
Expand Down

0 comments on commit 85889df

Please sign in to comment.