Tracing waits across the user–kernel boundary 00:00:01 A worker appears frozen between jobs A worker looks asleep between jobs. That can be perfectly healthy until one of the jobs is already waiting. Jules lines up a single enqueue with the worker's next wakeup and the first completion. An ordinary observed wait here is four milliseconds. In the slow capture it is eight hundred milliseconds, ending at a timeout. The queue already contains work during the wait. That overlap gives the long sleep operational meaning. A syscall trace records a thread entering and returning from kernel operations. Elapsed time in a blocking call includes the wait for an event. 00:00:38 Put enqueue and wakeup on one clock Library-call tracing observes a different boundary and can miss inlined or directly invoked operations. A trace of one thread can also miss the worker that actually owns the request. Identify the worker handling known queued work. Record the blocking operation, elapsed time and result for that thread. Check whether work was already available while the thread slept. Repair the notification path and measure enqueue-to-wakeup time again. 00:01:06 An idle poll or a missed notification? If the same eight-hundred-millisecond wait occurred with an empty work queue, would it explain a delayed job? No job would have been waiting in that example. Capture a short, scoped interval on an affected worker and correlate enqueue, notification and wakeup. Aggregate timing is enough when request contents would add nothing to the diagnosis. An empty queue during the long wait is consistent with a healthy idle worker. Follow the producer instead. 00:01:34 Restore the event instead of polling faster Restoring the enqueue notification reduces the measured wait to eight milliseconds. Strace observes syscalls and signals. Compare entry, result, duration and count for a bounded affected interval. Its observation overhead can be significant for syscall-heavy workloads. Jules verifies that work starts promptly at the same arrival rate. A slow-looking system call only matters in the context of the work someone expected it to interrupt.