You can essentially accelerate the data processing by your macros with Parallel Root Facility (PROOF). The information about PROOF system parallelizing ROOT macros is presented here.
The PROOF system is a part of the ROOT environment and included in ROOT distribution that is why one do not need to install additional software. It uses data independent parallelism based on the lack of correlation of events to process different events in parallel that leads to good scalability. One of the important PROOF properties is transparency: the same program code can execute both sequentially and concurrently. PROOF orients on three parallel architectures. PROOF-Lite parallelizes the data processing on one multiprocessor or multi-core machine. PROOF parallelizes processing on heterogeneous computing clusters and in Grid system.
PROOF support was added to the software of our experiment and reconstruction code was rewritten according to the PROOF rules and classes. The last new parameter of the reconstruction: run_type has default ‘local’ value for sequential processing, i.e. without PROOF. There are two possibilities to use PROOF in the reconstruction: on user multi-core local machine or on the PROOF cluster:
1. To parallel event processing on your multi-core local machine with PROOF-Lite, you can use ‘proof’ string value and can limit the threads number by “workers” number, e.g. for MpdRoot:
$ root reco.C(“file_to_process.root”, “result_file.root”, 0, 1000, “proof”)
– where 0 – number of the start event, 1000 – count of events to process. In this case PROOF parallelizes processing of 1000 events with thread count being equal logical processor count of your machine.
In the following case PROOF parallelizes event processing with number of threads being equal 5, i.e. given in the last parameter:
$ root reco.C(“file_to_process.root”, “result_file.root”, 0, 1000, “proof:workers=5”)
2. To speed up the event reconstruction on the PROOF cluster with PROOF server, the last parameter is used and also can limit the number of the workers.
PROOF parallelizes the processing of 1000 event on the NICA prototype cluster with number of process being equal the count of logical processors allocated for PROOF:
$ root reco.C(“file_to_process.root”, “result_file.root”, 0, 1000, “proof:mpd@ncx10[1-6].jinr.ru:21001”)
In order to parallel event processing with PROOF on the NICA prototype cluster by 15 workers (processes):
$ root reco.C(“file_to_process.root”, “result_file.root”, 0, 1000, “proof:mpd@ncx10[1-6].jinr.ru:21001:workers=15”)
The reconstruction macro has the comment lines with different examples at the beginning to run the event reconstruction with PROOF in parallel.
Using PROOF in software of the experiment is also decribed at this MS PowerPoint presentation. If you often use your analysis macro that takes a lot of time and you want to parallelize it with PROOF or you have any questions about PROOF parallelization in our software, please, email gertsen@jinr.ru.