Lune

EuroSys2021Top-tier venue

PaSh: light-touch data-parallel shell processing

Nikos Vasilakis, Konstantinos Kallas, Konstantinos Mamouras, Achilles Benetopoulos, Lazar Cvetkovic

Abstract

This paper presents PaSh, a system for parallelizing POSIX shell scripts. Given a script, PaSh converts it to a dataflow graph, performs a series of semantics-preserving program transformations that expose parallelism, and then converts the dataflow graph back into a script---one that adds POSIX constructs to explicitly guide parallelism coupled with PaSh-provided Unix-aware runtime primitives for addressing performance- and correctness-related issues. A lightweight annotation language allows command developers to express key parallelizability properties about their commands. An accompanying parallelizability study of POSIX and GNU commands---two large and commonly used groups---guides the annotation language and optimized aggregator library that PaSh uses. PaSh's extensive evaluation over 44 unmodified Unix scripts shows significant speedups (0.89--61.1×, avg: 6.7×) stemming from the combination of its program transformations and runtime primitives.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites POSH: A Data-Aware Shell
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites DiSh: Dynamic Shell-Script Distribution
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites Practically Correct, Just-in-Time Shell Script Parallelization
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites The Koala Benchmarks for the Shell: Characterization and Implications
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites Fractal: Fault-Tolerant Shell-Script Distribution
  • DiSh: Dynamic Shell-Script Distribution cites Offload Annotations: Bringing Heterogeneous Computing to Existing Libraries and Workloads
  • DiSh: Dynamic Shell-Script Distribution cites POSH: A Data-Aware Shell
  • DiSh: Dynamic Shell-Script Distribution cites Practically Correct, Just-in-Time Shell Script Parallelization
  • DiSh: Dynamic Shell-Script Distribution cites DiffStream: differential output testing for stream processing programs
  • Practically Correct, Just-in-Time Shell Script Parallelization cites POSH: A Data-Aware Shell
  • The Koala Benchmarks for the Shell: Characterization and Implications cites POSH: A Data-Aware Shell
  • The Koala Benchmarks for the Shell: Characterization and Implications cites DiSh: Dynamic Shell-Script Distribution
  • The Koala Benchmarks for the Shell: Characterization and Implications cites Practically Correct, Just-in-Time Shell Script Parallelization
  • Fractal: Fault-Tolerant Shell-Script Distribution cites POSH: A Data-Aware Shell
  • Fractal: Fault-Tolerant Shell-Script Distribution cites DiSh: Dynamic Shell-Script Distribution
  • Fractal: Fault-Tolerant Shell-Script Distribution cites Practically Correct, Just-in-Time Shell Script Parallelization
  • Fractal: Fault-Tolerant Shell-Script Distribution cites The Koala Benchmarks for the Shell: Characterization and Implications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Practically Correct, Just-in-Time Shell Script ParallelizationKonstantinos Kallas, Tammam Mustafa, Jan Bielak, Dimitris Karnikis et al.OSDI 2022 · 13 citations
  2. The Koala Benchmarks for the Shell: Characterization and ImplicationsEvangelos Lamprou, Ethan Williams, Georgios Kaoukis, Zhuoxuan Zhang et al.USENIX ATC 2025 · 12 citations
  3. DiSh: Dynamic Shell-Script DistributionTammam Mustafa, Konstantinos Kallas, Pratyush Das, Nikos VasilakisNSDI 2023 · 11 citations
  4. Incr: Faster Re-Execution via Bolt-On IncrementalizationYizheng Xie, Evangelos Lamprou, Jerry Xia, Nikos VasilakisOSDI 2026 · 4 citations
  5. Fractal: Fault-Tolerant Shell-Script DistributionZhicheng Huang, Ramiz Dundar, Yizheng Xie, Konstantinos Kallas et al.NSDI 2026 · 4 citations

Builds on4

  1. BreakApp: Automated, Flexible Application CompartmentalizationNikos Vasilakis, Ben Karel, Nick Roessler, Nathan Dautenhahn et al.NDSS 2018 · 66 citations
  2. POSH: A Data-Aware ShellDeepti Raghavan, Sadjad Fouladi, Philip Alexander Levis, Matei ZahariaUSENIX ATC 2020 · 33 citations
  3. DiffStream: differential output testing for stream processing programsKonstantinos Kallas, Filip Niksic, Caleb Stanford, Rajeev AlurOOPSLA 2020 · 18 citations
  4. Offload Annotations: Bringing Heterogeneous Computing to Existing Libraries and WorkloadsGina Yuan, Shoumik Palkar, Deepak Narayanan, Matei ZahariaUSENIX ATC 2020 · 11 citations

Related papers

  1. hS: Speculative Script Reordering at Subprocess GranularityGeorgios Liargkovas, Di Jin, Tianyu (Ezri) Zhu, Dan Liu et al.OSDI 2026 · 3 citations
  2. Executable formal semantics for the POSIX shellMichael Greenberg, Austin J. BlattPOPL 2020 · 21 citations
  3. Ahead-of-Time Analysis of Shell Program EffectsLukas Lazarek, Evangelos Lamprou, George Kapetanakis, Anirudh Narsipur et al.SOSP 2026
  4. Discovering Parallelisms in Python ProgramsSiwei Wei, Guyang Song, Senlin Zhu, Ruoyi Ruan et al.FSE 2023 · 1 citation
  5. Pasta: A Cost-Based Optimizer for Generating Pipelining Schedules for Dataflow DAGsXiaozhen Liu, Yicong Huang, Xinyuan Lin, Avinash Kumar et al.SIGMOD 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines