Motr
M0
|
![]() |
Modules | |
Workload module for client DIX | |
Workload module for client. | |
Data Structures | |
struct | csum_alg |
struct | crate_conf |
struct | m0_workload_index |
struct | m0_workload_task |
struct | cwi_global |
struct | m0_workload_io |
struct | cti_global |
struct | m0_task_io |
Enumerations | |
enum | m0_operation_type { INDEX, IO } |
enum | cr_opcode { CRATE_OP_PUT, CRATE_OP_GET, CRATE_OP_NEXT, CRATE_OP_DEL, CRATE_OP_TYPES, CRATE_OP_NR = CRATE_OP_TYPES, CRATE_OP_START = CRATE_OP_PUT, CRATE_OP_INVALID = CRATE_OP_TYPES } |
enum | m0_operations { CR_CREATE, CR_OPEN, CR_WRITE, CR_READ, CR_DELETE, CR_POPULATE, CR_CLEANUP, CR_READ_ONLY, CR_OPS_NR } |
enum | m0_operation_status { CR_OP_NEW, CR_OP_EXECUTING, CR_OP_COMPLETE } |
enum | thread_operation { CR_WRITE_TO_SAME = 0, CR_WRITE_TO_DIFF } |
Functions | |
static int | hpcs_init (struct workload *w) |
static int | hpcs_fini (struct workload *w) |
static void | hpcs_run (struct workload *w, struct workload_task *task) |
static void | hpcs_op_get (struct workload *w, struct workload_op *op) |
static void | hpcs_op_run (struct workload *w, struct workload_task *task, const struct workload_op *op) |
static int | hpcs_parse (struct workload *w, char ch, const char *optarg) |
static void | hpcs_check (struct workload *w) |
static int | csum_init (struct workload *w) |
static int | csum_fini (struct workload *w) |
static void | csum_run (struct workload *w, struct workload_task *task) |
static void | csum_op_get (struct workload *w, struct workload_op *op) |
static void | csum_op_run (struct workload *w, struct workload_task *task, const struct workload_op *op) |
static int | csum_parse (struct workload *w, char ch, const char *optarg) |
static void | csum_check (struct workload *w) |
static void | fletcher_2_native (void *buf, uint64_t size) |
static void | fletcher_4_native (void *buf, uint64_t size) |
static void | csum_touch (void *buf, uint64_t size) |
static void | csum_none (void *buf, uint64_t size) |
static const struct workload_type_ops * | wop (struct workload *w) |
static unsigned long long | getrnd (unsigned long long a, unsigned long long b) |
static long long | min (long long a, long long b) |
static long long | max (long long a, long long b) |
void | timeval_norm (struct timeval *t) |
int | workload_init (struct workload *w, enum cr_workload_type wtype) |
static void | workload_fini (struct workload *w) |
static int | workload_op_get (struct workload *w, struct workload_op *op) |
static bcnt_t | w_size (const struct workload *w) |
static enum csum_op_type | rw_get (const struct workload *w) |
static void * | worker_thread (void *datum) |
void | workload_start (struct workload *w, struct workload_task *task) |
void | workload_join (struct workload *w, struct workload_task *task) |
static void | workload_run (struct workload *w) |
static struct cr_hpcs * | w2hpcs (struct workload *w) |
static struct cr_csum * | w2csum (struct workload *w) |
static uint32_t | csum_shuffle32 (uint32_t in) |
static uint64_t | csum_shuffle64 (uint64_t in) |
static void | csum_compute (struct workload *w, void *buf, size_t count) |
static void | csum_csum (struct workload *w, struct cr_csum *s, char *buf, bcnt_t count) |
static void | csum_io (struct workload *w, struct cr_csum *s, const struct workload_op *op, bcnt_t offset, bcnt_t count, int opcode, const char *opname) |
static int | csum_dev_open (struct workload *w, const char *dev_name) |
static void | usage (void) |
void | print_workload_detail (struct workload *w, int idx) |
int | main (int argc, char **argv) |
int | parse_crate (int argc, char **argv, struct workload *w) |
void | run (struct workload *w, struct workload_task *task) |
void | m0_op_run (struct workload *w, struct workload_task *task, const struct workload_op *op) |
void | run_index (struct workload *w, struct workload_task *tasks) |
void | m0_op_run_index (struct workload *w, struct workload_task *task, const struct workload_op *op) |
Variables | |
struct crate_conf * | conf |
const char | cr_default_fpattern [] = "./dir%i/f%i.%i" |
const bcnt_t | cr_default_avg = 64 * 1024 |
const bcnt_t | cr_default_max = 1024 * 1024 |
const int | cr_default_ops = 1000 |
const bcnt_t | cr_default_block = 0 |
const int | cr_default_nr_dir = 1 |
const int | cr_default_nr_thread = 1 |
const short | cr_default_read_frac = 50 |
const bcnt_t | cr_default_blocksize = 16 * 1024 |
const bcnt_t | cr_default_csum_size = 16 |
const bcnt_t | cr_default_key_size = sizeof(struct m0_fid) |
const bcnt_t | cr_default_max_ksize = 1 << 10 |
const bcnt_t | cr_default_max_vsize = 1 << 20 |
const char * | cr_workload_name [CWT_NR] |
static const struct workload_type_ops | w_ops [CWT_NR] |
static const struct csum_alg | csums [] |
struct { | |
int opcode | |
const char * opname | |
} | optable [COT_NR] |
Utility for executing simple performance tests.
Crate is a performance benchmark tool for Motr via Client/m0t1fs.
enum cr_opcode |
Enumerator | |
---|---|
CRATE_OP_PUT | |
CRATE_OP_GET | |
CRATE_OP_NEXT | |
CRATE_OP_DEL | |
CRATE_OP_TYPES | |
CRATE_OP_NR | |
CRATE_OP_START | |
CRATE_OP_INVALID |
Definition at line 65 of file crate_client.h.
enum m0_operation_status |
Enumerator | |
---|---|
CR_OP_NEW | |
CR_OP_EXECUTING | |
CR_OP_COMPLETE |
Definition at line 139 of file crate_client.h.
enum m0_operation_type |
Enumerator | |
---|---|
INDEX | |
IO |
Definition at line 60 of file crate_client.h.
enum m0_operations |
Enumerator | |
---|---|
CR_CREATE | |
CR_OPEN | |
CR_WRITE | |
CR_READ | |
CR_DELETE | |
CR_POPULATE | |
CR_CLEANUP | |
CR_READ_ONLY | |
CR_OPS_NR |
Definition at line 127 of file crate_client.h.
enum thread_operation |
Enumerator | |
---|---|
CR_WRITE_TO_SAME | |
CR_WRITE_TO_DIFF |
Definition at line 145 of file crate_client.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void m0_op_run | ( | struct workload * | w, |
struct workload_task * | task, | ||
const struct workload_op * | op | ||
) |
Task is not prepared.
Definition at line 1093 of file crate_io.c.
void m0_op_run_index | ( | struct workload * | w, |
struct workload_task * | task, | ||
const struct workload_op * | op | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
|
static |
|
static |
int parse_crate | ( | int | argc, |
char ** | argv, | ||
struct workload * | w | ||
) |
void print_workload_detail | ( | struct workload * | w, |
int | idx | ||
) |
void run | ( | struct workload * | w, |
struct workload_task * | task | ||
) |
void run_index | ( | struct workload * | w, |
struct workload_task * | tasks | ||
) |
|
static |
void timeval_norm | ( | struct timeval * | t | ) |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
int workload_init | ( | struct workload * | w, |
enum cr_workload_type | wtype | ||
) |
void workload_join | ( | struct workload * | w, |
struct workload_task * | task | ||
) |
|
static |
|
static |
void workload_start | ( | struct workload * | w, |
struct workload_task * | task | ||
) |
struct crate_conf* conf |
Definition at line 38 of file crate_client_utils.c.
const char* cr_workload_name[CWT_NR] |
|
static |
const { ... } optable[COT_NR] |
|
static |