2.73 KB
Newer Older
Rosen Matev's avatar
Rosen Matev committed
# LHCb benchmark scripts (MOVED TO [PrConfig](
Marian Stahl's avatar
Marian Stahl committed
This repository provides a set of scripts to benchmark Moore.
It is used to run [Performance and Regression]( (PR) tests on top of nightly builds.

5 6 7 8 9 10
## Work locally to make flamegraphs or get throughputs
We recommend to work in the [lb-stack-setup]( environment.
Once the stack is set up and built, and `lhcb-benchmark-scripts` is cloned, making flamegraphs or throughputs becomes a one-liner.

Have a look at the current PR nightly tests for Moore, that live in `scripts`. These are shell scripts that just call the main `` script with appropriate options. Most will run a throughput test first, and then a profiling test. You may want to (copy and) edit such a script. The script can then be executed in the runtime environment which has been previously set up like so:
Marian Stahl's avatar
Marian Stahl committed
../utils/build-env bash -c 'source /cvmfs/; ../Moore/build.$BINARY_TAG/run scripts/'
Marian Stahl's avatar
Marian Stahl committed
This assumes that you are in the `lhcb-benchmark-scripts` directory and your stack directory is one level above. Within the `lb-stack-setup` env, the Intel VTune tools have to be setup (`source /cvmfs/`). This is only needed if you want to run a profiling job (i.e. make a flamegraph). The rest of the command is calling the shell script in your custom built Moore environment.
14 15

### Input files
Marian Stahl's avatar
Marian Stahl committed
16 17 18
To get reliable throughput numbers, input files are copied to *local* (not mounted) storage. This copy is temporary and will be done every time a test is run (unless the exact same file was already downloaded). To speed up your local tests, we recommend to download the input manually and pass it to the test with the `-f` option.<br>
We ran into cornercases where input files couldn't be downloaded. If this happens, try to download it yourself to a local folder and pass this file to the `-f` option.<br>
In some cases the IO optimizations need to be switched off. Try setting `use_iosvc=False`, `event_store="HiveWhiteBoard"` in your Moore options if you see failures from `LHCb__MDF__IOSvcMM` 
19 20

### Cleaning up
Running local tests produces some output in the current directory. If you ran the commands from the `lhcb-benchmark-scripts` directory, you can clean up all these files with `./` or `git clean`.<br> A dry run can be done with `git clean -nxd`. Running `git clean -fxd` will remove the files.
22 23

Running profiling jobs will also change the `` file. These changes should not be committed and you can ignore them with `git update-index --assume-unchanged`