moonchen opened a new pull request, #14100:
URL: https://github.com/apache/trafficserver/pull/14100

   Adds three USDT probes: `eventloop_sleep` and `eventloop_wake` around the 
blocking poll in `NetHandler::waitForActivity`, and `watchdog_thread_awake` 
where the watchdog reports a thread that has been awake longer than its 
timeout. The tracing guide documents their arguments with a bpftrace example, 
and a Uranium test covers them.
   
   An event thread can stop returning to its event loop, stuck in a handler or 
in a system call, and every connection on that thread stalls. The watchdog 
detects that some thread has been awake too long, but naming that thread as a 
kernel thread, so it can be matched with `/proc/<pid>/task` and with kernel 
tracepoints, currently needs a debug build or reads of `EThread` memory at 
offsets that change with every build. The loop probes fire on the event thread 
itself, so a tracer can map each `EThread` to its kernel thread ID and name the 
stuck thread as soon as the watchdog reports it, on any build configured with 
`ENABLE_PROBES`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to