Lightweight Function Monitors for Fine-Grained Management in Large Scale Python Applications

Tim Shaffer, Zhuozhao Li, Ben Tovar, Yadu N. Babuji, T. J. Dasso, Zoe Surma, Kyle Chard, Ian T. Foster, Douglas Thain

Abstract

Python has become a widely used programming language for research, not only for small one-off analyses, but also for complex application pipelines running at supercomputer-scale. Modern parallel programming frameworks for Python present users with a more granular unit of management than traditional Unix processes and batch submissions: the Python function. We review the challenges involved in running native Python functions at scale, and present techniques for dynamically determining a minimal set of dependencies and for assembling a lightweight function monitor (LFM) that captures the software environment and manages resources at the granularity of single functions. We evaluate these techniques in a range of environments, from campus cluster to supercomputer, and show that our advanced dependency management planning and dynamic resource management methods provide superior performance and utilization relative to coarser-grained management approaches, achieving several-fold decrease in execution time for several large Python applications.
BibTeX
@inproceedings{shaffer2021lightweight,
  author = {Tim Shaffer and Zhuozhao Li and Ben Tovar and Yadu N. Babuji and T. J. Dasso and Zoe Surma and Kyle Chard and Ian T. Foster and Douglas Thain},
  title = {{Lightweight Function Monitors for Fine-Grained Management in Large Scale Python Applications}},
  booktitle = {IPDPS},
  year = {2021},
  doi = {10.1109/ipdps49936.2021.00088},
}

Loading related content...

Figure