@@ -372,6 +372,52 @@ 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+ 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
377423Building database takes a considerable amount of time, so it's advisable to consider
0 commit comments