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

Updated benchmark runner script #207

Closed
wants to merge 5 commits into from

Conversation

beckernick
Copy link
Member

@beckernick beckernick commented Apr 19, 2021

This PR:

  • Replaces the existing python runner with a bash script. By not keeping the parent python process alive for the life of the child query processes, we partially avoid the issue of dangling references and needing to explicitly free library handles that can't be allocated with RMM. This PR should (mostly) close Refactor benchmark runner to reduce memory overhead #203

We switched to using Python for the benchmark runner initially because we ran into errors related to library interactions, import order, and namespace visibility across nodes. At this point, we should longer need any special consideration.

There is some implicitly duplicated configuration (INCLUDE_BLAZING in addition to a configuration argument in the benchmark_config.yaml file, GPU_BDB_HOME, etc.), but this will be addressed in a follow-up that restructures a bit more broadly.

  • Confirm works as expected single node
  • Confirm works as expected multi-node (Slurm)
  • Update README

Copy link
Contributor

@randerzander randerzander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed question after reading the PR description

cd $GPU_BDB_HOME/gpu_bdb/queries/q$qnum/
for j in $(seq 1 $N_REPEATS)
do
python gpu_bdb_query_$qnum\_sql.py --config_file ../../benchmark_runner/benchmark_config.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that launching a process for each script will add library import-related overheads which for 30 queries quickly add up for the whole benchmark.

IIRC they add to like 30-50s of the whole run time which is significant

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good point, and something I had forgotten. Let's discuss this more offline

@beckernick
Copy link
Member Author

@ayushdg @ChrisJar is this safe to close?

@randerzander
Copy link
Contributor

Closing as this this no longer relevant after many recent changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor benchmark runner to reduce memory overhead
3 participants