Skip to content

Commit f5fbe30

Browse files
Adding instructions for mini jobs to README files (#160)
Summary: Pull Request resolved: #160 This diff adss instructions for running Spark, Django, and Mediawiki mini job Differential Revision: D78453571
1 parent 9f9ed57 commit f5fbe30

3 files changed

Lines changed: 124 additions & 0 deletions

File tree

packages/django_workload/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,49 @@ If running on ARM platform, please use the job `django_workload_arm`:
7878
./benchpress_cli.py run django_workload_arm -r standalone
7979
```
8080

81+
### Run DjangoBench Mini
82+
83+
DjangoBench Mini is a shrunken version of DjangoBench that
84+
aims to reduce execution time to less than 30 seconds
85+
and can potentially be used for emulations.
86+
It reuses the dataset generated by the full DjangoBench and has a shorter runtime because
87+
it runs only one iteration with the number of repetitions set to 100.
88+
89+
To run DjangoBench, please follow these steps:
90+
91+
1. Make sure that you get the latest version of DCPerf and check out the latest commit in the `v2-beta` branch.
92+
If you've installed DjangoBench with an older version of DCPerf,
93+
we recommend you clean and re-install DjangoBench.
94+
95+
2. If you are using an ARM machine, run the `django_workload_arm` job on a real machine, like this:
96+
97+
```
98+
./benchpress run django_workload_arm -r standalone
99+
```
100+
101+
If you are using an x86 machine, run the `django_workload_default` job on a real machine, like this:
102+
103+
```
104+
./benchpress run django_workload_default -r standalone
105+
```
106+
107+
This will generates the necessary dataset and stores it in /data/cassandra/data.
108+
Create a backup of this folder to avoid data loss.
109+
110+
3. If you are using an ARM machine, run the `django_workload_arm_mini` job on a real machine/emulator, like this:
111+
112+
```
113+
./benchpress run django_workload_arm_mini -r standalone
114+
```
115+
116+
If you are using an x86 machine, run the `django_workload_mini` job on a real machine/emulator, like this:
117+
118+
```
119+
./benchpress run django_workload_mini -r standalone
120+
```
121+
122+
These mini jobs will reuse the dataset generated in the previous step.
123+
81124
## Reporting
82125

83126
Once the benchmark finishes on the django benchmarking machine, benchpress will

packages/mediawiki/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,41 @@ you can run the following:
133133
./benchpress_cli.py run oss_performance_mediawiki_mlp -i '{"scale_out": 3}'
134134
```
135135

136+
### Running Mediawiki mini
137+
138+
Mediawiki mini is a shrunken version of Mediawiki
139+
that aims to reduce execution time to less than two minutes.
140+
Mediawiki mini includes a few new options that
141+
allow user to customize the benchmarking process, including the following:
142+
143+
(i) Reuse the temporary folder between runs.
144+
(ii) Adjust the load generator seed.
145+
(iii) Configure load generation durations for warmup.
146+
(iv) Set the interval for JIT retranslation.
147+
(v) Specify a deterministic number of warmup iterations.
148+
149+
To run the mini version of
150+
Mediawiki, please follow these steps:
151+
152+
1. Make sure that you get the latest version of DCPerf and check out the latest commit in the `v2-beta` branch.
153+
If you've installed Mediawiki with an older version of DCPerf,
154+
we recommend that you clean and re-install Mediawiki.
155+
156+
2. Run the `oss_performance_mediawiki_mini` job with the following command:
157+
158+
```bash
159+
./benchpress run oss_performance_mediawiki_mini
160+
```
161+
162+
3. To reuse the temporary directory, please run the `oss_performance_mediawiki_mini` job once,
163+
locate the path to the temp folder in the log output,
164+
and then use that path for subsequent runs
165+
by specifying the temp_dir option. For example:
166+
167+
```bash
168+
./benchpress run oss_performance_mediawiki_mini -i '{"temp_dir":"/tmp/hhvm-nginxtIdDIr"}'
169+
```
170+
136171
### Reporting
137172

138173
After the benchmark finishes, benchpress will report the benchmark results in the

packages/spark_standalone/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,52 @@ faster with the already built database. Therefore, it's normal that the first ru
372372
takes much longer time than what the benchmark eventually reports. The database will
373373
be stored in `/flash23/warehouse`.
374374
375+
### Running SparkBench Mini
376+
377+
SparkBench Mini is a shrunken version of SparkBench that aims to reduce execution time to
378+
less than 30 seconds and can potentially be used for emulations. To run the mini version of
379+
SparkBench, please follow the following steps:
380+
381+
1. Download one of the down-sampled version of the dataset:
382+
- 5GB variant `bpc_t93586_s2_synthetic_5GB`
383+
- 1GB variant `bpc_t93586_s2_synthetic_1GB`
384+
You can download these datasets from the following Github repository:
385+
386+
```
387+
https://github.com/facebookresearch/DCPerf-datasets
388+
```
389+
390+
2. Make sure that you get the latest version of DCPerf and check out the latest commit in the `v2-beta` branch.
391+
If you've installed SparkBench with an older version of DCPerf,
392+
we recommend you clean and re-install SparkBench.
393+
394+
3. If you have run SparkBench with a different dataset,
395+
please remove the data from previous runs so that SparkBench can rebuild database with the new dataset:
396+
397+
```bash
398+
rm -rf /flash23/warehouse
399+
rm -rf <benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db
400+
```
401+
402+
4. Create the `/flash23` folder. Copy the `bpc_t93586_s2_synthetic_5GB`
403+
or `bpc_t93586_s2_synthetic_1GB` in the `/flash23` folder.
404+
Note that SparkBench mini does notrequire the high I/O throughput
405+
as the regular version, so it's OK to put `/flash23` folder on your system drive.
406+
407+
5. Run `spark_standalone_remote_mini` job on a real machine.
408+
This will create data in `/flash23/warehouse`
409+
and `<benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db`.
410+
Create a backup of these two folders. By default, this job uses the 5GB dataset.
411+
If you want to use the 1GB dataset, run the job with specifying the
412+
`dataset_name` parameter like this:
413+
414+
```bash
415+
./benchpress run spark_standalone_remote_mini -i '{"dataset_name":"bpc_t93586_s2_synthetic_1GB"}'
416+
```
417+
418+
6. Run Spark mini on a real machine/emulator for the second time to reuse data,
419+
with the same commands and options.
420+
375421
## Reusing database on another machine
376422

377423
Building database takes a considerable amount of time, so it's advisable to consider

0 commit comments

Comments
 (0)