smallfile workload plugin for Arcaflow
arca-smallfile is a workload plugin of the smallfile benchmark tool using the Arcaflow python SDK.
Supported smallfile parameters are defined in the SmallfileParams
schema of the smallfile_plugin.py file.
You define your test parameters in a YAML file to be passed to the plugin command as shown in smallfile-example.yaml.
To test:
In order to run the smallfile plugin run the following steps:
Containerized
- Cone this repository
- Create the container with
docker build -t arca-smallfile .
- Run
docker run arca-smallfile -f smallfile-example.yaml
Note that the smallfile-example.yaml
in this case is added to the container image with the docker build
command, so
the container should be rebuilt after any changes to the file.
Native
Prerequisite: smallfile should already be installed on your system.
- Clone this repository
- Create a
venv
in the current directory withpython3 -m venv ./venv
- Activate the
venv
by runningsource ./venv/bin/activate
- Run
pip install -r requirements.txt
- Edit
smallfile_plugin.py
to setsmallfile_dir=<path_to_smallfile_dir>
- Run
./smallfile_plugin.py -f smallfile-example.yaml