projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to improve parallelism of synreadbench warmup phase
[bluesky.git]
/
nfs3
/
synreadbench.c
diff --git
a/nfs3/synreadbench.c
b/nfs3/synreadbench.c
index
64bc898
..
908363f
100644
(file)
--- a/
nfs3/synreadbench.c
+++ b/
nfs3/synreadbench.c
@@
-312,12
+312,13
@@
static void submit_random_read(NFSConnection *nfs)
if (read_size > (1 << 20)) {
scale = read_size / (1 << 20);
}
if (read_size > (1 << 20)) {
scale = read_size / (1 << 20);
}
+ int filecount = bench_files->len;
printf("Warming up file %d\n", warmup_counter);
printf("Warming up file %d\n", warmup_counter);
- if (warmup_counter >=
bench_files->len
* scale)
+ if (warmup_counter >=
filecount
* scale)
return;
bf = &g_array_index(bench_files, struct bench_file,
return;
bf = &g_array_index(bench_files, struct bench_file,
- warmup_counter
/ scale
);
- send_read_request(nfs, bf->inum, (warmup_counter
% scale
) << 20,
+ warmup_counter
% filecount
);
+ send_read_request(nfs, bf->inum, (warmup_counter
/ filecount
) << 20,
read_size > (1 << 20) ? (1 << 20) : read_size);
warmup_counter++;
return;
read_size > (1 << 20) ? (1 << 20) : read_size);
warmup_counter++;
return;
@@
-443,7
+444,6
@@
int main(int argc, char *argv[])
{
g_thread_init(NULL);
g_set_prgname("synclient");
{
g_thread_init(NULL);
g_set_prgname("synclient");
- g_print("Launching synthetic NFS RPC client...\n");
bench_files = g_array_new(FALSE, TRUE, sizeof(struct bench_file));
bench_files = g_array_new(FALSE, TRUE, sizeof(struct bench_file));
@@
-479,7
+479,7
@@
int main(int argc, char *argv[])
}
main_loop = g_main_loop_new(NULL, FALSE);
}
main_loop = g_main_loop_new(NULL, FALSE);
- nfs_connect("
niniel
.sysnet.ucsd.edu");
+ nfs_connect("
vrable2
.sysnet.ucsd.edu");
g_main_loop_run(main_loop);
g_main_loop_run(main_loop);