Skip to content

Commit ee25fd3

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 65cc0d2 commit ee25fd3

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

packages/django_workload/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ 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+
## Running Django_workload_arm_mini and Django_workload_mini
82+
83+
These jobs are shrunken versions of the Django_workload_arm and Django_workload jobs. They reuse the dataset generated by the full Django_workload_arm and Django_workload jobs and have a shorter runtime because they run only one iteration with the number of repetitions set to 100.
84+
To run these jobs follow the following steps:
85+
86+
1. Run either Django_workload_arm or Django_workload (not the mini versions).
87+
This will generate the necessary dataset and store it in /data/cassandra/data. We recommend to keep a backup of this data to avoid data loss.
88+
2. Run Django_workload_arm_mini or Django_workload_mini on the emulator or real system. These mini jobs will reuse the dataset generated in the previous step.
89+
8190
## Reporting
8291

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

packages/mediawiki/README.md

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

136+
## Running oss_performance_mediawiki_mini
137+
138+
This job is a shrunken version of oss_performance_mediawiki job. To run it, you can simply execute the following command:
139+
140+
```bash
141+
./benchpress run oss_performance_mediawiki_mini
142+
```
143+
144+
The oss_performance_mediawiki_mini job introduces additional options that allow you to:(i) reuse the temporary folder between runs, (ii) adjust the load generator seed, (iii) configure load generation durations for warmup, (iv) set the interval for JIT retranslation, and (v) specify a deterministic number of warmup iterations.
145+
146+
To reuse the temporary directory, run the oss_performance_mediawiki_mini job once and locate the path to the temp folder in the log output. Then, use that path for subsequent runs by specifying the temp_dir option. For example:
147+
148+
```bash
149+
./benchpress run oss_performance_mediawiki_mini -i '{"temp_dir":"/tmp/hhvm-nginxtIdDIr"}'
150+
```
151+
136152
### Reporting
137153

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

packages/spark_standalone/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,45 @@ 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 30s 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 Github by following the instructions in
385+
[Download dataset](#download-dataset) or from the Manifold bucket
386+
[benchpress_artifacts/tree/spark_standalone/dataset](https://www.internalfb.com/manifold/explorer/benchpress_artifacts/tree/spark_standalone/dataset).
387+
388+
2. Make sure that you get the latest version of DCPerf. If you use DCPerf from Github,
389+
please check out the latest commit in `v2-beta` branch. If you use the DCPerf fbpkg
390+
internally, please do `fbpkg.fetch cea.chips.benchpress` to get the latest version. If
391+
you've installed SparkBench with an older version of DCPerf, we recommend you clean and
392+
re-install SparkBench.
393+
394+
3. If you have run SparkBench with a different dataset, please remove the data from previous runs so that SparkBench can rebuild database with the new dataset:
395+
396+
```bash
397+
rm -rf /flash23/warehouse
398+
rm -rf <benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db
399+
```
400+
401+
4. Create the /flash23 folder. Copy the bpc_t93586_s2_synthetic_5GB or bpc_t93586_s2_synthetic_1GB in the /flash23 folder. Note that SparkBench mini does not
402+
require the high I/O throughput as the regular version, so it's OK to put `/flash23`
403+
folder on your system drive.
404+
405+
5. Run `spark_standalone_remote_mini` job on a real machine. This will create data in `/flash23/warehouse` and `<benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db`. Create a backup of these two folders. By default, this job uses the 5GB dataset. If you want to use the 1GB dataset, run the job with specifying the
406+
`dataset_name` parameter like this:
407+
408+
```bash
409+
./benchpress run spark_standalone_remote_mini -i '{"dataset_name":"bpc_t93586_s2_synthetic_1GB"}'
410+
```
411+
412+
6. Run Spark mini on a real machine/emulator for the second time to reuse data, with the same commands and options (See [Reusing database on another machine](#reusing-database-on-another-machine).
413+
375414
## Reusing database on another machine
376415

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

0 commit comments

Comments
 (0)