@@ -372,6 +372,53 @@ faster with the already built database. Therefore, it's normal that the first ru
372372takes much longer time than what the benchmark eventually reports. The database will
373373be 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+
385+ You can download these datasets from the following Github repository:
386+
387+ ```
388+ https://github.com/facebookresearch/DCPerf-datasets
389+ ```
390+
391+ 2. Make sure that you get the latest version of DCPerf and check out the latest commit in the `v2-beta` branch.
392+ If you've installed SparkBench with an older version of DCPerf,
393+ we recommend you clean and re-install SparkBench.
394+
395+ 3. If you have run SparkBench with a different dataset,
396+ please remove the data from previous runs so that SparkBench can rebuild database with the new dataset:
397+
398+ ```bash
399+ rm -rf /flash23/warehouse
400+ rm -rf <benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db
401+ ```
402+
403+ 4 . Create the ` /flash23 ` folder. Copy ` bpc_t93586_s2_synthetic_5GB `
404+ or ` bpc_t93586_s2_synthetic_1GB ` in the ` /flash23 ` folder.
405+ Note that SparkBench mini does not require the high I/O throughput
406+ as the regular version, so it's OK to put ` /flash23 ` folder on your system drive.
407+
408+ 5 . Run ` spark_standalone_remote_mini ` job on a real machine.
409+ This will create data in ` /flash23/warehouse `
410+ and ` <benchpressPath>/benchmarks/spark_standalone/spark-2.4.5-bin-hadoop2.7/metastore_db ` .
411+ Create a backup of these two folders. By default, this job uses the 5GB dataset.
412+ If you want to use the 1GB dataset, run the job with specifying the
413+ ` dataset_name ` parameter like this:
414+
415+ ``` bash
416+ ./benchpress run spark_standalone_remote_mini -i ' {"dataset_name":"bpc_t93586_s2_synthetic_1GB"}'
417+ ```
418+
419+ 6 . Run Spark mini on a real machine/emulator for the second time to reuse data,
420+ with the same commands and options.
421+
375422## Reusing database on another machine
376423
377424Building database takes a considerable amount of time, so it's advisable to consider
0 commit comments