Skip to content

Commit

Permalink
Move benchmark job to Linux VM - facebookincubator#2
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroerp committed Oct 12, 2022
1 parent 0c9f625 commit 1ee96f4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
35 changes: 31 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,21 +220,48 @@ jobs:
- post-steps

linux-benchmarks-basic:
executor: build
machine:
image: ubuntu-2004:current
resource_class: 2xlarge
environment:
CONBENCH_URL: https://velox-conbench.voltrondata.run/
steps:
- pre-steps
- checkout
- update-submodules
- run:
name: "Setup Ubuntu"
command: |
sudo ./scripts/setup-ubuntu.sh
- run:
name: "Setup Environment"
command: |
# Calculate ccache key.
git show -s --format=%cd --date="format:%Y%m%d" $(git merge-base origin/main HEAD) | tee merge-base-date
# Set up xml gtest output.
mkdir -p /tmp/test_xml_output/
echo "export XML_OUTPUT_FILE=\"/tmp/test_xml_output/\"" >> $BASH_ENV
# Set up ccache configs.
mkdir -p .ccache
echo "export CCACHE_DIR=$(realpath .ccache)" >> $BASH_ENV
ccache -sz -M 5Gi
- restore_cache:
name: "Restore CCache Cache"
keys:
- velox-ccache-debug-{{ arch }}-{{ checksum "merge-base-date" }}

- run:
name: "Build Benchmarks"
command: |
make benchmarks-basic-build NUM_THREADS=16 MAX_HIGH_MEM_JOBS=8 MAX_LINK_JOBS=8
make benchmarks-basic-build NUM_THREADS=8 MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=4
ccache -s
- run:
name: "Install Conbench, Benchalerts, and Veloxbench"
command: |
# upgrade python to 3.8 for this job
yum install -y python38
#yum install -y python38
sudo apt-get install python3.8
pip3.8 install conbench
pip3.8 install git+https://github.com/conbench/benchalerts.git@0.2.1
pip3.8 install scripts/veloxbench
Expand Down
5 changes: 3 additions & 2 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ sudo --preserve-env apt install -y \
bison \
flex \
tzdata \
wget
wget \
libprotobuf-dev

function run_and_time {
time "$@"
Expand Down Expand Up @@ -84,7 +85,7 @@ function install_protobuf {

function install_velox_deps {
run_and_time install_fmt
run_and_time install_protobuf
#run_and_time install_protobuf
}

(return 2> /dev/null) && return # If script was sourced, don't run commands.
Expand Down

0 comments on commit 1ee96f4

Please sign in to comment.