-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replicate TPC-H SF10 tuning results (#28)
**Summary**: Can now replicate TPC-H SF10 **tuning** results on dev 4. Note that **embedding** has not yet been replicated. **Demo**: After running HPO on dev 4 for 18 hours, we get to a runtime of 110s. We run with `--duration=4`, and 110s matches the performance in the Proto-X paper after 4 hours of tuning. ![Screenshot 2024-04-05 at 13 12 03](https://github.com/cmu-db/dbgym/assets/20631215/16babc69-4b42-434d-b1b3-eede0010f1da) **Details**: * Because I was only replicating tuning, I used an already-trained embedder. To replicate, use the `dbgym_manual/embedding/` folder on dev4. * The command I used was `python3 task.py --no-startup-check tune protox agent hpo tpch --scale-factor 10 --max-concurrent 4 --duration 4 --intended-pgdata-hardware ssd --pgdata-parent-dpath /mnt/nvme1n1/phw2/dbgym_tmp/`
- Loading branch information
1 parent
da7c5b0
commit 6400216
Showing
23 changed files
with
631 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,3 +122,4 @@ virtualenv==20.25.0 | |
Werkzeug==3.0.1 | ||
wrapt==1.14.1 | ||
zipp==3.17.0 | ||
ssd_checker==1.0.3 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
SCALE_FACTOR=10 | ||
|
||
# benchmark | ||
python3 task.py --no-startup-check benchmark tpch data $SCALE_FACTOR | ||
python3 task.py --no-startup-check benchmark tpch workload --scale-factor $SCALE_FACTOR | ||
|
||
# postgres | ||
python3 task.py --no-startup-check dbms postgres build | ||
python3 task.py --no-startup-check dbms postgres pgdata tpch --scale-factor $SCALE_FACTOR | ||
|
||
# embedding | ||
python3 task.py --no-startup-check tune protox embedding datagen tpch --scale-factor $SCALE_FACTOR --override-sample-limits "lineitem,32768" --intended-pgdata-hardware ssd --pgdata-parent-dpath /mnt/nvme1n1/phw2/dbgym_tmp/ | ||
python3 task.py --no-startup-check tune protox embedding train tpch --scale-factor $SCALE_FACTOR --train-max-concurrent 10 | ||
|
||
# agent | ||
python3 task.py --no-startup-check tune protox agent hpo tpch --scale-factor $SCALE_FACTOR --max-concurrent 4 --duration 4 --intended-pgdata-hardware ssd --pgdata-parent-dpath /mnt/nvme1n1/phw2/dbgym_tmp/ | ||
python3 task.py --no-startup-check tune protox agent tune tpch --scale-factor $SCALE_FACTOR |
Oops, something went wrong.