Parallel reading is effectively random order, not sequential

This commit is contained in:
Eric Fischer
2016-04-04 17:00:11 -07:00
parent c62762078a
commit 2a4be4f6d4
+1 -1
View File
@@ -1033,7 +1033,7 @@ void *run_read_parallel(void *v) {
perror("map intermediate input"); perror("map intermediate input");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
madvise(map, a->len, MADV_SEQUENTIAL); madvise(map, a->len, MADV_RANDOM); // sequential, but from several pointers at once
do_read_parallel(map, a->len, a->offset, a->reading, a->reader, a->progress_seq, a->exclude, a->include, a->exclude_all, a->fname, a->basezoom, a->source, a->nlayers, a->droprate, a->initialized, a->initial_x, a->initial_y); do_read_parallel(map, a->len, a->offset, a->reading, a->reader, a->progress_seq, a->exclude, a->include, a->exclude_all, a->fname, a->basezoom, a->source, a->nlayers, a->droprate, a->initialized, a->initial_x, a->initial_y);