Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug logging for child shard calculation #220

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,9 @@ int traverse_zooms(int *geomfd, off_t *geom_size, char *global_stringpool, std::
threads = 1;
}

size_t child_shards = TEMP_FILES / threads;
fprintf(stderr, "Using %zu temporary files and %zu threads on %zu CPUS for %zu child shards\n", TEMP_FILES, threads, CPUS, child_shards);

// Assign temporary files to threads

std::vector<task> tasks;
Expand Down
Loading