Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[*.{py,sh}]
indent_style = space
2 changes: 1 addition & 1 deletion modules/c-client
Submodule c-client updated 143 files
6 changes: 6 additions & 0 deletions src/include/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,18 @@ typedef struct threaddata_s {
struct thr_coordinator_s* coord;
as_random* random;
dyn_throttle_t dyn_throttle;
uint64_t min_usleep;
_Atomic(int64_t) async_req_quota;


// thread index: [0, n_threads)
uint32_t t_idx;
// which workload stage we're currrently on
_Atomic(uint32_t) stage_idx;

// For async linear workloads
_Atomic(uint64_t) current_key;

/*
* note: to stop threads, tdata->finished must be set before tdata->do_work
* to prevent deadlocking
Expand Down
1 change: 1 addition & 0 deletions src/main/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ init_tdata(const args_t* args, cdata_t* cdata, thr_coord_t* coord,
tdata->t_idx = t_idx;
// always start on the first stage
atomic_init(&tdata->stage_idx, 0);
atomic_init(&tdata->current_key, args->start_key);

atomic_init(&tdata->do_work, true);
atomic_init(&tdata->finished, false);
Expand Down
3 changes: 3 additions & 0 deletions src/main/benchmark_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ print_usage(const char* program)

printf("-z --threads <count> # Default: 16\n");
printf(" Load generating thread count.\n");
printf(" This is set to 1 if using --async.\n");
printf(" Use --event-loops in async mode.\n");
printf("\n");

printf("-g --throughput <tps> # Default: 0\n");
Expand Down Expand Up @@ -745,6 +747,7 @@ print_usage(const char* program)

printf("-a --async # Default: synchronous mode\n");
printf(" Enable asynchronous mode.\n");
printf(" Use --event-loops to tune performance in async mode.\n");
printf("\n");

printf("-c --async-max-commands <command count> # Default: 50\n");
Expand Down
Loading