Scalability Model for the LOFAR Direction Independent Pipeline
A.P. Mechev, T.W. Shimwell, A. Plaat, H. Intema, A.L., Varbanescu, H.J.A Rottgering

TL;DR
This paper develops a scalability model for the LOFAR DI pipeline, enabling prediction and optimization of processing times for large radio astronomy data sets, thereby improving efficiency for large surveys.
Contribution
The paper presents a comprehensive scalability model for the LOFAR prefactor pipeline, incorporating parameters like CPU count and data size, to optimize processing of large astronomical datasets.
Findings
Smaller calibration models significantly reduce calibration time.
The model accurately predicts processing times across various parameters.
Shared cluster processing incurs measurable performance penalties.
Abstract
LOFAR is a leading aperture synthesis telescope operated in the Netherlands with stations across Europe. The LOFAR Two-meter Sky Survey (LoTSS) will produce more than 3000 14 TB data sets, mapping the entire northern sky at low frequencies. The data produced by this survey is important for understanding the formation and evolution of galaxies, supermassive black holes and other astronomical phenomena. All of the LoTSS data needs to be processed by the LOFAR Direction Independent (DI) pipeline, prefactor. Understanding the performance of this pipeline is important when trying to optimize the throughput for large projects, such as LoTSS and other deep surveys. Making a model of its completion time will enable us to predict the time taken to process large data sets, optimize our parameter choices, help schedule other LOFAR processing services, and predict processing time for future large…
| Averaging | |||
|---|---|---|---|
| ratio | Time averaging | ||
| Channels per Subband | Averaged | ||
| Size (Gb) | |||
| 64x | 8 | 2 | 1.235 |
| 32x | 4 | 2 | 2.459 |
| 16x | 2 | 2 | 4.906 |
| 8x | 1 | 2 | 9.802 |
| 4x | 1 | 4 | 18.00 |
| 2x | 1 | 8 | 36.72 |
| 1x | 1 | 16 | 66.88 |
| Sky model # | min sensitivity | # sources |
|---|---|---|
| model 1 | 0.05 Jy | 809 |
| model 2 | 0.1 Jy | 503 |
| model 3 | 0.3 Jy | 180 |
| model 4 | 0.5 Jy | 96 |
| model 5 | 0.8 Jy | 49 |
| model 6 | 1.0 Jy | 34 |
| model 7 | 1.5 Jy | 16 |
| Calibration Model Flux Cutoff | # of sources | RMS Noise (Jy) |
| 0.05Jy | 809 | 0.00402834 |
| 0.3 Jy | 180 | 0.00402311 |
| 0.8 Jy | 49 | 0.00404181 |
| 1.5 Jy | 16 | 0.00410204 |
| NCPU requested | Mean time (sec) | Median time (sec) | 75th percentile (sec) |
|---|---|---|---|
| 1 CPU | 150.5 | 116.2 | 154.1 |
| 2 CPU | 201.1 | 125.8 | 165.8 |
| 3 CPU | 296.2 | 152.0 | 243.0 |
| 4 CPU | 498.9 | 167.7 | 233.7 |
| 8 CPU | 1944.2 | 428.4 | 2142.4 |
| 16 CPU | 7079.0 | 696.4 | 8750.6 |
| prefactor step | P value | Standard Error | |
|---|---|---|---|
| predict_ateam | 0.996 | 0 | |
| ateamcliptar | 0.979 | 0 | |
| dpppconcat | 0.999 | ||
| gsmcal_solve 16GB | 0.995 | ||
| gsmcal_solve 16GB | 0.951 | ||
| gsmcal_apply | 0.989 |
| Value of | P value | Standard Error | |
|---|---|---|---|
| 0.382 | 0.381 | 37.086 | |
| 0.986 | 0.075 | 86.293 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Scalability Model for the LOFAR Direction Independent Pipeline
A.P. Mechev a
T.W. Shimwell b
A. Plaat c
H. Intema ad
A.L. Varbanescu e
H.J.A Rottgering a
a Leiden Observatory, Niels Bohrweg 2, 2333 CA Leiden, the Netherlands
b ASTRON, Oude Hoogeveensedijk 4, 7991 PD , The Netherlands
c Leiden Institute of Advanced Computer Science, Niels Bohrweg 1, 2333 CA Leiden, the Netherlands
d International Centre for Radio Astronomy Research – Curtin University, GPO Box U1987, Perth, WA 6845, Australia
e University of Amsterdam, Spui 21, 1012 WX Amsterdam, the Netherlands
Abstract
LOFAR is a leading aperture synthesis telescope operated in the Netherlands with stations across Europe. The LOFAR Two-meter Sky Survey (LoTSS) will produce more than 3000 14 TB data sets, mapping the entire northern sky at low frequencies. The data produced by this survey is important for understanding the formation and evolution of galaxies, supermassive black holes and other astronomical phenomena. All of the LoTSS data needs to be processed by the LOFAR Direction Independent (DI) pipeline, prefactor. Understanding the performance of this pipeline is important when trying to optimize the throughput for large projects, such as LoTSS and other deep surveys. Making a model of its completion time will enable us to predict the time taken to process large data sets, optimize our parameter choices, help schedule other LOFAR processing services, and predict processing time for future large radio telescopes. We tested the prefactor pipeline by scaling several parameters, notably number of CPUs, data size and size of calibration sky model. We present these results as a comprehensive model which will be used to predict processing time for a wide range of processing parameters. We also discover that smaller calibration models lead to significantly faster calibration times, while the calibration results do not significantly degrade in quality. Finally, we validate the model and compare predictions with production runs from the past six months, quantifying the performance penalties incurred by processing on a shared cluster. We conclude by noting the utility of the results and model for the LoTSS Survey, LOFAR as a whole and for other telescopes.
keywords:
Radio Astronomy , Performance Analysis , Performance Modelling , High Performance Computing , Scalability
††journal: Astronomy And Computing
\DeclareCaptionType
equ[Equation][List of Equations]
1 Introduction
Astronomy has entered the big data era with many projects creating petabytes of data per year. This data is often processed by complex multi-step pipelines consisting of various algorithms. Understanding the scalability of astronomical algorithms theoretically, in a controlled environment, and in production is important for making predictions for the data reduction of future projects and upcoming telescopes.
The Low Frequency Array (LOFAR) (Van Haarlem et al., 2013) is a leading European low-frequency radio telescope. The majority of LOFAR’s stations are in the Netherlands, however the telescope can use stations across Europe to create ultra-high resolution radio maps. LOFAR data needs to undergo several computationally intensive processing steps before obtaining a final scientific image.
To create a broadband image, LOFAR data is first processed by a Direction Independent (DI) Calibration pipeline followed by Direction Dependent (DD) Calibration pipeline (e.g. Van Weeren et al., 2016, Williams et al., 2016, Smirnov and Tasse, 2015, Tasse et al., 2018). The goal of DI calibration is to remove effects that are constant across the target field such as radio frequency interference, contamination by bright off-axis sources and antenna gains. After this step, DD Calibration focuses on removing effects which vary across the field, such as ionospheric and beam effects. The result of these two pipelines is a science-ready image.
Our implementation of the DI LOFAR processing, prefactor, can be parallelized on a high throughput cluster (Mechev et al., 2017). The Direction Dependent processing, implemented in ddf-pipeline111Available at https://github.com/mhardcastle/ddf-pipeline/releases, is subsequently performed on a single HPC node.
The LOFAR Surveys Key Science Project (SKSP) (Shimwell et al., 2017, 2018) is a long running project consisting of several low frequency surveys of the northern sky. The broadest tier of the survey, LoTSS, will use more than 3000 8-hour observations to create maps with a noise levels below 100 Jy. We have already processed more than 500 of these observations using the prefactor DI pipeline (Van Weeren et al., 2016, Horneffer et al., 2018).
While the current LoTSS imaging algorithms can process data averaged by up to a factor of 64 in frequency and time, it is important to understand how LOFAR processing scales with processing parameters, such as averaging parameters. Since LOFAR data is used by multiple scientific teams, not every team can produce scientific results from data averaged by such a high factor. Users from those teams need to be able to predict the time and computational resources required to process their data, taking into account the increasing LOFAR observation rates, data sizes and scientific requirements.
We study the scalability of processing LOFAR data, by setting up processing of a sample SKSP data set on an isolated node on the GINA cluster at SURFsara, part of the Dutch national e-infrastructure (Templon and Bot, 2016). We test the software performance as a function of several parameters, including averaging parameters, number of CPUs and calibration model size. Additionally, we test the performance of the underlying infrastructure, i.e. queuing and download time, for the same parameters. Finally, we compare those isolated tests with our production runs of the prefactor pipeline to measure the overhead incurred by running on a shared system.
We discover that the computationally intensive LOFAR processing steps scale linearly with data size, and calibration model size. Additionally, we find that the time taken by these steps is inversely proportional to the number of CPUs used. We discover that the time to download and extract data on the GINA cluster is linear with size up to 32GB, but becomes slower beyond this data size. We also find that the queuing time on the GINA cluster grows exponentially for jobs requesting more than 8 CPUs. We validate these isolated tests with production runs of LOFAR data from the past six months. We combine all these tests into a single model and show its prediction power by testing the processing time for different combinations of parameters. Finally, we discuss the utility of our method, the results in this work and applications to the SKSP projects, the broader impact of our results to LOFAR processing and the applications for other large astronomical surveys. The major contributions of this work can be summarized as:
A model of processing time for the LOFAR Direction Independent Calibration Pipeline.
- 2.
A model of queueing time and file transfer time which is used by current or future jobs processed on the GINA cluster.
- 3.
Quantification of overheads incurred when processing in production.
- 4.
Validation of our methods with discussion of future applications.
We introduce LOFAR processing and other related work in Section 2 and describe our software setup and data processing methods in Section 3. We present our results and performance model in Section 4 and discussions and conclusions in Section 5.
2 Related Work
In previous work, we have parallelized the Direction Independent LOFAR pipeline on a High Throughput infrastructure (Mechev et al., 2017). While this parallelization has helped accelerate data processing for the SKSP project, creating a performance model of our software is required if we are to predict the resources taken by future jobs. This model will be particularly useful in understanding how processing parameters will affect run time.
In previous work, we have parallelized the Direction Independent LOFAR pipeline on a High Throughput infrastructure (Mechev et al., 2017). While this parallelization has helped accelerate data processing for the SKSP project, creating a performance model of our software is required if we are to predict the resources taken by future jobs. This model will be particularly useful in understanding how processing parameters will affect run time.
Performance modelling on a distributed system is an important field of study related to grid computing. A good model of the performance of tasks in distributed workflows can help more efficiently schedule these jobs on a grid environment (Sanjay and Vadhiyar, 2008). The performance modeling systems require knowledge of the source code and an analytical model of the slowest parts of the code (Xu et al., 1996). Many systems exist to model the performance of distributed jobs (Barnes et al., 2008, Xu et al., 1996, Kuperberg et al., 2008, Witt et al., 2018), with some employing Black Box testing (Yang et al., 2005, Kavulya et al., 2010) or tests on scientific benchmark cases (Carrington et al., 2006). Such performance analysis does not require intimate knowledge of the software and can be applied on data obtained from processing on a grid infrastructure.
Empirical modelling is useful in finding performance bugs in parallel code (Calotoiu et al., 2013) and modelling the performance of big data architectures (Castiglione et al., 2014). The insights from these models are used to optimize the architecture of the software system or determine bottlenecks in processing. Here, we use empirical modelling to determine how the LOFAR prefactor performance scales with different parameters.
3 Processing Setup
Using the LOFAR software installation described in Mechev et al. (2017), we processed a typical LOFAR SKSP observation222LOFAR Observation ID L658492, co-ordinates [17h42m21.785, +037d41m46.805] observed by the LOFAR High Band Array for 8 hours between 2018-06-20 and 2018-06-21., while changing the averaging rate in time and frequency. Changing these averaging parameters will change the final data size (with the data sizes studied shown in Table 3.1). We test the processing time for different averaging parameters by running 15 runs per parameter step.
The data used by the LOFAR surveys is archived at a time resolution of 1 second intervals and frequency resolution of 16 channels per subband (equivalent to 12kHz channel width). While some of the processing steps such as flagging of Radio Frequency Interference and removal of bright off-axis sources produce better results when performed on the high-resolution data, later steps can be performed on averaged data with little impact on the final product quality. To speed up processing, the raw data is averaged in time and frequency, decreasing the input data size to later tasks. The main aims of the LoTSS survey can be accomplished if the final data products from the prefactor pipeline are averaged to a time resolution of 8 seconds per sample and frequency of 2 channels per subband. These averaging parameters correspond to a reduction in data size by a factor of 64. Nevertheless, other science cases require less averaging of the data. Our aim is to understand how the processing of this larger data will scale. To measure the scalability of processing, we measure the performance of the prefactor pipeline for data sizes between the raw data of 64GB/subband and the averaged data of 1GB/subband. The tested data sizes and parameters are shown in table 3.1, and discussed in Section 4.1.1.
We performed the scalability tests on a dedicated node of the SURFsara GINA cluster, f18-01. The node is a typical hardware node used by our production LoTSS processing, however it is dedicated for the tests in order to ensure there is no contamination by other software. The node is described in Section 3.3.
We processed the sample data set with the LOFAR prefactor pipeline. The prefactor version used was the same as we use for the LOFAR SKSP broadband surveys (Horneffer et al., 2018). This software consists of several steps executed in sequence, shown graphically in Figure 1. The important prefactor steps are as follows. The predict_ateam and ateamcliptar steps predict the contamination by bright off-axis sources and remove these effects respectively. The dpppconcat step is responsible for concatenating 10 subbands into a single file which is in turn calibrated. The step gsmcal_solve is responsible for calibration of the data against a model of the radio sky. The solutions produced by gsmcal_solve are used by gsmcal_apply and applied to the scientific observation.
3.1 Processing Metrics
The goal for our scalability model is to understand the effect of several parameters on the job completion time of LOFAR software. We do this by testing the processing time for various values of data size, number of CPUs used and sky model size.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Aguado Sanchez et al. (2008) C. Aguado Sanchez, J. Bloomer, P. Buncic, L. Franco, S. Klemer, and P. Mato. CVMFS a file system for the Cern VM virtual appliance. In Proceedings of XII Advanced Computing and Analysis Techniques in Physics Research , volume 1, page 52, 2008.
- 2Barnes et al. (2008) B. J. Barnes, B. Rountree, D. K. Lowenthal, J. Reeves, B. De Supinski, and M. Schulz. A regression-based approach to scalability prediction. In Proceedings of the 22nd annual international conference on Supercomputing , pages 368–377. ACM, 2008.
- 3Calotoiu et al. (2013) A. Calotoiu, T. Hoefler, M. Poke, and F. Wolf. Using automated performance modeling to find scalability bugs in complex codes. In Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis , page 45. ACM, 2013.
- 4Carrington et al. (2006) L. Carrington, A. Snavely, and N. Wolter. A performance prediction framework for scientific applications. Future Generation Computer Systems , 22(3):336–346, 2006.
- 5Castiglione et al. (2014) A. Castiglione, M. Gribaudo, M. Iacono, and F. Palmieri. Exploiting mean field analysis to model performances of big data architectures. Future Generation Computer Systems , 37:203 – 211, 2014. ISSN 0167-739X. doi: https://doi.org/10.1016/j.future.2013.07.016 . URL http://www.sciencedirect.com/science/article/pii/S 0167739 X 13001611 . Special Section: Innovative Methods and Algorithms for Advanced Data-Intensive Computing Special Section: Sema
- 6Dijkema (2017) T. J. Dijkema. LOFAR Imaging Cookbook. Available at http://www.astron.nl/sites/astron.nl/files/cms/lofar_imaging_cookbook_v 19.pdf , 2017.
- 7Horneffer et al. (2018) A. Horneffer, W. Williams, T. Shimwell, C. Roskowinski, D. Rafferty, A. Mechev, M. Dziełak, S. Bourke, T. J. Dijkema, M. Hardcastle, and J. Sabater. apmechev/prefactor: LOTSS Data Release 1, Nov. 2018. URL https://doi.org/10.5281/zenodo.1487962 . · doi ↗
- 8Intema et al. (2017) H. Intema, P. Jagannathan, K. Mooley, and D. Frail. The GMRT 150 M Hz all-sky radio survey-first alternative data release TGSS ADR 1. Astronomy & Astrophysics , 598:A 78, 2017.
