numpywren: serverless linear algebra
Vaishaal Shankar, Karl Krauth, Qifan Pu et al. · arXiv (Cornell University) · 2018
Linear algebra operations are widely used in scientific computing and machine learning applications. However, it is challenging for scientists and data analysts to run linear algebra at scales beyond a single machine. Traditional approaches either require access to supercomputing clusters, or impose configuration and cluster management challenges. In this paper we show how the disaggregation of storage and compute resources in so-called "serverless" environments, combined with compute-intensive workload characteristics, can be exploited to achieve elastic scalability and ease of management. We present numpywren, a system for linear algebra built on a serverless architecture. We also introduce LAmbdaPACK, a domain-specific language designed to implement highly parallel linear algebra algorithms in a serverless setting. We show that, for certain linear algebra algorithms such as matrix multiply, singular value decomposition, and Cholesky decomposition, numpywren's performance (completion time) is within 33% of ScaLAPACK, and its compute efficiency (total CPU-hours) is up to 240% better due to elasticity, while providing an easier to use interface and better fault tolerance. At the same time, we show that the inability of serverless runtimes to exploit locality across the cores in a machine fundamentally limits their network efficiency, which limits performance on other algorithms such as QR factorization. This highlights how cloud providers could better support these types of computations through small changes in their infrastructure.
Cited by 64 works. doi:10.48550/arxiv.1810.09679 Open-access PDF
Authors
- Vaishaal Shankar
- Karl Krauth
- Qifan Pu
- Eric Jonas
- Shivaram Venkataraman
- Ion Gabriel Stoica
- Benjamin Recht
- Jonathan Ragan‐Kelley
References
- Dryad
- Leases: an efficient fault-tolerant mechanism for distributed file cache consistency
- Proximal Algorithms
- Serverless Computation with OpenLambda.
- CIEL: a universal execution engine for distributed data-flow computing
- ScaLAPACK
- Dask: Parallel Computation with Blocked algorithms and Task Scheduling
- Auto-scaling to minimize cost and meet application deadlines in cloud workflows
- Efficient Autoscaling in the Cloud Using Predictive Models for Workload Forecasting
- Numerical linear algebra on emerging architectures: The PLASMA and MAGMA projects