Lune

NSDI2023Top-tier venue

DiSh: Dynamic Shell-Script Distribution

Tammam Mustafa, Konstantinos Kallas, Pratyush Das, Nikos Vasilakis

Abstract

Shell scripting remains prevalent for automation and dataprocessing tasks, partly due to its dynamic features-e.g., expansion, substitution-and language agnosticism-i.e., the ability to combine third-party commands implemented in any programming language. Unfortunately, these characteristics hinder automated shell-script distribution, often necessary for dealing with large datasets that do not fit on a single computer. This paper introduces DISH, a system that distributes the execution of dynamic shell scripts operating on distributed filesystems. DISH is designed as a shim that applies program analyses and transformations to leverage distributed computing, while delegating all execution to the underlying shell available on each computing node. As a result, DISH does not require modifications to shell scripts and maintains compatibility with existing shells and legacy functionality. We evaluate DISH against several options available to users today: (i) Bash, a singlenode shell-interpreter baseline, (ii) PASH, a state-of-the-art automated-parallelization system, and (iii) Hadoop Streaming, a MapReduce system that supports language-agnostic thirdparty components. Combined, our results demonstrate that DISH offers significant performance gains, requires no developer effort, and handles arbitrary dynamic behaviors pervasive in real-world shell scripts.

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.

6 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

  • PaSh: light-touch data-parallel shell processing cites POSH: A Data-Aware Shell
  • PaSh: light-touch data-parallel shell processing cites DiffStream: differential output testing for stream processing programs
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites PaSh: light-touch data-parallel shell processing
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites POSH: A Data-Aware Shell
  • 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
  • Incr: Faster Re-Execution via Bolt-On Incrementalization cites Riker: Always-Correct and Fast Incremental Builds from Simple Specifications
  • hS: Speculative Script Reordering at Subprocess Granularity cites PaSh: light-touch data-parallel shell processing
  • hS: Speculative Script Reordering at Subprocess Granularity cites POSH: A Data-Aware Shell
  • hS: Speculative Script Reordering at Subprocess Granularity cites Practically Correct, Just-in-Time Shell Script Parallelization
  • hS: Speculative Script Reordering at Subprocess Granularity cites The Koala Benchmarks for the Shell: Characterization and Implications
  • hS: Speculative Script Reordering at Subprocess Granularity cites Riker: Always-Correct and Fast Incremental Builds from Simple Specifications
  • Practically Correct, Just-in-Time Shell Script Parallelization cites PaSh: light-touch data-parallel shell processing
  • Practically Correct, Just-in-Time Shell Script Parallelization cites POSH: A Data-Aware Shell
  • The Koala Benchmarks for the Shell: Characterization and Implications cites PaSh: light-touch data-parallel shell processing
  • 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 Practically Correct, Just-in-Time Shell Script Parallelization
  • The Koala Benchmarks for the Shell: Characterization and Implications cites Riker: Always-Correct and Fast Incremental Builds from Simple Specifications
  • Fractal: Fault-Tolerant Shell-Script Distribution cites PaSh: light-touch data-parallel shell processing
  • Fractal: Fault-Tolerant Shell-Script Distribution cites POSH: A Data-Aware Shell
  • 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
  • Opportunistically Parallel Lambda Calculus cites PaSh: light-touch data-parallel shell processing
  • Opportunistically Parallel Lambda Calculus cites Practically Correct, Just-in-Time Shell Script Parallelization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. The Koala Benchmarks for the Shell: Characterization and ImplicationsEvangelos Lamprou, Ethan Williams, Georgios Kaoukis, Zhuoxuan Zhang et al.USENIX ATC 2025 · 12 citations
  2. Incr: Faster Re-Execution via Bolt-On IncrementalizationYizheng Xie, Evangelos Lamprou, Jerry Xia, Nikos VasilakisOSDI 2026 · 4 citations
  3. Fractal: Fault-Tolerant Shell-Script DistributionZhicheng Huang, Ramiz Dundar, Yizheng Xie, Konstantinos Kallas et al.NSDI 2026 · 4 citations
  4. hS: Speculative Script Reordering at Subprocess GranularityGeorgios Liargkovas, Di Jin, Tianyu (Ezri) Zhu, Dan Liu et al.OSDI 2026 · 3 citations
  5. Opportunistically Parallel Lambda CalculusStephen Mell, Konstantinos Kallas, Steve Zdancewic, Osbert BastaniOOPSLA 2025 · 2 citations

Builds on6

  1. POSH: A Data-Aware ShellDeepti Raghavan, Sadjad Fouladi, Philip Alexander Levis, Matei ZahariaUSENIX ATC 2020 · 33 citations
  2. DiffStream: differential output testing for stream processing programsKonstantinos Kallas, Filip Niksic, Caleb Stanford, Rajeev AlurOOPSLA 2020 · 18 citations
  3. Practically Correct, Just-in-Time Shell Script ParallelizationKonstantinos Kallas, Tammam Mustafa, Jan Bielak, Dimitris Karnikis et al.OSDI 2022 · 13 citations
  4. PaSh: light-touch data-parallel shell processingNikos Vasilakis, Konstantinos Kallas, Konstantinos Mamouras, Achilles Benetopoulos et al.EuroSys 2021 · 12 citations
  5. Riker: Always-Correct and Fast Incremental Builds from Simple SpecificationsCharlie Curtsinger, Daniel W. BarowyUSENIX ATC 2022 · 12 citations

Related papers

  1. Ahead-of-Time Analysis of Shell Program EffectsLukas Lazarek, Evangelos Lamprou, George Kapetanakis, Anirudh Narsipur et al.SOSP 2026
  2. Executable formal semantics for the POSIX shellMichael Greenberg, Austin J. BlattPOPL 2020 · 21 citations
  3. 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
  4. Babelfish: Efficient Execution of Polyglot QueriesPhilipp Marian Grulich, Steffen Zeuch, Volker MarklVLDB 2022 · 32 citations
  5. BAASH: lightweight, efficient, and reliable blockchain-as-a-service for HPC systemsAbdullah Al-Mamun, Feng Yan, Dongfang ZhaoSC 2021 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines