Bench host¶
The bench host (m8id.2xlarge, Ubuntu 24.04) runs the client remotely, which
includes the network in the measurement
(Run from the bench host). It isn't needed
for on-host runs, but it can be the runner
host for the target in its own region (g4dn). Connect with SSM
(Environment) and run sudo -iu ubuntu.
Quick install¶
After installing the packages (step 1) and syncing the code (step 2):
cd ~/snap-asr-bench && make install-bench
This does steps 3 and 4 below. Then configure the targets.
1. Install packages¶
sudo apt-get update
sudo apt-get install -y ffmpeg jq make tmux
sudo snap install aws-cli --classic
curl -LsSf https://astral.sh/uv/install.sh | sh
The AWS CLI is only used to sync code. The client uses boto3.
2. Get the code¶
Sync it from S3 to ~/snap-asr-bench
(Deploy code via S3).
3. Mount the instance store¶
The m8id.2xlarge has one 474 GB NVMe instance-store volume, which Ubuntu doesn't format or mount. The client keeps inputs, extracted audio and logs on it so that disk reads never touch EBS.
sudo ~/snap-asr-bench/deploy/bench/mount-instance-store.sh
findmnt /mnt/nvme
The script formats the volume as ext4 if it's blank and mounts it at
/mnt/nvme, owned by ubuntu. It does nothing if /mnt/nvme is already
mounted, and it adds no /etc/fstab entry.
Instance-store data is temporary
Data survives a reboot but is wiped on stop/start, hibernation or host failure. With no fstab entry, the volume isn't remounted either, so re-run the mount script after any reboot or stop/start. Results are uploaded to S3 at the end of each run for this reason.
4. Install the client¶
cd ~/snap-asr-bench
UV_NO_DEV=1 uv sync
uv run snap-asr-bench --help
uv sync uses the system Python 3.12 (pinned in .python-version) and the
exact versions in uv.lock.
5. Configure targets¶
cp targets.example.toml targets.toml
Fill in the private IPs from terraform -chdir=terraform output private_ips
on your workstation. See Configuration.