Skip to content

Commit

Permalink
dataplacement: increase max data placement IDs to 128
Browse files Browse the repository at this point in the history
Some users have requested the ability to test a larger number of
placement IDs in a single job. Bump the max placement IDs to 128.
Change the type to 16 bits to reduce the amount of space these
additional IDs will consume.

Also bump the server version for this change.

Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Jun 5, 2024
1 parent 612da74 commit 695ab5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int convert_thread_options_to_cpu(struct thread_options *o,
o->dp_id_select = le32_to_cpu(top->dp_id_select);
o->dp_nr_ids = le32_to_cpu(top->dp_nr_ids);
for (i = 0; i < o->dp_nr_ids; i++)
o->dp_ids[i] = le32_to_cpu(top->dp_ids[i]);
o->dp_ids[i] = le16_to_cpu(top->dp_ids[i]);
#if 0
uint8_t cpumask[FIO_TOP_STR_MAX];
uint8_t verify_cpumask[FIO_TOP_STR_MAX];
Expand Down Expand Up @@ -659,7 +659,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->dp_id_select = cpu_to_le32(o->dp_id_select);
top->dp_nr_ids = cpu_to_le32(o->dp_nr_ids);
for (i = 0; i < o->dp_nr_ids; i++)
top->dp_ids[i] = cpu_to_le32(o->dp_ids[i]);
top->dp_ids[i] = cpu_to_le16(o->dp_ids[i]);
#if 0
uint8_t cpumask[FIO_TOP_STR_MAX];
uint8_t verify_cpumask[FIO_TOP_STR_MAX];
Expand Down
2 changes: 1 addition & 1 deletion dataplacement.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define STREAMS_DIR_DTYPE 1
#define FDP_DIR_DTYPE 2
#define FDP_MAX_RUHS 128
#define FIO_MAX_DP_IDS 16
#define FIO_MAX_DP_IDS 128
#define DP_MAX_SCHEME_ENTRIES 32

/*
Expand Down
2 changes: 1 addition & 1 deletion server.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct fio_net_cmd_reply {
};

enum {
FIO_SERVER_VER = 105,
FIO_SERVER_VER = 106,

FIO_SERVER_MAX_FRAGMENT_PDU = 1024,
FIO_SERVER_MAX_CMD_MB = 2048,
Expand Down
4 changes: 2 additions & 2 deletions thread_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ struct thread_options {
unsigned int fdp;
unsigned int dp_type;
unsigned int dp_id_select;
unsigned int dp_ids[FIO_MAX_DP_IDS];
uint16_t dp_ids[FIO_MAX_DP_IDS];
unsigned int dp_nr_ids;
char *dp_scheme_file;

Expand Down Expand Up @@ -712,7 +712,7 @@ struct thread_options_pack {
uint32_t fdp;
uint32_t dp_type;
uint32_t dp_id_select;
uint32_t dp_ids[FIO_MAX_DP_IDS];
uint16_t dp_ids[FIO_MAX_DP_IDS];
uint32_t dp_nr_ids;
uint8_t dp_scheme_file[FIO_TOP_STR_MAX];

Expand Down

0 comments on commit 695ab5c

Please sign in to comment.