Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
m0Crate fixes for kvs.
Browse files Browse the repository at this point in the history
Removed unwanted info from kv test run o/p, added KEY_SIZE support.

Added m0crate index value_size changes.

Cleaned record size changes and added changes for max key and value.

added changes for total op time and time per ops in ns.

added changes for total op time and time per ops in ns.

Signed-off-by: somnathbghule <somnath.b.ghule@seagate.com>
  • Loading branch information
somnathbghule committed Mar 1, 2021
1 parent 83f069b commit 8a5acb0
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 69 deletions.
3 changes: 2 additions & 1 deletion motr/m0crate/crate.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ static void workload_run(struct workload *w)
w->cw_name, w->cw_type);
cr_log(CLL_INFO, "random seed: %u\n", w->cw_rstate);
cr_log(CLL_INFO, "number of threads: %u\n", w->cw_nr_thread);
if (CWT_IO != w->cw_type) {
/** Following params not applicable to IO and INDEX tests */
if (CWT_IO != w->cw_type && CWT_INDEX != w->cw_type) {
cr_log(CLL_INFO, "average size: %llu\n", w->cw_avg);
cr_log(CLL_INFO, "maximal size: %llu\n", w->cw_max);
/*
Expand Down
8 changes: 6 additions & 2 deletions motr/m0crate/crate_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ struct m0_workload_index {
int num_kvs;
int mode;
int opcode;
int record_size;
int opcode_prcnt[CRATE_OP_TYPES];
int next_records;

Expand All @@ -102,11 +101,16 @@ struct m0_workload_index {
struct m0_fid key_prefix;
int keys_count;

/** Added to set key_size and value_size parameter from .yaml file. */
int key_size;
int value_size;
int max_key_size;
int max_value_size;

bool keys_ordered;

struct m0_fid index_fid;

int max_record_size;
uint64_t seed;
};

Expand Down
Loading

0 comments on commit 8a5acb0

Please sign in to comment.