arXiv:2610.26609cs.DCOct 2026

Manuscript Offprint

arXiv:2610.26609

CQTwin: A Digital-Twin Toolkit for Operational Analytics of HPC Schedulers

Kanglin Xu, Yash Kurkure, Yihe Zhang, Michael E. Papka, Zhiling Lan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kanglin Xu*, Yash Kurkure*, Yihe Zhang*, Michael E. Papka†, Zhiling Lan†

*Department of Computer Science, University of Illinois Chicago, Chicago, IL, USA

†Argonne National Laboratory, Lemont, IL, USA

Abstract—HPC facilities collect years of job scheduler records, yet much of this operational data remains underused because accessible tools for turning it into actionable insight are scarce. We present CQTwin, an open-source digital-twin toolkit for operational analytics of HPC scheduling data. CQTwin addresses this gap through two complementary modes: offline trace replay and online event-driven simulation. Built on the Python-based CQSim discrete-event simulator, CQTwin combines a fidelity-validated, high-performance C++ engine with an interactive browser-based dashboard and a Snapshot Lab, enabling facility staff, operators, and researchers to characterize workloads, compare scheduling policies, and explore what-if scenarios. As an offline twin, CQTwin replays archived workload traces under alternative policies to show how the same workload would have unfolded under different scheduling decisions. As an online twin, it consumes job events as they arrive and projects how alternative policies would process the currently queued jobs, providing guidance for real-time decision-making. The dashboard supports the complete analysis workflow, including workload characterization, experiment configuration and monitoring, and multidimensional comparison of simulation results, allowing users to determine visually which policies best suit a workload and what trade-offs they entail. We validate CQTwin using production traces from the Argonne Leadership Computing Facility spanning 2016–2023.

Index Terms—operational data analytics, batch scheduling, digital twin, discrete-event simulation, workload analysis

I. INTRODUCTION

High-performance computing (HPC) facilities continuously generate rich streams of operational data, including system logs, hardware telemetry, and job logs. Among these sources, scheduler records provide a particularly comprehensive view of facility operation: the lifecycle of every submitted job, how users request resources, how workloads evolve over time, and how scheduling decisions affect wait time, utilization, and fairness [1]. Public archives of production workload traces have therefore become a foundation for reproducible workload characterization and scheduling research [2], [3].

A persistent gap, however, separates collecting scheduler data from acting on it. Operations teams may accumulate years of scheduler telemetry, yet lack accessible tools for translating those records into answers to practical policy questions. These questions generally require two distinct modes of analysis. Some are retrospective: What would the average wait time have been under a different priority policy? Would another backfilling strategy improve fairness at the cost of utilization? These are offline questions: the full trace is known, a candidate policy can be replayed from beginning to end, and their aggregate outcomes can be compared. Other questions arise during operation: Given the jobs queued and running now, which policy is likely to clear the backlog fastest? Should the policy change as the workload shifts? These are online questions: jobs become known only when they arrive, and decisions must be evaluated without access to future submissions.

A digital twin of the batch scheduler can support both forms of analysis. Offline, the twin can replay historical workloads under counterfactual policies without disrupting production. Online, it can mirror the scheduler-visible state and project the near-term consequences of alternative decisions before they are committed. Together, these modes can turn scheduler records from passive archives into an operational decision-support resource.

Turning scheduler data into operational insight, however, remains harder than it should be. First, existing open-source trace simulators [4]–[8] are primarily programming frameworks that demand simulation expertise to set up experiments and compare outcomes ( §II§II). Support for online decision-making without future-workload knowledge is very limited. Moreover, the surrounding workflow, from ingesting scheduler records to configuring experiments and comparing outcomes, is rarely exposed through an interface designed for facility staff. The resulting gap is not simply a lack of simulation methods, but a lack of operationally usable analytics that connects those methods to day-to-day facility decisions. Closing this gap is a central objective of this work.

We present CQTwin, an open-source toolkit that provides offline and online digital twins for HPC schedulers, together with an interactive dashboard, that turns operational scheduling data into actionable insights for facility staff, operators, and researchers. Rather than building a simulator from scratch, CQTwin builds on CQSim [8]–[11], a Python-based, open-source discrete-event simulator refined through more than a decade of trace-driven scheduling research. CQTwin preserves CQSim's scheduling semantics, while adding a high-performance C++ discrete-event engine, an online event-streaming interface, and a browser-based environment for operational analysis.

Offline twin: trace replay. In offline mode, CQTwin replays a complete production trace by submitting each job at its recorded arrival time and allowing a selected scheduling policy and backfilling strategy to determine when that job starts. This replay reveals how the same workload would have unfolded under a policy different from the one used in production. Users can compare per-job wait times, slowdown, system utilization,

Accepted at the 1st International Workshop on HPC Operational Data Analytics (HPC-ODA 2026), held with SC26, November 15–20, 2026, Chicago, Illinois, USA. © 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

and fairness across policies without modifying or disrupting the production scheduler.

Online twin: real-time decision support. In online mode, jobs enter the twin only as their arrival events are received. At each scheduling cycle, the twin therefore contains exactly the information that would be visible to a live scheduler. From this state, CQTwin can generate projections showing how each policy in a user-selected pool would process the current workload. It can also expose scheduling control to an external agent, enabling learning-based or adaptive policy selection [12].

Visual dashboard: analysis without scripting. CQTwin integrates these capabilities into a browser-based dashboard that supports the complete analysis workflow. Users can load a job trace in the Standard Workload Format (SWF) [13], examine job sizes, runtimes, arrival patterns, and queue pressure, and then configure and launch simulations through a web form. Completed runs are summarized through interactive plots and tables, including wait-time distributions, utilization timelines, and side-by-side policy comparisons, without requiring post-processing scripts. Moreover, the dashboard includes a Snapshot Lab for state-level what-if analysis: users can freeze a simulated system state, inspect its queued and running jobs, and replay counterfactual interventions such as policy switches or planned system downtime.

Together, these components support an end-to-end operational workflow. For example, an operator observing rising wait times can load a recent trace, compare candidate scheduling policies, and inspect the resulting tradeoffs directly in the dashboard. The offline twin shows how each policy would have performed over the observed workload, while the online twin reveals, cycle by cycle and without hindsight, when an alternative policy would have processed the scheduler-visible workload more effectively. Analyses that previously required simulator expertise, custom scripts, and separate visualization pipelines can therefore be completed within a single interactive environment.

We validate CQTwin using production workload traces from the Argonne Leadership Computing Facility (ALCF) spanning 2016–2023. The C++ engine exactly reproduces Python CQSim's per-job wait times, with zero divergence across 50,000 jobs under five scheduling policies. This equivalence extends through the online path: a stream-fed online run exactly reproduces trace-driven replay across the complete 147,513-job Polaris-2023 trace, establishing an end-to-end fidelity chain from the event stream to the validated reference implementation. The engine replays a year-long production trace in 2.3 seconds, achieving up to a 24×24\times speedup over the original Python-based CQSim. Per-cycle projections add approximately 0.66 ms of overhead while leaving the committed schedule unchanged, and a greedy controller demonstrates end-to-end external policy control by switching the committed policy 3,084 times during a year-long run through the Gym-style interface.

References (26)