Probabilistic real-time analysis treats a program's running time as a random quantity rather than a single worst-case number. It promises large savings: processors can be loaded far beyond what worst-case sizing allows, because independent tasks rarely run long at the same moment. That promise rests on a quiet assumption. Every task's running-time distribution must be known exactly, down to probabilities as small as the one being certified. In practice these distributions come from a few thousand measured runs, and a value never observed in profiling gets probability zero. The analysis then reports a deadline-miss probability of, say, 10⁻¹¹ that is really a statement about the sample and not about the system. This is the same failure that statistical power analysis studies in small clinical trials: rare events that were never observed are silently counted as impossible.
We propose to make the profiling sample size an explicit input to schedulability analysis. Each task's measured distribution is replaced by a slightly pessimistic version that, with stated confidence, runs at least as long as the true one. The pessimistic mass is pushed to a hard static worst-case bound. The combined deadline-miss probability computed from these versions is then a valid confidence bound. The central observation is that this is much less costly than it sounds. Per-task tail uncertainty shrinks only like $1/n$ in the number of profiling runs $n$. But a deadline miss usually needs several tasks to overrun together, so the system-level uncertainty shrinks like a power of $1/n$. Modest profiling budgets may therefore certify 10⁻⁹-level guarantees honestly. Where they cannot, the method says so and says which task to profile next.
Core Claim
Existing probabilistic schedulability tools take the per-task distributions as given. The pMC framework maps DO-178C-style failure budgets of $10^{-9}$ per hour onto deadline-miss metrics and shows schedulability up to utilization 1.4 where deterministic analysis fails at 0.8 (Schedulability of probabilistic mixed-criticality systems), but it assumes execution-time tails are known to that depth. The UPPAAL statistical model checking approach bounds only its simulation error and takes task distributions of 2 to 8 points as exact (Flexible Framework for Statistical Schedulability Analysis of Probabilistic Sporadic Tasks). The multinomial method computes miss probabilities to about $10^{-9}$ approximation error (Efficiently Approximating the Probability of Deadline Misses in Real-Time Systems), but that error is relative to a distribution that is itself estimated. These papers motivate the gap. None of them connects the number of profiling traces to the confidence of the final guarantee.
Our claim has three parts. First, a plug-in analysis built from $n$ profiling runs per task systematically under-states tail miss probabilities, and its reported values below roughly $1/n$ have near-zero coverage. Second, a stochastically dominating correction restores nominal coverage. Third, because joint overruns multiply, that correction keeps most of the multiplexing gain at profiling budgets of $10^4$ to $10^5$ runs per task.
Research Program
For task $i$ with $n_i$ measured execution times, empirical distribution function $\hat F_i$, and a static upper bound $C_i^{\max}$ from conventional timing analysis, we build a pessimistic distribution function
$$F_i^{+}(c) = \max\{\hat F_i(c) - \varepsilon_i(c),\, 0\} \text{ for } c < C_i^{\max}, \qquad F_i^{+}(C_i^{\max}) = 1.$$
Here $\varepsilon_i(c)$ is a confidence band chosen so that $F_i^{+} \le F_i$ everywhere with probability at least $1-\delta_i$. The simplest band is the uniform Dvoretzky–Kiefer–Wolfowitz band, with $\varepsilon_i = \sqrt{\ln(2/\delta_i)/(2n_i)}$. The variant we care about is tail-weighted. It uses binomial (Clopper–Pearson-style) bounds at each observed quantile, so the band near the tail is of order $\ln(1/\delta_i)/n_i$ rather than $1/\sqrt{n_i}$. The removed probability mass lands at $C_i^{\max}$, the value that deterministic analysis already trusts.
We then run the unmodified analysis pipeline on the $F_i^{+}$. That means multinomial convolution, pMC backlog analysis, or the closed-form Markovian bound of An Analytical Solution for Probabilistic Guarantees of Reservation Based Soft Real-Time Systems. The output is $P^{+}_{\text{miss}}$. The key lemma is that $P_{\text{miss}} \le P^{+}_{\text{miss}}$ with probability at least $1-\sum_i \delta_i$ whenever the miss probability is monotone in stochastic order of the execution times. This holds for independent tasks under preemptive fixed-priority or earliest-deadline-first scheduling on one processor, because response times there cannot shrink when a job runs longer. It can fail under timing anomalies on multicore or non-preemptive schedulers, and we will state and test that boundary.
A rough calculation shows why the cost is small. Suppose a miss requires $k$ of $N$ tasks to overrun into their pessimistic mass, and each task's tail band is about $\varepsilon$. The added miss probability then scales like $\binom{N}{k}\varepsilon^{k}$, which follows from independence. With $\varepsilon \approx 3\times10^{-4}$ (tail bands at $n\approx10^4$) and $k=3$, this is on the order of $10^{-11}$ times a combinatorial factor. We turn this into a certification floor: the smallest miss probability that $n$ profiling runs can support for a given task set. The floor can be computed before any profiling, the way a trial designer computes power before enrolling patients.
Two further outputs follow. The first is profiling allocation. The derivative of $P^{+}_{\text{miss}}$ with respect to each $n_i$ ranks tasks by how much another run would tighten the guarantee, which gives a greedy allocation of a fixed measurement budget. The second is a dependence stress test. Hardware contention correlates execution times and breaks the multiplication that the argument relies on. We therefore also compute a dependence-robust bound, in which overruns of tasks sharing a resource are treated as perfectly correlated (comonotone), and report how much of the gain survives.
Baselines
The naive reference point is deterministic analysis at $C_i^{\max}$. It is always sound, and pMC reports it failing at utilization 0.8 on its avionics and synthetic sets (Schedulability of probabilistic mixed-criticality systems). We run it on identical task sets.
The strongest existing method is plug-in pMC analysis on the empirical distributions. It is reported to sustain schedulable utilization up to 1.4 on ROSACE, FMS, and UUnifast-Discard sets (Schedulability of probabilistic mixed-criticality systems). That number assumes known distributions. We expect our method to report lower schedulable utilization at finite $n$, and that is the point. Beating the baseline means two things at once. Our bounds must achieve at least the nominal $1-\delta$ coverage of the true miss probability where plug-in falls well below it. And our bounds must retain the majority of the 0.8-to-1.4 utilization gap at $n=10^4$. Both methods receive the same profiling samples, the same analysis engine (the multinomial method of Efficiently Approximating the Probability of Deadline Misses in Real-Time Systems), and the same discretization.
A third baseline is concentration-inequality bounds (Hoeffding, Bernstein). The multinomial paper already shows these are much more pessimistic than its exact convolution; we include them because they are the "sound without sampling" competitor.
Two ablations isolate the key ingredients. The first swaps the tail-weighted band for the uniform band. This tests whether the $1/n$ rather than $1/\sqrt{n}$ tail rate is what preserves the gain. The second moves the removed mass to the largest observed value instead of $C_i^{\max}$. This tests whether anchoring to the static bound is necessary for coverage.
Why not just…?
Why not just bootstrap the profiling traces? Resampling the observed runs never produces a value beyond the observed maximum. The bootstrap interval for any tail event beyond the sample therefore collapses to zero, which is exactly the failure we target. We include a bootstrap baseline and expect its coverage to track the plug-in estimate in the tail regime.
Why not just use importance sampling or more simulation to reach the rare tail? The file documents the cost of brute force: the 7-task analytical baseline in the UPPAAL work took 47 hours, and exhaustive UPPAAL model checking failed on the 33-task ADCS system (Estimating Probabilistic Safe WCET Ranges of Real-Time Systems at Design Stages). More fundamentally, better simulation reduces error in computing $P_{\text{miss}}$ from given distributions. It does nothing about whether those distributions are right. Simulation and our correction are complementary, and we use exact convolution precisely to remove simulation error from the comparison.
Why not just fit an extreme-value tail to the profiling data? This is the real threat. Parametric tail fitting can extrapolate below $1/n$ and may give tighter bounds than ours. Its soundness, however, depends on the tail family being correct, and no paper in the file tests it (no reported result found on Lacuna for extreme-value tail fitting on these benchmarks). We will run it as a head-to-head competitor. We report its coverage on synthetic truths that have light, heavy, and bimodal tails, including a data-dependent slow path with small probability. If it covers nominally across all three and is tighter, we will reposition our method as the distribution-free fallback and use the certification floor to decide when extrapolation is needed.
Proposed Experiments
The decisive experiment is a coverage study with known ground truth. We take the task sets from UUnifast-Discard, ROSACE, and FMS used by Schedulability of probabilistic mixed-criticality systems, plus the 2-to-16-task sporadic sets from Flexible Framework for Statistical Schedulability Analysis of Probabilistic Sporadic Tasks. Their stated distributions serve as truth, with added heavy-tailed variants. We draw $n \in \{10^2, 10^3, 10^4, 10^5\}$ profiling samples per task and compute the plug-in, bootstrap, extreme-value, concentration, and dominated bounds. We then compare each against the exact true miss probability from multinomial convolution. Over 1,000 repetitions we measure empirical coverage at each true miss-probability decade from $10^{-3}$ to $10^{-10}$, the ratio of bound to truth, and schedulable utilization at a $10^{-9}$ target.
The prediction that could falsify the idea is that dominated bounds cover at or above $1-\delta$ while retaining most of the utilization gain at $n=10^4$. If instead the gain vanishes until $n \gtrsim 10^6$, the multiplexing argument fails in practice and pMC-style guarantees are not certifiable from measurement. That would be a sharp negative result the community needs.
A second check validates the certification floor. We verify that the pre-profiling predicted floor matches the smallest miss probability the method certifies. We also compare gradient-based profiling allocation against uniform allocation at equal total budget, measured by how many runs each needs to certify $10^{-9}$.
The third check is dependence. The robotic lane-boundary application in An Analytical Solution for Probabilistic Guarantees of Reservation Based Soft Real-Time Systems is the file's non-i.i.d. workload. We also run synthetic sets in which tasks share a contended resource. On both we measure how far coverage of the independence-based bound degrades, and whether the comonotone bound restores it at acceptable cost. Loss of coverage here would mark the boundary of the method, and we will report it as such.
References
- Schedulability of probabilistic mixed-criticality systems
- Flexible Framework for Statistical Schedulability Analysis of Probabilistic Sporadic Tasks
- Efficiently Approximating the Probability of Deadline Misses in Real-Time Systems
- An Analytical Solution for Probabilistic Guarantees of Reservation Based Soft Real-Time Systems
- Estimating Probabilistic Safe WCET Ranges of Real-Time Systems at Design Stages