When the Grandmaster Clock Dies: Reading Latency Telemetry Under Partial Failure

A latency tile on a vehicle dashboard summarises only the samples that arrived. In a degraded system, the samples that never arrive are the ones that matter. When a time source, a core or a switch port fails, the telemetry pipeline usually loses accuracy at the same moment the scheduling guarantees weaken. A reviewer has to separate what was measured on the target under stress from what the graph fills in, and then ask which mechanism still holds the deadline once one part is gone.

What a histogram actually certifies

Measured: a cyclictest style histogram on a PREEMPT_RT kernel records wakeup latency for the threads it ran, on the cores they were pinned to, under the load present during the capture window. Nothing more. It does not cover a control thread that shares a core with a network softirq, and it says nothing about latencies longer than the longest run happened to produce. The dashboard turns that histogram into a percentile and a colour, which invites the conclusion that the path is bounded, but a percentile describes the typical case and a bound is a claim about the worst case. If the brake actuation loop has a wakeup latency budget of 250 µs, the only number that speaks to it is the maximum observed under the worst stressor you could reproduce, recorded on the same kernel build, with the same IRQ affinity and the same firmware power states.

The failure the dashboard hides

Take the loss of the gPTP grandmaster on a zonal Ethernet backbone. Each bridge falls into holdover and its local oscillator starts to drift, so time aware shaper gates that were aligned across hops slide apart slowly enough that no frame is dropped for a while. The latency tile stays green because end to end latency is computed from timestamps that drift together, so the instrument and the thing it measures fail in the same direction. In that window the telemetry proves that frames arrived. It cannot prove they arrived inside their gate, because gate alignment can only be observed against an independent reference. By estimate, a commodity oscillator in holdover gives you seconds rather than minutes before the guard bands are used up on a schedule spanning several hops, so holdover has to be an explicit state the scheduler reacts to, not just a log line.

What survives a fault

What keeps a mixed criticality platform working after a partial failure is not faster recovery but partitioning decided before the failure: dedicated cores with housekeeping moved off them, a hypervisor or separation kernel that limits the interference a crashed Linux partition can cause, a hardware watchdog serviced only by the safety island, and a precomputed degraded schedule that the TSN configuration switches to when sync is lost, which means the evidence you need is the latency of that switch, not the steady state.

A rule for the review

Functional safety standards such as ISO 26262 require evidence that a safety mechanism detects a fault and reaches a safe state within the fault tolerant time interval, which is a claim about a transition, so steady state percentiles are the wrong evidence. Ask for the fault injection trace: kill the grandmaster, take a core offline, saturate a partition, then show the maximum latency and the time to degraded mode, each timestamped against a reference that did not fail. If a number on the slide was not captured during an injected fault with an independent clock, record it as inference in the minutes. A second estimate, labelled as such: a typical programme has healthy path evidence for nearly every control loop and fault path evidence for well under half of them. What remains is a budget decision, because traces with an external reference cost bench time and hardware taps, and the alternative is signing off a green tile whose meaning ends exactly where your failure begins.

Is a very long cyclictest run enough evidence that latency is bounded?

No. A longer run raises confidence in the steady state but never exercises a fault path, so pair it with injected faults timestamped against a clock that stays outside the failure.

Back to RealtimeSDV · Domains

← Back to RealtimeSDV
Engineering & Architecture Brief

When the Grandmaster Clock Dies: Reading Latency Telemetry Under Partial Failure

A latency tile on a vehicle dashboard summarises only the samples that arrived. In a degraded system, the samples that never arrive are the ones that matter. When a time source, a core or a switch port fails, the telemetry pipeline usually loses accuracy at the same moment the scheduling guarantees weaken. A reviewer has to separate what was measured on the target under stress from what the graph fills in, and then ask which mechanism still holds the deadline once one part is gone.

What a histogram actually certifies

Measured: a cyclictest style histogram on a PREEMPT_RT kernel records wakeup latency for the threads it ran, on the cores they were pinned to, under the load present during the capture window. Nothing more. It does not cover a control thread that shares a core with a network softirq, and it says nothing about latencies longer than the longest run happened to produce. The dashboard turns that histogram into a percentile and a colour, which invites the conclusion that the path is bounded, but a percentile describes the typical case and a bound is a claim about the worst case. If the brake actuation loop has a wakeup latency budget of 250 µs, the only number that speaks to it is the maximum observed under the worst stressor you could reproduce, recorded on the same kernel build, with the same IRQ affinity and the same firmware power states.

The failure the dashboard hides

Take the loss of the gPTP grandmaster on a zonal Ethernet backbone. Each bridge falls into holdover and its local oscillator starts to drift, so time aware shaper gates that were aligned across hops slide apart slowly enough that no frame is dropped for a while. The latency tile stays green because end to end latency is computed from timestamps that drift together, so the instrument and the thing it measures fail in the same direction. In that window the telemetry proves that frames arrived. It cannot prove they arrived inside their gate, because gate alignment can only be observed against an independent reference. By estimate, a commodity oscillator in holdover gives you seconds rather than minutes before the guard bands are used up on a schedule spanning several hops, so holdover has to be an explicit state the scheduler reacts to, not just a log line.

What survives a fault

What keeps a mixed criticality platform working after a partial failure is not faster recovery but partitioning decided before the failure: dedicated cores with housekeeping moved off them, a hypervisor or separation kernel that limits the interference a crashed Linux partition can cause, a hardware watchdog serviced only by the safety island, and a precomputed degraded schedule that the TSN configuration switches to when sync is lost, which means the evidence you need is the latency of that switch, not the steady state.

A rule for the review

Functional safety standards such as ISO 26262 require evidence that a safety mechanism detects a fault and reaches a safe state within the fault tolerant time interval, which is a claim about a transition, so steady state percentiles are the wrong evidence. Ask for the fault injection trace: kill the grandmaster, take a core offline, saturate a partition, then show the maximum latency and the time to degraded mode, each timestamped against a reference that did not fail. If a number on the slide was not captured during an injected fault with an independent clock, record it as inference in the minutes. A second estimate, labelled as such: a typical programme has healthy path evidence for nearly every control loop and fault path evidence for well under half of them. What remains is a budget decision, because traces with an external reference cost bench time and hardware taps, and the alternative is signing off a green tile whose meaning ends exactly where your failure begins.

Technical FAQ: Is a very long cyclictest run enough evidence that latency is bounded?

No. A longer run raises confidence in the steady state but never exercises a fault path, so pair it with injected faults timestamped against a clock that stays outside the failure.

Related Architecture Specifications (AUTOMOTIVESDV): vehiclenodes.com · vehicletoworld.com · automotivetwin.com

More Technical Articles on realtimesdv.com

Achieving Microsecond Determinism in Heterogeneous SDV Compute →PREEMPT_RT Linux vs Safety RTOS: Benchmarking Latency in Drive-by-Wire →TSN Schedule Synthesis: Designing Jitter-Free In-Vehicle Backplanes →WCET Analysis for Multicore ADAS: Eliminating Shared-Bus Contention →A Quiet Latency Dashboard Does Not Prove Control Survives a Stall →